From de8a22cee421aaa32a3d398d8aaf9e1195d160b3 Mon Sep 17 00:00:00 2001
From: lcc <805383944@qq.com>
Date: Tue, 9 Sep 2025 11:09:54 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8A=A5=E5=90=8D=E5=BC=B9?=
=?UTF-8?q?=E7=AA=97=E4=BA=8C=E7=BB=B4=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/PopGetAllowance.vue | 37 ++++++++++++++++++++----------
1 file changed, 25 insertions(+), 12 deletions(-)
diff --git a/src/components/PopGetAllowance.vue b/src/components/PopGetAllowance.vue
index c261d12..4971c30 100644
--- a/src/components/PopGetAllowance.vue
+++ b/src/components/PopGetAllowance.vue
@@ -6,11 +6,11 @@
领取补贴券
@@ -84,7 +97,7 @@ const is_show_count = ref(false);
const count_time = ref(60000);
const showConfirm = ref(false);
-watch(() => props.showPop, async(val) => {
+watch(() => props.showPop, async(val) => {
console.log('showPop', val);
if (val) {
await getBottomInfoAgreeMent();
@@ -111,16 +124,16 @@ const getSmsCode = async () => {
showToast('请输入手机号');
return;
}
-
+
if (!validateMobile(mobile.value)) {
showToast('请输入正确的手机号格式');
return;
}
-
+
try {
// 调用获取验证码接口
const result = await api.post('/auto/sms', { mobile: mobile.value });
-
+
if (result.code === 200) {
showToast('验证码发送成功');
// 开始倒计时
@@ -142,12 +155,12 @@ const bindPostCoupon = async () => {
if (isSubmitting.value) {
return;
}
-
+
if (!mobile.value) {
showToast('请输入手机号');
return;
}
-
+
if (!validateMobile(mobile.value)) {
showToast('请输入正确的手机号格式');
return;
@@ -157,10 +170,10 @@ const bindPostCoupon = async () => {
showToast('请输入验证码');
return;
}
-
+
// 设置提交状态
isSubmitting.value = true;
-
+
///auto/car/coupon
try {
const result = await api.post('/auto/car/coupon', {
@@ -169,7 +182,7 @@ const bindPostCoupon = async () => {
couponId: props.coupons.coupon_id,
cityId: props.cityInfo.cityId
});
-
+
if (result.code === 200) {
handleSuccess();
} else {
@@ -193,7 +206,7 @@ const getBottomInfoAgreeMent = async () => {
item_pop_bottom_info.value = await getBasicConfig('item_bottom')
}
-const showPopContent = (item) => {
+const showPopContent = (item) => {
content.value = item.content;
showContentPop.value = true;
};