1004749546@qq.com
4 anni fa
|
@@ -215,7 +215,7 @@
|
|
|
})
|
|
|
},
|
|
|
// 获取服务列表
|
|
|
- getServerList() {
|
|
|
+ getServerList(flag) {
|
|
|
this.status = 'loading'
|
|
|
let storeId = this.$store.state.vuex_storeId
|
|
|
getStoreItems({
|
|
@@ -224,9 +224,12 @@
|
|
|
this.status = 'loadmore'
|
|
|
if (res.status == 200) {
|
|
|
this.itemList = res.data
|
|
|
- this.serverIndex = 0
|
|
|
- // 获取用户可用优惠券
|
|
|
- this.getCouponList()
|
|
|
+ // 支付失败 重查服务项时不切换服务及重查优惠券
|
|
|
+ if (!flag) {
|
|
|
+ this.serverIndex = 0
|
|
|
+ // 获取用户可用优惠券
|
|
|
+ this.getCouponList()
|
|
|
+ }
|
|
|
} else {
|
|
|
this.itemList = []
|
|
|
}
|
|
@@ -352,7 +355,7 @@
|
|
|
this.disabledPay = false
|
|
|
setTimeout(()=>{
|
|
|
// 刷新服务项
|
|
|
- this.getServerList()
|
|
|
+ this.getServerList(true)
|
|
|
},2000)
|
|
|
}
|
|
|
})
|