|
@@ -21,6 +21,7 @@ Page({ |
|
@@ -21,6 +21,7 @@ Page({ |
|
21
|
subscribeHide:false,//顶部提示
|
21
|
subscribeHide:false,//顶部提示
|
|
22
|
subscribeYDHide:true,//顶部订阅引导
|
22
|
subscribeYDHide:true,//顶部订阅引导
|
|
23
|
loading:0,
|
23
|
loading:0,
|
|
|
|
24
|
+ customerCancel: '1', //1显示取消按钮 0不显示
|
|
24
|
},
|
25
|
},
|
|
25
|
id: null,
|
26
|
id: null,
|
|
26
|
tpls: TP.tpls(),
|
27
|
tpls: TP.tpls(),
|
|
@@ -185,10 +186,21 @@ Page({ |
|
@@ -185,10 +186,21 @@ Page({ |
|
185
|
}
|
186
|
}
|
|
186
|
//this.GetBalance()//余额
|
187
|
//this.GetBalance()//余额
|
|
187
|
this.GetCheckout()//账单
|
188
|
this.GetCheckout()//账单
|
|
188
|
- //清理预订消息
|
|
|
|
189
|
- setTimeout(()=>{this.setData({reserveSubmitInfo:''})},3000)
|
|
|
|
190
|
- })
|
|
|
|
191
|
- },
|
189
|
+ this.getSellerInfo(this.detail.seller.id)
|
|
|
|
190
|
+ //清理预订消息
|
|
|
|
191
|
+ setTimeout(()=>{this.setData({reserveSubmitInfo:''})},3000)
|
|
|
|
192
|
+ })
|
|
|
|
193
|
+},
|
|
|
|
194
|
+//是否展示取消预订按钮
|
|
|
|
195
|
+getSellerInfo(sid) {
|
|
|
|
196
|
+ App.Seller.GetDzSellerConf({
|
|
|
|
197
|
+ sid
|
|
|
|
198
|
+ }).then(res => {
|
|
|
|
199
|
+ this.setData({
|
|
|
|
200
|
+ customerCancel: res.data.is_customer_cancel, //1 展示 0 不展示
|
|
|
|
201
|
+ })
|
|
|
|
202
|
+ })
|
|
|
|
203
|
+},
|
|
192
|
formatDatail(detail) {
|
204
|
formatDatail(detail) {
|
|
193
|
detail.rdateStr = util.unixtoTime(detail.ddate, 'MM月DD日 WW HH:II');
|
205
|
detail.rdateStr = util.unixtoTime(detail.ddate, 'MM月DD日 WW HH:II');
|
|
194
|
detail=RS.reserve(detail);
|
206
|
detail=RS.reserve(detail);
|