Browse Source

fix all

course
郑锦全 4 years ago
parent
commit
51046c7723
  1. 2
      src/pages/index/index.vue
  2. 1
      src/subpackage/course/pages/index/index.vue
  3. 36
      src/subpackage/course/pages/manage_detail/bclass_reserve_detail/bclass_reserve_detail.vue

2
src/pages/index/index.vue

@ -130,7 +130,7 @@
id: 8, id: 8,
name: '课程管理', name: '课程管理',
path: '/subpackage/course/pages/index/index', path: '/subpackage/course/pages/index/index',
serverKey: 1011 // 1013
serverKey: 1013 // 1013
} }
]; ];

1
src/subpackage/course/pages/index/index.vue

@ -58,7 +58,6 @@ const tabList = [
{ {
id: 0, id: 0,
name: "学员课程", name: "学员课程",
// path: "/subpackage/course/pages/manage_list/manage_list",
}, },
{ {
id: 1, id: 1,

36
src/subpackage/course/pages/manage_detail/bclass_reserve_detail/bclass_reserve_detail.vue

@ -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(',') || [];

Loading…
Cancel
Save