修改报名弹窗二维码
This commit is contained in:
@@ -6,11 +6,11 @@
|
||||
<h3 class="text-center font-34">领取补贴券</h3>
|
||||
<div class="mt20">
|
||||
<CouponItem
|
||||
:price-num="coupons.price"
|
||||
:price-num="coupons.price"
|
||||
:desc-left="coupons.getNun>0?'已有' + coupons.getNun + '人领取':''"
|
||||
:title="coupons.typeCn"
|
||||
:desc-right="detail.discounts2"
|
||||
:is-active="true"
|
||||
:is-active="true"
|
||||
/>
|
||||
</div>
|
||||
<!--
|
||||
@@ -49,7 +49,20 @@
|
||||
<div class="mt10">有任何疑问可添加车管家的微信进行咨询~</div>
|
||||
</div>
|
||||
<div class="text-center">
|
||||
<div>
|
||||
<van-image fit="cover" style="width:150px;height:150px" src="https://img.liche.cn/space/agent/admin/202509/p_56bb15d5873104537cd529832fb8521b.png" />
|
||||
</div>
|
||||
<div>
|
||||
<van-image fit="cover" style="width:150px;height:150px" src="https://img.liche.cn/space/agent/admin/202509/p_bdce5bb61375127d3dc9f51ee7519fa3.png" />
|
||||
</div>
|
||||
<div>
|
||||
<van-image fit="cover" style="width:150px;height:150px" src="https://img.liche.cn/space/agent/admin/202509/p_cf960a64eb62c7aa3cd25a3e81f9fe2d.png" />
|
||||
</div>
|
||||
<!--
|
||||
<vue-qrcode class="qrcode" value="https://example.com"/>
|
||||
<vue-qrcode class="qrcode" value="https://example.com"/>
|
||||
<vue-qrcode class="qrcode" value="https://example.com"/>
|
||||
-->
|
||||
</div>
|
||||
</van-dialog>
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user