Commit 4879e9276f4730cff0c7b3423e18e47e566e1cc8
1 parent
c9a2ba11
邀请函模板1,设置了不允许取消,还可以操作取消,不显示经理头像名字和电话,问题处理
Showing
3 changed files
with
16 additions
and
6 deletions
| @@ -34,7 +34,8 @@ Page({ | @@ -34,7 +34,8 @@ Page({ | ||
| 34 | menuhidden: true, | 34 | menuhidden: true, |
| 35 | selecthidden: true, | 35 | selecthidden: true, |
| 36 | morehidden: true, | 36 | morehidden: true, |
| 37 | - openid: getApp().openid | 37 | + openid: getApp().openid, |
| 38 | + customerCancel:'',//是否向顾客开放取消 1 是 0 否 默认 0 | ||
| 38 | }, | 39 | }, |
| 39 | id: null, | 40 | id: null, |
| 40 | msgTpl: '', | 41 | msgTpl: '', |
| @@ -265,6 +266,7 @@ Page({ | @@ -265,6 +266,7 @@ Page({ | ||
| 265 | tel: reserev.seller.seller_tel.split(',')[0] | 266 | tel: reserev.seller.seller_tel.split(',')[0] |
| 266 | } | 267 | } |
| 267 | }) | 268 | }) |
| 269 | + this.getSellerInfo(reserev.sid) | ||
| 268 | if (this.data.detail.type == 0 || this.data.detail.type == 1) { | 270 | if (this.data.detail.type == 0 || this.data.detail.type == 1) { |
| 269 | this.getstaffinfo(); | 271 | this.getstaffinfo(); |
| 270 | this.getroomimage(); | 272 | this.getroomimage(); |
| @@ -283,6 +285,16 @@ Page({ | @@ -283,6 +285,16 @@ Page({ | ||
| 283 | this.msgTpl = res.data.content | 285 | this.msgTpl = res.data.content |
| 284 | }) | 286 | }) |
| 285 | }, | 287 | }, |
| 288 | + //是否展示取消预订按钮 | ||
| 289 | + getSellerInfo(sid) { | ||
| 290 | + App.Seller.GetDzSellerConf({ | ||
| 291 | + sid | ||
| 292 | + }).then(res => { | ||
| 293 | + this.setData({ | ||
| 294 | + customerCancel: res.data.is_customer_cancel, //1 展示 0 不展示 | ||
| 295 | + }) | ||
| 296 | + }) | ||
| 297 | + }, | ||
| 286 | formatDatail(detail, dateSmart) { | 298 | formatDatail(detail, dateSmart) { |
| 287 | detail.rdateStr = dateSmart; | 299 | detail.rdateStr = dateSmart; |
| 288 | detail.tableFirst = detail.tables[0].name; | 300 | detail.tableFirst = detail.tables[0].name; |
| @@ -98,11 +98,8 @@ | @@ -98,11 +98,8 @@ | ||
| 98 | <view hidden="{{selecthidden}}"> | 98 | <view hidden="{{selecthidden}}"> |
| 99 | <navigator class="select-item-button flex-cc white-font font24r" style="left: 75rpx;bottom:290rpx;" open-type="redirect" url="/pages/customer/index?islove=custom">首页</navigator> | 99 | <navigator class="select-item-button flex-cc white-font font24r" style="left: 75rpx;bottom:290rpx;" open-type="redirect" url="/pages/customer/index?islove=custom">首页</navigator> |
| 100 | <navigator class="select-item-button flex-cc white-font font24r" style="left: 150rpx;bottom:160rpx;" open-type="redirect" url="/pages/me/index">我的</navigator> | 100 | <navigator class="select-item-button flex-cc white-font font24r" style="left: 150rpx;bottom:160rpx;" open-type="redirect" url="/pages/me/index">我的</navigator> |
| 101 | - <block wx:if="{{detail.hasCancel}}"> | ||
| 102 | - <view class="select-item-button flex-cc gray-font font28r" style="left: 75rpx;bottom:30rpx;">取消订单</view> | ||
| 103 | - </block> | ||
| 104 | - <block wx:else> | ||
| 105 | - <view class="select-item-button flex-cc white-font font24r" style="left: 75rpx;bottom:30rpx;" bindtap="cancelmodal">取消订单</view> | 101 | + <block wx:if="{{customerCancel == '1'}}"> |
| 102 | + <view class="select-item-button flex-cc white-font font28r" style="left: 75rpx;bottom:30rpx;" bindtap="cancelmodal">取消订单</view> | ||
| 106 | </block> | 103 | </block> |
| 107 | <!-- <view class="select-item-button flex-cc white-font font24r" style="left: 42rpx;bottom:10rpx;" bindtap="closeselect">返回</view> --> | 104 | <!-- <view class="select-item-button flex-cc white-font font24r" style="left: 42rpx;bottom:10rpx;" bindtap="closeselect">返回</view> --> |
| 108 | </view> | 105 | </view> |
| @@ -148,6 +148,7 @@ Page({ | @@ -148,6 +148,7 @@ Page({ | ||
| 148 | // (过了当前餐段结束时间 || 预订是用餐完成状态) 邀请函显示已结束 | 148 | // (过了当前餐段结束时间 || 预订是用餐完成状态) 邀请函显示已结束 |
| 149 | url += (isOrder == '1' || reserev.status == '3') ? '&isOrder=1' : ''; | 149 | url += (isOrder == '1' || reserev.status == '3') ? '&isOrder=1' : ''; |
| 150 | url+= this.data.options.paymentId?'&paymentId='+this.data.options.paymentId:'&paymentId=' ; | 150 | url+= this.data.options.paymentId?'&paymentId='+this.data.options.paymentId:'&paymentId=' ; |
| 151 | + if(data.type == '1') url+= '&uid='+this.data.options.uid | ||
| 151 | console.log('跳转路径url', url); | 152 | console.log('跳转路径url', url); |
| 152 | wx.redirectTo({ | 153 | wx.redirectTo({ |
| 153 | url | 154 | url |
-
Please register or login to post a comment