Commit 50d7cde87a82c9d54f74f46db6b3e09fbb750b45

Authored by vking
1 parent 6f1d75f8

is_on_call

... ... @@ -10,7 +10,8 @@ Page({
data: {
actionSheetHidden: true,
actionSheetItems: ['客户取消', '客户行程改变'],
hasEditorFlag: false,
hasEditorFlag: false,//是否开启编辑
hasReceipt:false,//接单人身份
},
sc: {},
tpls: TP.tpls(),
... ... @@ -43,6 +44,7 @@ Page({
PubSub.on('reflush',(desk)=>{
this.getDetail(opt.id);
})
this.GetSellerUserDetail(this.sc.seller.id)
},
onUnload(){
PubSub.off('arrangeDesk')
... ... @@ -377,5 +379,16 @@ Page({
cause.uname = (sc.seller_user.nick_name || sc.seller_user.nickname)
}
return JSON.stringify(cause)
}
},
GetSellerUserDetail(sid){
App.Reserve.GetSellerUserDetail({
sid:sid,
}).then(res=>{
if(res.data){
this.setData({
hasReceipt:res.data.is_on_call==1
})
}
})
},
})
\ No newline at end of file
... ...
... ... @@ -120,7 +120,7 @@
<formids bindclick="showOrder">查看菜品</formids>
</view>
</view>
<view class="notice-button-border font34r flex-lr" wx:if="{{hasEditorFlag || bookInfo.type==1}}">
<view class="notice-button-border font34r flex-lr" wx:if="{{hasEditorFlag || (bookInfo.type==1 && hasReceipt)}}">
<view>
<formids bindclick="gotoModify">变更预订</formids>
</view>
... ...
... ... @@ -420,5 +420,8 @@ export default {
'App.Wechat.Subscribe':{
openid:'openid',
},
//获取商家用户(店员)详情
'App.Reserve.GetSellerUserDetail':{
openid:'openid',
},
}
\ No newline at end of file
... ...