Commit c3ee62c9ad32175545b3bce8c01389ed9f81d8b8

Authored by vking
1 parent c4a37411

隐藏在线预订处理页面的联系客户按钮 调整拒绝订单文案提示

... ... @@ -98,7 +98,7 @@ Page({
//getApp().isAdmin
console.log('this.hasCallPhone',this.hasCallPhone,bi.status)
if(!this.hasCallPhone){//不能直接打电话
if(bi.status==6) return;
if(bi.status==6 || bi.status==0) return;
if(bi.status==0){
return wx.showModal({
title: '   客户要求不能满足时  \n请先安排包间后再联系客户调整',
... ... @@ -180,6 +180,9 @@ Page({
detailData: null,
async getDetail(id, force = false) {
let res = await App.Reserve.Detail({rid: id, openid: ''}, force);
//debug
//res.data.status=0
res.data.phoneStr = res.data.phone || '';
let enter_params = util.cache('enter_params');
let sc = (await App.Reserve.SellerInfo(enter_params)).data
... ... @@ -190,7 +193,7 @@ Page({
res.data.hasOwner = true;
}
}
if(!res.data.hasOwner && !this.hasCallPhone){
if((!res.data.hasOwner && !this.hasCallPhone) || (!getApp().isAdmin)){
res.data.phoneStr = res.data.phoneStr.replace(/(\d{2})(.{5})(\d{3})/, function ($0, $1, $2, $3) {
return $1 + '**' + $3;
})
... ... @@ -228,6 +231,8 @@ Page({
this.setData({
tables: res.data.tables,
bookInfo: this.detailData,
//isAdmin:getApp().isAdmin,
//hasCallPhone:this.hasCallPhone
})
},
gotoModify() {
... ... @@ -287,8 +292,8 @@ Page({
},
refuseOrder(){
wx.showModal({
title: '   确定拒绝订单吗?   \n拒绝后无法联系客户',
content: '如果包间类型已订满,请及时停用',
title: '您确定要拒绝这个订单吗?',
content: '如果该类型包间已订满,请及时停用包间',
showCancel:true,
cancelText:'拒绝订单',
cancelColor:'',
... ...
... ... @@ -174,22 +174,49 @@
</view>
<!--操作在线预订-->
<view class="notice-opt" wx:if="{{bookInfo.status==0}}">
<view class="notice-button-border font34r flex-lr">
<view>
<formids bindclick="easyCall" data-key="seller">联系商家</formids>
<block wx:if="{{isAdmin}}">
<view class="notice-button-border font34r flex-lr">
<view>
<formids bindclick="easyCall" data-key="seller">联系商家</formids>
</view>
<view>
<formids bindclick="easyCall" data-key="customer">联系顾客</formids>
</view>
</view>
<view>
<formids bindclick="easyCall" data-key="customer">联系顾客</formids>
<view class="notice-button-border font34r flex-lr">
<view>
<formids bindclick="refuseOrder">拒绝订单</formids>
</view>
<view>
<formids bindclick="arrangeOrder">安排包间</formids>
</view>
</view>
</view>
<view class="notice-button-border font34r flex-lr">
<view>
<formids bindclick="refuseOrder">拒绝订单</formids>
</block>
<block wx:elif="{{hasCallPhone}}">
<view class="notice-button-border font34r flex-lr">
<view>
<formids bindclick="arrangeOrder">安排包间</formids>
</view>
</view>
<view>
<formids bindclick="arrangeOrder">安排包间</formids>
<view class="notice-button-border font34r flex-lr">
<view>
<formids bindclick="refuseOrder">拒绝订单</formids>
</view>
<view>
<formids bindclick="easyCall" data-key="customer">联系顾客</formids>
</view>
</view>
</view>
</block>
<block wx:else="">
<view class="notice-button-border font34r flex-lr">
<view>
<formids bindclick="refuseOrder">拒绝订单</formids>
</view>
<view>
<formids bindclick="arrangeOrder">安排包间</formids>
</view>
</view>
</block>
</view>
<noticeCall id="notice" bookInfo="{{bookInfo}}"></noticeCall>
<action-sheet hidden="{{actionSheetHidden}}" bindchange="actionSheetChange" class="flex-ll">
... ...