Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
educationStu
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
向伟
educationStu
Commits
da76ee9a
Commit
da76ee9a
authored
Jan 27, 2022
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2
parent
d5d2cd2b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
386 additions
and
76 deletions
+386
-76
pages.json
src/pages.json
+8
-0
list.vue
src/pages/appointment/list.vue
+23
-18
list2.vue
src/pages/appointment/list2.vue
+22
-0
record.vue
src/pages/appointment/record.vue
+113
-0
orderList.vue
src/pages/contract/orderList.vue
+15
-1
person.vue
src/pages/person/person.vue
+4
-1
timeTable.vue
src/pages/timetable/timeTable.vue
+192
-55
date.js
src/utils/date.js
+8
-0
index.js
src/utils/index.js
+1
-1
No files found.
src/pages.json
View file @
da76ee9a
...
...
@@ -129,6 +129,14 @@
"navigationStyle"
:
"custom"
}
}]
},{
"root"
:
"pages/appointment"
,
//约课分包
"pages"
:[
{
"path"
:
"list"
},
{
"path"
:
"mySubscribe"
},
{
"path"
:
"timeSlot"
},
{
"path"
:
"record"
}
]
}
],
"tabBar"
:
{
...
...
src/pages/appointment/list.vue
View file @
da76ee9a
...
...
@@ -6,6 +6,13 @@
.row
{
display
:
flex
;
align-items
:
center
;
}
.basics-block
{
width
:
50%
;
box-sizing
:
border-box
;
padding-left
:
10
rpx
;
text-align
:
left
;
font-size
:
26
rpx
;
}
.box-top
{
display
:
flex
;
...
...
@@ -54,28 +61,27 @@
padding
:
10px
;
font-size
:
13px
;
color
:
#111
;
height
:
100%
;
height
:
100%
;
display
:
flex
;
flex-wrap
:
wrap
;
align-content
:
space-around
;
}
</
style
>
<
template
>
<div
class=
"Appointmentlist"
>
<view
class=
"basics"
>
<view
class=
"basics-box"
>
<view
class=
"row"
style=
"justify-content: space-between;"
>
<view
class=
"row"
>
提前几天预约:
{{
basics
.
AdvanceDay
}}
天
</view>
<view
class=
"row"
>
可预约时间:
{{
basics
.
ScrollETime
}}
</view>
<view
class=
"row basics-block"
>
提前几天预约:
{{
basics
.
AdvanceDay
||
0
}}
天
</view>
<view
class=
"row basics-block"
>
可预约时间:
{{
basics
.
ScrollETime
||
'无'
}}
</view>
<view
class=
"row"
style=
"justify-content: space-between;"
>
<view
class=
"row"
>
可预约的天数:
{{
basics
.
AppointDay
}}
天
</view>
<view
class=
"row"
>
是否可以继续预约:
{{
basics
.
IsNextAppoint
?
'是'
:
'否'
}}
</view>
<view
class=
"row basics-block"
>
可预约的天数:
{{
basics
.
AppointDay
||
0
}}
天
</view>
<view
class=
"row basics-block"
>
是否可以继续预约:
{{
basics
.
IsNextAppoint
?
'是'
:
'否'
}}
</view>
</view>
</view>
...
...
@@ -100,7 +106,7 @@
<scroll-view
:scroll-y=
"true"
style=
"height: calc(100vh - 100rpx - 200rpx);width: calc(100vw);"
>
<view
class=
"center"
v-for=
'(x,y) in dataList'
:key =
'y'
@
click=
"gotimelist(x)"
>
<view
class=
"center-box"
>
<view
class=
"center-top row"
>
<view
class=
"center-top row"
>
<image
:src=
'x.TeacherHead'
mode=
"aspectFill"
style=
"width:38px ;height: 38px;border-radius: 50%;"
></image>
<view
style=
"margin-left: 15px;padding-bottom:10px ;"
>
<div
style=
"font-size: 13px;color: #111;font-weight: bold"
>
{{
x
.
TeacherName
}}
</div>
...
...
@@ -120,8 +126,7 @@
<view
v-else
>
<van-empty
description=
"暂无约课老师"
/>
</view>
<van-calendar
:show=
"dateshow"
@
confirm=
"onConfirm"
:default-date=
'defaultDate'
@
close=
'dateshow=false'
/>
<van-calendar
:show=
"dateshow"
color=
"#2961fe"
@
confirm=
"onConfirm"
:default-date=
'defaultDate'
@
close=
'dateshow=false'
/>
</div>
</
template
>
...
...
src/pages/appointment/list2.vue
0 → 100644
View file @
da76ee9a
<
template
>
<view
class=
""
>
</view>
</
template
>
<
script
>
import
{
ref
,
toRefs
,
reactive
,
getCurrentInstance
}
from
'vue'
export
default
{
setup
(){
const
data
=
reactive
({
})
return
{
...
toRefs
(
data
)
}
}
}
</
script
>
<
style
>
</
style
>
src/pages/appointment/record.vue
0 → 100644
View file @
da76ee9a
<
template
>
<view
class=
""
>
<view
class=
"box-top"
>
<view
class=
"box-top-item flex"
@
click=
"showCalendar"
>
<view
class=
"ellipsis"
>
<text
v-if=
"date.length==2"
>
{{
date
[
0
]
}}
-
{{
date
[
1
]
}}
</text>
<text
v-else
>
选择日期
</text>
</view>
<van-icon
name=
"arrow-down"
size=
'12'
style=
'margin-left: 5px;'
/>
</view>
<picker
mode=
"selector"
range-key=
"Name"
style=
"width: 50%;"
:range=
"stateList"
@
change=
"getState"
>
<view
class=
"box-top-item flex"
style=
"width: 100%;height: 100rpx;"
>
<view
class=
"ellipsis"
>
{{
stateName
}}
</view>
<van-icon
name=
"arrow-down"
size=
'12'
style=
'margin-left: 5px;'
/>
</view>
</picker>
</view>
<van-calendar
:show=
"isShowcalendar"
type=
"range"
@
close=
"isShowcalendar=false"
@
confirm=
"onConfirmCalendar"
/>
</view>
</
template
>
<
script
>
import
{
toRefs
,
reactive
,
getCurrentInstance
}
from
'vue'
import
{
DateFormat
}
from
'../../utils/date.js'
export
default
{
setup
(){
const
data
=
reactive
({
msg
:{
State
:
1
,
},
isShowcalendar
:
false
,
date
:[],
stateName
:
"不限"
,
stateList
:[
{
Name
:
"待确认"
,
Id
:
1
,
},
{
Name
:
"待上课"
,
Id
:
2
},{
Name
:
"已上课"
,
Id
:
3
},{
Name
:
"缺席"
,
Id
:
4
}
]
})
const
methods
=
{
showCalendar
(){
data
.
isShowcalendar
=
true
},
getState
(
e
){
let
i
=
e
.
detail
.
value
;
data
.
stateName
=
data
.
stateList
[
i
].
Name
;
let
id
=
data
.
stateList
[
i
].
Id
},
onConfirmCalendar
(
e
){
data
.
isShowcalendar
=
false
let
dateS
=
DateFormat
(
e
.
detail
[
0
],
'/'
)
let
dateE
=
DateFormat
(
e
.
detail
[
1
],
'/'
)
data
.
date
=
[
dateS
,
dateE
]
console
.
log
(
68
,
data
.
date
)
}
}
return
{
...
toRefs
(
data
),
...
methods
}
},
onLoad
()
{
uni
.
setNavigationBarTitle
({
title
:
"约课记录"
})
}
}
</
script
>
<
style
scoped
>
.flex
{
display
:
flex
;
align-items
:
center
;
}
.box-top
{
display
:
flex
;
box-shadow
:
0
4
rpx
24
rpx
rgba
(
100
,
101
,
102
,
.12
);
height
:
100
rpx
;
background
:
#FFF
;
}
.box-top-item
{
width
:
50%
;
justify-content
:
center
;
font-size
:
13px
;
}
.ellipsis
{
font-size
:
24
rpx
;
max-width
:
80%
;
overflow
:
hidden
;
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
}
</
style
>
src/pages/contract/orderList.vue
View file @
da76ee9a
...
...
@@ -33,7 +33,15 @@
color
:
#0000ff
;
font-size
:
24
rpx
;
}
.Order_Type
{
box-sizing
:
border-box
;
padding
:
4
rpx
14
rpx
;
font-size
:
20
rpx
;
background-color
:
#2961fe
;
margin-left
:
20
rpx
;
color
:
#FFFFFF
;
border-radius
:
20
rpx
;
}
.courseName
{
font-size
:
40
rpx
;
margin-bottom
:
20
rpx
;
...
...
@@ -109,6 +117,12 @@
<view
class=
"Order_Top"
>
<view
class=
"Order_label"
>
订单号:
</view>
<view
class=
"Order_Number"
>
#
{{
item
.
OrderId
}}
</view>
<view
class=
"Order_Type"
v-if=
"item.ClassScrollType===1"
>
跟班
</view>
<view
class=
"Order_Type"
style=
"background-color: #29CC40;"
v-if=
"item.ClassScrollType===2"
>
约课
</view>
</view>
<view
class=
"p-lc-c"
>
<view
class=
"p-lc-item"
>
...
...
src/pages/person/person.vue
View file @
da76ee9a
...
...
@@ -43,6 +43,9 @@
</view>
</view>
</view>
<view
class=
""
@
click=
"jumpPage(`/pages/appointment/record`)"
>
约课记录
</view>
<view
class=
"courseInfo"
>
<view
class=
"title"
>
课程信息
</view>
<view
class=
"statistic"
>
...
...
@@ -106,7 +109,7 @@
}}
</view>
<view
class=
"Grade"
>
等级:
{{
pageData
.
CourseInfo
.
CourseRate
||
''
}}
</view>
<view><text
class=
"Grade"
>
状态:
</text>
<text
class=
"StatusName"
>
{{
<text
class=
"StatusName"
v-if=
"pageData.CourseInfo.ClassStatusName"
>
{{
pageData
.
CourseInfo
.
ClassStatusName
}}
</text>
</view>
...
...
src/pages/timetable/timeTable.vue
View file @
da76ee9a
This diff is collapsed.
Click to expand it.
src/utils/date.js
View file @
da76ee9a
...
...
@@ -72,3 +72,11 @@ export let getdate = (time, tomorrow) => {
let
d
=
year
+
"-"
+
month
+
'-'
+
day
return
d
}
export
let
DateFormat
=
(
time
,
separator
=
'-'
)
=>
{
let
date
=
new
Date
(
time
)
let
year
=
date
.
getFullYear
()
let
month
=
date
.
getMonth
()
<
9
?
'0'
+
(
date
.
getMonth
()
+
1
)
:
date
.
getMonth
()
+
1
let
day
=
date
.
getDate
()
<
10
?
'0'
+
(
date
.
getDate
())
:
date
.
getDate
()
let
d
=
year
+
separator
+
month
+
separator
+
day
return
d
}
src/utils/index.js
View file @
da76ee9a
...
...
@@ -308,4 +308,4 @@ export let netUrlTobase64 = async (url, suc) => {
});
})
return
toBase64Url
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment