Commit 6be916a5 authored by Mac's avatar Mac

1

parent 19e1e08d
......@@ -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>
......
......@@ -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({
......
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