Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mallapp
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
viitto
mallapp
Commits
93ee6b27
Commit
93ee6b27
authored
Feb 04, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
2dd615bf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
64 additions
and
6 deletions
+64
-6
pages.json
pages.json
+12
-0
appointment.vue
pages/appointment/appointment.vue
+1
-1
confirmAppointment.vue
pages/appointment/confirmAppointment.vue
+51
-5
No files found.
pages.json
View file @
93ee6b27
...
@@ -501,6 +501,12 @@
...
@@ -501,6 +501,12 @@
//约课
//约课
{
{
"root"
:
"pages/appointment"
,
"root"
:
"pages/appointment"
,
//
"plugins"
:
{
//
"live-player-plugin"
:
{
//
"version"
:
"1.2.5"
,
//
"provider"
:
"wx2b03c6e691cd7370"
//
}
//
},
"pages"
:
[{
"pages"
:
[{
"path"
:
"appointment"
//约课
"path"
:
"appointment"
//约课
},{
},{
...
@@ -515,6 +521,12 @@
...
@@ -515,6 +521,12 @@
"path"
:
"appointmentList"
//约课列表
"path"
:
"appointmentList"
//约课列表
},{
},{
"path"
:
"confirmAppointment"
//预约课程
"path"
:
"confirmAppointment"
//预约课程
//
"style"
:{
//
"usingComponents"
:
{
//
"subscribe"
:
"plugin-private://wx2b03c6e691cd7370/components/subscribe/subscribe"
//
}
//
}
},{
},{
"path"
:
"traineeList"
//预约的学员列表
"path"
:
"traineeList"
//预约的学员列表
},{
},{
...
...
pages/appointment/appointment.vue
View file @
93ee6b27
...
@@ -463,7 +463,7 @@ import tabbars from '@/components/tabbar/index';
...
@@ -463,7 +463,7 @@ import tabbars from '@/components/tabbar/index';
goconfirm
(
item
){
goconfirm
(
item
){
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'/pages/appointment/confirmAppointment?CourseId='
+
item
.
ID
+
'&WeekStr='
+
this
.
WeekStr
url
:
'/pages/appointment/confirmAppointment?CourseId='
+
item
.
ID
});
});
},
},
gostudent
(
item
){
//学员列表
gostudent
(
item
){
//学员列表
...
...
pages/appointment/confirmAppointment.vue
View file @
93ee6b27
...
@@ -62,6 +62,13 @@
...
@@ -62,6 +62,13 @@
color
:
#FFF
;
color
:
#FFF
;
margin-top
:
5px
;
margin-top
:
5px
;
}
}
.subs
{
width
:
100px
;
height
:
30px
;
background
:
#E03997
;
font-size
:
12px
;
color
:
FFF
;
}
</
style
>
</
style
>
<
template
>
<
template
>
<view
class=
"confirmAppointment"
>
<view
class=
"confirmAppointment"
>
...
@@ -73,7 +80,7 @@
...
@@ -73,7 +80,7 @@
</view>
</view>
<view
class=
"top-item"
style=
"margin-top: 10px;"
>
<view
class=
"top-item"
style=
"margin-top: 10px;"
>
<text>
上课时间
</text>
<text>
上课时间
</text>
<text
class=
"t-item-r"
>
{{
data
.
StudyDateStr
}}
周
{{
WeekStr
}}
{{
data
.
StudyStartDate
}}
-
{{
data
.
StudyEndDate
}}
</text>
<text
class=
"t-item-r"
>
{{
data
.
StudyDateStr
}}
{{
data
.
WeekStr
}}
{{
data
.
StudyStartDate
}}
-
{{
data
.
StudyEndDate
}}
</text>
</view>
</view>
<view
class=
"top-item"
>
<view
class=
"top-item"
>
<text>
上课老师
</text>
<text>
上课老师
</text>
...
@@ -110,6 +117,23 @@
...
@@ -110,6 +117,23 @@
<text
class=
"t-item-r"
v-else
>
{{
addMsg
.
StudyDate
}}
</text>
<text
class=
"t-item-r"
v-else
>
{{
addMsg
.
StudyDate
}}
</text>
</view>
</view>
</view>
</view>
<!-- 甲鹤暂时不用 先写在这里 -->
<!--
<view
class=
"box-top"
style=
"margin-top: 15px;"
v-if=
"data.RoomId!=null && data.RoomId>0"
>
<view
class=
"top-item"
style=
"border: none;"
>
<text>
直播订阅
</text>
<view
style=
"width: 100px;"
>
<subscribe
:room-id=
"data.RoomId"
:width=
'100'
:height=
'30'
:fontSize=
'13'
@
tap
.
stop
@
subscribe=
"onSubscribe"
>
</subscribe>
</view>
</view>
</view>
-->
<view
class=
"box-top"
style=
"margin-top: 15px;"
v-if=
"data.orderList.length>0 && data.StudentNumType==1"
>
<view
class=
"box-top"
style=
"margin-top: 15px;"
v-if=
"data.orderList.length>0 && data.StudentNumType==1"
>
<view
class=
"row-c"
>
<view
class=
"row-c"
>
<view
style=
"font-size: 14px;color: #111111;font-weight: bold;"
>
已预约的时间段
<text
style=
"font-size: 11px;color: #666666;"
>
(下列的时间段不能预约)
</text></view>
<view
style=
"font-size: 14px;color: #111111;font-weight: bold;"
>
已预约的时间段
<text
style=
"font-size: 11px;color: #666666;"
>
(下列的时间段不能预约)
</text></view>
...
@@ -121,6 +145,7 @@
...
@@ -121,6 +145,7 @@
</view>
</view>
</view>
</view>
</view>
</view>
<view
style=
"width: 100%;height: 130px;"
></view>
<view
style=
"width: 100%;height: 130px;"
></view>
<view
class=
"bottoms"
>
<view
class=
"bottoms"
>
...
@@ -129,6 +154,8 @@
...
@@ -129,6 +154,8 @@
</view>
</view>
<view
style=
"font-size: 11px;color: #666666;"
>
*需要订阅了才能预约下单
</view>
<view
style=
"font-size: 11px;color: #666666;"
>
*需要订阅了才能预约下单
</view>
</view>
</view>
<u-picker
mode=
"time"
v-model=
"show"
:params=
"params"
@
confirm =
'confirm'
></u-picker>
<u-picker
mode=
"time"
v-model=
"show"
:params=
"params"
@
confirm =
'confirm'
></u-picker>
</view>
</view>
</
template
>
</
template
>
...
@@ -164,15 +191,12 @@
...
@@ -164,15 +191,12 @@
},
},
classDay
:
1
,
classDay
:
1
,
ifvalue
:
1
,
ifvalue
:
1
,
WeekStr
:
''
,
}
}
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
console
.
log
(
options
,
'options'
)
console
.
log
(
options
,
'options'
)
this
.
getPointCourseDetail
(
options
.
CourseId
)
this
.
getPointCourseDetail
(
options
.
CourseId
)
if
(
options
&&
options
.
WeekStr
){
this
.
WeekStr
=
options
.
WeekStr
}
},
},
created
()
{
created
()
{
...
@@ -244,6 +268,24 @@
...
@@ -244,6 +268,24 @@
})
})
return
return
}
}
//直播订阅 //甲鹤暂时不用 先写在这里
// if(that.data.RoomId!=null && that.data.RoomId>0){
// let livePlayer = requirePlugin('live-player-plugin')
// const roomId = data.RoomId // 房间 id
// livePlayer.getSubscribeStatus({ room_id: roomId })
// .then(res => {
// if(res.is_subscribe==false){
// uni.showToast({
// title: '订阅了直播才能预约!',
// icon:'none'
// })
// return
// }
// }).catch(err => {
// console.log('get subscribe status', err)
// return
// })
// }
let
msg
=
JSON
.
parse
(
JSON
.
stringify
(
that
.
addMsg
))
let
msg
=
JSON
.
parse
(
JSON
.
stringify
(
that
.
addMsg
))
msg
.
StudyDate
=
that
.
data
.
StudyDateStr
+
' '
+
that
.
addMsg
.
StudyDate
+
':00'
msg
.
StudyDate
=
that
.
data
.
StudyDateStr
+
' '
+
that
.
addMsg
.
StudyDate
+
':00'
uni
.
requestSubscribeMessage
({
uni
.
requestSubscribeMessage
({
...
@@ -280,12 +322,16 @@
...
@@ -280,12 +322,16 @@
},
},
fail
(
err
){
fail
(
err
){
console
.
log
(
err
)
uni
.
showToast
({
uni
.
showToast
({
title
:
'没订阅不能预约课程哦!'
,
title
:
'没订阅不能预约课程哦!'
,
icon
:
'none'
icon
:
'none'
})
})
}
}
})
})
},
onSubscribe
(
e
){
console
.
log
(
e
)
}
}
}
}
}
}
...
...
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