Commit bfef3bf4 by 李伟康

commit 修复

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