Commit 6cacf1d0 by 胡悦

提交

1 parent fb561762
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2024-09-06 10:11:03 * @Date: 2024-09-06 10:11:03
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2024-09-12 15:52:17 * @LastEditTime: 2024-09-12 16:26:21
--> -->
<template> <template>
<view> <view>
...@@ -180,7 +180,7 @@ const formObject_boutique = [{ ...@@ -180,7 +180,7 @@ const formObject_boutique = [{
key: "customerName", key: "customerName",
type: "input", type: "input",
inputType: "text", inputType: "text",
maxlength: 20, maxlength: 10,
placeholder: '请输入姓名', placeholder: '请输入姓名',
required: true required: true
}, },
...@@ -238,6 +238,7 @@ export default { ...@@ -238,6 +238,7 @@ export default {
immediate: true, immediate: true,
handler(newval) { handler(newval) {
console.log('重新进入', this.pageParams) console.log('重新进入', this.pageParams)
this.pageParams.QRURL = ''
if (this.couponList.length) { if (this.couponList.length) {
let item = this.couponList.find(e => e.couponType == 1), let item = this.couponList.find(e => e.couponType == 1),
item2 = this.couponList.find(e => e.couponType == 18) item2 = this.couponList.find(e => e.couponType == 18)
...@@ -336,10 +337,13 @@ export default { ...@@ -336,10 +337,13 @@ export default {
if (pageParams.received) return if (pageParams.received) return
this.$refs[e].open(); this.$refs[e].open();
}, },
open (customerType, customerCouponId) { open(customerType, customerCouponId) {
this.$refs.couponPopup.open() this.$refs.couponPopup.open()
this.customerType = customerType this.customerType = customerType
this.pageParams.customerCouponId = customerCouponId if (customerCouponId) {
this.pageParams.customerCouponId = customerCouponId
this.pageParams.customerQr = qrcode.createQrCodeImg(`id=${customerCouponId}`, {size: 200})
}
this.init() this.init()
const { customerName, phoneNumber, staffName } = this.customerInfo const { customerName, phoneNumber, staffName } = this.customerInfo
this.isCheck = customerName && phoneNumber && staffName this.isCheck = customerName && phoneNumber && staffName
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!