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
6be916a5
Commit
6be916a5
authored
Feb 03, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
19e1e08d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
16 deletions
+40
-16
appointment.vue
pages/appointment/appointment.vue
+9
-1
confirmAppointment.vue
pages/appointment/confirmAppointment.vue
+31
-15
No files found.
pages/appointment/appointment.vue
View file @
6be916a5
...
...
@@ -171,7 +171,7 @@
</view>
</view>
</view>
<view
class=
"item-b"
>
<view
class=
"item-b"
v-if=
"showteacher==0"
>
<view
style=
"font-size: 11px;color: #1B1D1E;"
>
课时时长
{{
item
.
StudyDuration
}}{{
item
.
DurationUnitName
}}
(至少约课
{{
item
.
MinDuration
}}{{
item
.
DurationUnitName
}}
)
</view>
...
...
@@ -179,6 +179,14 @@
<view
class=
"yuyue"
style=
"background: #FFFFFF;color: #40766E;border: 1px solid #40766E;"
v-if=
"item.IsHaveCourse>0"
>
已预约
</view>
</view>
<view
class=
"item-b"
v-if=
"showteacher==1"
>
<view
style=
"font-size: 11px;color: #1B1D1E;"
>
课时时长
{{
item
.
StudyDuration
}}{{
item
.
DurationUnitName
}}
(至少约课
{{
item
.
MinDuration
}}{{
item
.
DurationUnitName
}}
)
</view>
<view
class=
"yuyue"
style=
"background: #FFFFFF;color: #40766E;border: 1px solid #40766E;"
>
已预约
</view>
</view>
</view>
<view
style=
"width: 100%;height: 100px;"
></view>
<view
style=
"width: 100%;height: 100%;background: #000000;opacity: 0.3;position: absolute;left: 0;top: 0;"
v-if=
"screenshow==true && subscribeList.length > 0"
@
touchstart=
"screenshow=false"
></view>
...
...
pages/appointment/confirmAppointment.vue
View file @
6be916a5
...
...
@@ -239,24 +239,40 @@
})
return
}
that
.
addMsg
.
StudyDate
=
that
.
data
.
StudyDateStr
+
' '
+
that
.
addMsg
.
StudyDate
+
':00'
let
msg
=
JSON
.
parse
(
JSON
.
stringify
(
that
.
addMsg
))
msg
.
StudyDate
=
that
.
data
.
StudyDateStr
+
' '
+
that
.
addMsg
.
StudyDate
+
':00'
uni
.
requestSubscribeMessage
({
tmplIds
:
that
.
data
.
template_message_list
,
success
(
res
)
{
that
.
request2
({
//提交订单
url
:
'/api/AppletPoint/GetSetTeacherCourseOrder'
,
data
:
that
.
addMsg
},
res
=>
{
uni
.
showToast
({
title
:
res
.
message
,
icon
:
'none'
})
uni
.
redirectTo
({
//下单成功跳入订单列表
url
:
"/pages/appointment/personal/studentAppointmentList"
,
});
}
);
console
.
log
(
res
)
let
adopt
=
true
that
.
data
.
template_message_list
.
forEach
(
x
=>
{
if
(
res
[
x
]
==
'reject'
){
adopt
=
false
}
})
if
(
adopt
==
true
){
that
.
request2
({
//提交订单
url
:
'/api/AppletPoint/GetSetTeacherCourseOrder'
,
data
:
msg
},
res
=>
{
uni
.
showToast
({
title
:
res
.
message
,
icon
:
'none'
})
uni
.
redirectTo
({
//下单成功跳入订单列表
url
:
"/pages/appointment/personal/studentAppointmentList"
,
});
}
);
}
else
{
uni
.
showToast
({
title
:
'没订阅不能预约课程哦!'
,
icon
:
'none'
})
}
},
fail
(
err
){
uni
.
showToast
({
...
...
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