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;