Commit 3136c29d by 李伟康

commit 修复BUG

1 parent ad78142e
......@@ -279,7 +279,10 @@ export default {
if (this.check()) {
const { sceneType } = this
if (sceneType == 0) this.step = 2
else this.success(receptionStatus)
else {
receptionStatus = 1
this.success(receptionStatus)
}
}
} else {
let { receptionStatus } = this
......@@ -310,11 +313,9 @@ export default {
this.$store.dispatch('getCustomerInfo').then((customerInfo) => {
this.formData = customerInfo
let { sceneType, customerType } = this,
receptionStatus = -1,
step = Object.values(customerInfo).every((value) => !!value) ? 2 : 1
this.errorTip = false
if (sceneType == 1) {
receptionStatus = 1 //精品默认1
step = 1
this.formObject = formObject_boutique
if (customerType == 0 && !this.check()) return uni.showToast({
......@@ -327,7 +328,6 @@ export default {
step = 1
}
this.step = step
this.receptionStatus = receptionStatus
this.$refs.formRef.open()
})
},
......
......@@ -266,8 +266,7 @@ export default {
immediate: true,
handler (newval) {
this.pageParams = this.$options.data.call(this).pageParams
this.resetFocusIndex()
this.$refs.qrbox.close()
this.closeAllPopup()
this.refreshKey = Date.now()
}
}
......@@ -307,7 +306,7 @@ export default {
item2 = arr.find(e => e.couponType == 18)
if (!this.pageParams.couponId) {
if (item) this.chooseCoupon(item) //默认填入类型为「太阳膜」类型
else if (item2) this.chooseCoupon(item) //次选填入「精品」类型
else if (item2) this.chooseCoupon(item2) //次选填入「精品」类型
else this.chooseCoupon(arr[0]) // 无此两种类型情况默认带入任意类型礼券
}
}
......@@ -337,6 +336,7 @@ export default {
this.$refs.carBrandListVisible.close()
this.$refs.employeeBoxVisible.close()
this.$refs.couponBoxVisible.close()
this.$refs.qrbox.close()
this.resetFocusIndex()
this.closeQr()
},
......@@ -490,7 +490,7 @@ export default {
gap: 0 28rpx;
height: 100%;
&-item {
width: 368rpx;
width: 336rpx;
height: 100%;
position: relative;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!