Commit 6be916a5 authored by Mac's avatar Mac

1

parent 19e1e08d
...@@ -171,7 +171,7 @@ ...@@ -171,7 +171,7 @@
</view> </view>
</view> </view>
</view> </view>
<view class="item-b"> <view class="item-b" v-if="showteacher==0">
<view style="font-size: 11px;color: #1B1D1E;"> <view style="font-size: 11px;color: #1B1D1E;">
课时时长{{item.StudyDuration}}{{item.DurationUnitName}}(至少约课{{item.MinDuration}}{{item.DurationUnitName}}) 课时时长{{item.StudyDuration}}{{item.DurationUnitName}}(至少约课{{item.MinDuration}}{{item.DurationUnitName}})
</view> </view>
...@@ -179,6 +179,14 @@ ...@@ -179,6 +179,14 @@
<view class="yuyue" style="background: #FFFFFF;color: #40766E;border: 1px solid #40766E;" v-if="item.IsHaveCourse>0">已预约</view> <view class="yuyue" style="background: #FFFFFF;color: #40766E;border: 1px solid #40766E;" v-if="item.IsHaveCourse>0">已预约</view>
</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>
<view style="width: 100%;height: 100px;"></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> <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>
......
...@@ -239,13 +239,22 @@ ...@@ -239,13 +239,22 @@
}) })
return 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({ uni.requestSubscribeMessage({
tmplIds: that.data.template_message_list, tmplIds: that.data.template_message_list,
success (res) { success (res) {
console.log(res)
let adopt = true
that.data.template_message_list.forEach(x=>{
if(res[x]=='reject'){
adopt=false
}
})
if(adopt==true){
that.request2({//提交订单 that.request2({//提交订单
url: '/api/AppletPoint/GetSetTeacherCourseOrder', url: '/api/AppletPoint/GetSetTeacherCourseOrder',
data: that.addMsg data: msg
}, },
res => { res => {
uni.showToast({ uni.showToast({
...@@ -257,6 +266,13 @@ ...@@ -257,6 +266,13 @@
}); });
} }
); );
}else{
uni.showToast({
title: '没订阅不能预约课程哦!',
icon:'none'
})
}
}, },
fail(err){ fail(err){
uni.showToast({ uni.showToast({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment