Commit bfef3bf4 by 李伟康

commit 修复

1 parent 9132599b
...@@ -267,6 +267,7 @@ export default { ...@@ -267,6 +267,7 @@ export default {
immediate: true, immediate: true,
handler (newval) { handler (newval) {
this.pageParams = this.$options.data.call(this).pageParams this.pageParams = this.$options.data.call(this).pageParams
this.couponTypeName = ''
this.closeAllPopup() this.closeAllPopup()
this.refreshKey = Date.now() this.refreshKey = Date.now()
} }
...@@ -359,9 +360,9 @@ export default { ...@@ -359,9 +360,9 @@ export default {
shopMerchantId } = uni.$storage.get("userInfo"), shopMerchantId } = uni.$storage.get("userInfo"),
validateStatus = await this.validate(), validateStatus = await this.validate(),
checkCouponAmount = await this.checkCouponAmount(couponId, [shopMerchantId]) checkCouponAmount = await this.checkCouponAmount(couponId, [shopMerchantId])
if (!checkCouponAmount.length) throw '该门店礼券已使用完,请联系管理员配置。'
if (!validateStatus) return if (!validateStatus) return
if (clickFlag) return if (clickFlag) return
if (!checkCouponAmount.length) throw '该门店礼券已使用完,请联系管理员配置。'
this.pageParams.clickFlag = true this.pageParams.clickFlag = true
uni.showLoading() uni.showLoading()
let { staffName, salesUuid } = customerInfo, let { staffName, salesUuid } = customerInfo,
...@@ -419,7 +420,7 @@ export default { ...@@ -419,7 +420,7 @@ export default {
return flag return flag
}, },
checkCustomerReceivedStatus (receiveCouponStartTime) { checkCustomerReceivedStatus (receiveCouponStartTime) {
if(this.pageParams.qrTimer) return if (this.pageParams.qrTimer) return
try { try {
this.pageParams.received = false this.pageParams.received = false
this.pageParams.qrTimer = setInterval(async () => { this.pageParams.qrTimer = setInterval(async () => {
......
...@@ -112,7 +112,7 @@ export default { ...@@ -112,7 +112,7 @@ export default {
show:{ show:{
handler() { handler() {
this.init() this.init()
this.srefs.receptionTips?.close() this.$refs.receptionTips?.close()
}, },
immediate:true immediate:true
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!