|
@ -54,7 +54,7 @@ |
|
|
<view class="brd-fixed" v-if="pageInfo.status_text=='待确认'||pageInfo.status_text=='待上课'"> |
|
|
<view class="brd-fixed" v-if="pageInfo.status_text=='待确认'||pageInfo.status_text=='待上课'"> |
|
|
<view class="bf-line"> |
|
|
<view class="bf-line"> |
|
|
<view class="bl-btn1" hover-class="hover-active" @click="cancelClassChange(0)">取消上课</view> |
|
|
<view class="bl-btn1" hover-class="hover-active" @click="cancelClassChange(0)">取消上课</view> |
|
|
<view class="bl-btn2" hover-class="hover-active" v-if="pageInfo.status_text=='待确认'">确认上课</view> |
|
|
|
|
|
|
|
|
<view class="bl-btn2" hover-class="hover-active" @click="bclassConfirm" v-if="pageInfo.status_text=='待确认'">确认上课</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
@ -185,6 +185,40 @@ export default { |
|
|
}, 1200) |
|
|
}, 1200) |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
// 大班课确认上课 |
|
|
|
|
|
bclassConfirm(){ |
|
|
|
|
|
let { brandInfo, pageInfo } = this |
|
|
|
|
|
util.showModal({ |
|
|
|
|
|
title: '提示', |
|
|
|
|
|
content: '是否确认上课?', |
|
|
|
|
|
showCancel: true, |
|
|
|
|
|
success: modalRes=>{ |
|
|
|
|
|
if(modalRes.confirm){ |
|
|
|
|
|
util.showLoad(); |
|
|
|
|
|
boxServer.get({ |
|
|
|
|
|
url: BOX_API.setBclassAc, |
|
|
|
|
|
data: { |
|
|
|
|
|
brand_id: brandInfo.brand.id, |
|
|
|
|
|
subscribe_no: pageInfo.subscribe_no, //大班课预约单号 |
|
|
|
|
|
}, |
|
|
|
|
|
failMsg: '加载失败!' |
|
|
|
|
|
}) |
|
|
|
|
|
.then(res=>{ |
|
|
|
|
|
util.hideLoad(); |
|
|
|
|
|
util.showNone('操作成功!'); |
|
|
|
|
|
setTimeout(_=>{ |
|
|
|
|
|
this.refreshList() |
|
|
|
|
|
util.previousPageFunction({ |
|
|
|
|
|
fnName: 'refreshList', |
|
|
|
|
|
query: { isLoad: false}, |
|
|
|
|
|
}); |
|
|
|
|
|
}, 1200) |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
phoneCall(mobile) { |
|
|
phoneCall(mobile) { |
|
|
let _phoneStr = mobile || '' |
|
|
let _phoneStr = mobile || '' |
|
|
let _phoneArr = _phoneStr.split(',') || []; |
|
|
let _phoneArr = _phoneStr.split(',') || []; |
|
|