|
...
|
...
|
@@ -21,6 +21,7 @@ Page({ |
|
|
|
subscribeHide:false,//顶部提示
|
|
|
|
subscribeYDHide:true,//顶部订阅引导
|
|
|
|
loading:0,
|
|
|
|
customerCancel: '1', //1显示取消按钮 0不显示
|
|
|
|
},
|
|
|
|
id: null,
|
|
|
|
tpls: TP.tpls(),
|
|
...
|
...
|
@@ -185,10 +186,21 @@ Page({ |
|
|
|
}
|
|
|
|
//this.GetBalance()//余额
|
|
|
|
this.GetCheckout()//账单
|
|
|
|
//清理预订消息
|
|
|
|
setTimeout(()=>{this.setData({reserveSubmitInfo:''})},3000)
|
|
|
|
})
|
|
|
|
},
|
|
|
|
this.getSellerInfo(this.detail.seller.id)
|
|
|
|
//清理预订消息
|
|
|
|
setTimeout(()=>{this.setData({reserveSubmitInfo:''})},3000)
|
|
|
|
})
|
|
|
|
},
|
|
|
|
//是否展示取消预订按钮
|
|
|
|
getSellerInfo(sid) {
|
|
|
|
App.Seller.GetDzSellerConf({
|
|
|
|
sid
|
|
|
|
}).then(res => {
|
|
|
|
this.setData({
|
|
|
|
customerCancel: res.data.is_customer_cancel, //1 展示 0 不展示
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
formatDatail(detail) {
|
|
|
|
detail.rdateStr = util.unixtoTime(detail.ddate, 'MM月DD日 WW HH:II');
|
|
|
|
detail=RS.reserve(detail);
|
...
|
...
|
|