From eddd7b949e1d1f418fb440cefcfc6ec560ca8883 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AD=8F=E5=95=BE?= <1144797966@qq.com> Date: Fri, 27 Dec 2024 14:48:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=AB=E7=A0=81=E8=BF=9B=E6=9D=A5=E6=8C=89?= =?UTF-8?q?=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/js/api.js | 3 +++ pages/hindex/index.vue | 13 +++++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/common/js/api.js b/common/js/api.js index 88daf3d..75cf262 100644 --- a/common/js/api.js +++ b/common/js/api.js @@ -213,4 +213,7 @@ export default { researhqrcode(data) { //查询人脸认证结果 return uni.api.post("hfive/researhqrcode", data); }, + checkqrcodestatus(data) { //检查二维码状态 + return uni.api.post("user/checkqrcodestatus", data); + }, } \ No newline at end of file diff --git a/pages/hindex/index.vue b/pages/hindex/index.vue index 2225873..d8704fb 100644 --- a/pages/hindex/index.vue +++ b/pages/hindex/index.vue @@ -94,7 +94,8 @@ 微信抬头一键导入 - 确定 + 确定 @@ -151,7 +152,6 @@ } else { this.form.id = e.id } - // 获取开票抬头 // 这是H5 // #ifdef H5 @@ -163,6 +163,15 @@ this.showtitle = true this.form.open_id = uni.cache.get('open_id') // #endif + // 这是状态 + let RES = await this.api.checkqrcodestatus({ + id: this.form.id + }) + if (RES.code == 1) { + this.disabled = true + } else { + this.disabled = false + } // 开票失败的回显 if (e.view_type == 'fail') { this.form.view_type = e.view_type;