From 71a8f48e70832a95e9c2e1cc2123ffdaa184646d Mon Sep 17 00:00:00 2001 From: wwz <114797966@qq.com> Date: Wed, 25 Dec 2024 17:12:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=AF=A6=E6=83=85=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E5=88=9B=E5=BB=BA=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/js/api.js | 4 +++- pages/electric/issuer.vue | 40 ++++++++++++++++++++++++++++---------- pages/index/orderinfo.vue | 8 ++++++-- pages/index/orderinfos.vue | 12 ++++++++---- 4 files changed, 47 insertions(+), 17 deletions(-) diff --git a/common/js/api.js b/common/js/api.js index 67f9a99..88daf3d 100644 --- a/common/js/api.js +++ b/common/js/api.js @@ -210,5 +210,7 @@ export default { monthssearch(data) { //根据月份查询 return uni.api.post("hfive/monthssearch", data); }, - + researhqrcode(data) { //查询人脸认证结果 + return uni.api.post("hfive/researhqrcode", data); + }, } \ No newline at end of file diff --git a/pages/electric/issuer.vue b/pages/electric/issuer.vue index 85132b1..8b8871a 100644 --- a/pages/electric/issuer.vue +++ b/pages/electric/issuer.vue @@ -63,7 +63,7 @@ + @click="clicktextshow(loginid,textshow)"> 已认证 @@ -152,7 +152,7 @@ *办税人姓名 - w + *办税人手机号码 @@ -503,14 +503,18 @@ }, // 重置 reset() { - this.form = { - user_name: '', - time: "", - page: 1, - type: '-1', - status: 'loadmore', - list: [] - } + // this.form = { + // user_name: '', + // time: "", + // page: 1, + // type: '-1', + // status: 'loadmore', + // } + this.form.user_name = '' + this.form.time = '' + this.form.page = 1 + this.form.type = '-1' + this.form.status = 'loadmore' this.textshow = '' this.loginid = '' this.codelang = '' @@ -519,6 +523,22 @@ this.canvasshow = false this.newissuedbyliststatus() }, + //查询人脸认证结果 其他没有 + async clicktextshow(loginid, textshow) { + if (textshow == '人脸') { + let res = await this.api.researhqrcode({ + id: this.loginid + }) + this.canvasshow = false + uni.showToast({ + title: res.message || res.msg, + icon: "none", + }) + setTimeout(()=>{ + this.reset() + },1000) + } + }, // 列表 async newissuedbyliststatus() { this.form.status = 'loading'; diff --git a/pages/index/orderinfo.vue b/pages/index/orderinfo.vue index c82c87c..dccd9b6 100644 --- a/pages/index/orderinfo.vue +++ b/pages/index/orderinfo.vue @@ -44,10 +44,14 @@ 手机号: {{ datalsit.mobile }} - - 开票时间: + + 创建时间: {{ datalsit.createtime }} + + 开票时间: + {{ datalsit.kprq }} + diff --git a/pages/index/orderinfos.vue b/pages/index/orderinfos.vue index 856b4bb..3c937d8 100644 --- a/pages/index/orderinfos.vue +++ b/pages/index/orderinfos.vue @@ -54,9 +54,13 @@ 手机号: {{ datalsit.mobile }} - + + 创建时间: + {{ datalsit.createtime }} + + 开票时间: - {{datalsit.createtime}} + {{ datalsit.kprq }} @@ -124,9 +128,9 @@ // 调用绘制方法将二维码图案绘制到canvas上 qr.drawCanvas(); } else { - setTimeout(()=>{ + setTimeout(() => { uni.navigateBack() - },1000) + }, 1000) } }, savealbum(e) {