扫码识别
From b3e53c2848b669e5a6b2406745aef7a4636a3ce9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=89=8D=E7=AB=AF=E5=B0=8F=E5=95=8A=E7=99=BD?= <2053890199@qq.com> Date: Sat, 15 Nov 2025 16:43:33 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E9=A6=96=E9=A1=B5):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=89=AB=E7=A0=81=E8=8E=B7=E5=8F=96=E4=BB=A3=E9=87=91=E5=88=B8?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E5=8A=9F=E8=83=BD=E5=B9=B6=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E8=A1=A8=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增getDetail接口用于获取代金券详情 - 扫码后自动填充表单数据并禁用输入框 - 调整表单字段顺序,将扫码框移至顶部 - 移除提交时的验证码校验逻辑 --- src/api/index.js | 5 + src/pages/index/index.vue | 71 ++-- src/pages/index/index_old.vue | 613 ++++++++++++++++++++++++++++++++++ 3 files changed, 656 insertions(+), 33 deletions(-) create mode 100644 src/pages/index/index_old.vue diff --git a/src/api/index.js b/src/api/index.js index 3b6af63..f374775 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -34,3 +34,8 @@ export const leftOverCount = (params) => { export const wechatConfig = (params) => { return ApiService.post("/marriage/wechat/getParam", params); }; + +// 回显数据 +export const getDetail = (params) => { + return ApiService.get("/marriage/codeInfo", params); +}; diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 36aebb4..3a537ec 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -30,28 +30,6 @@
扫码识别
+
+
+
+
+ + {{ form.code ? form.code : "请扫码识别代金券二维码" }} +
+扫码识别
+