From bd8cf9c00b0d831ab4940e104f04ad1a3ecc9fd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A3=8E=E7=BB=A7=E7=BB=AD=E5=90=B9?= <17611323298@163.com> Date: Mon, 13 Mar 2023 10:05:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/center/records/index.vue | 2 +- pages/mine/details.vue | 1 + pages/mine/details2.vue | 27 +++++++++++++++++---------- 3 files changed, 19 insertions(+), 11 deletions(-) diff --git a/pages/center/records/index.vue b/pages/center/records/index.vue index cb6dafc..521420b 100644 --- a/pages/center/records/index.vue +++ b/pages/center/records/index.vue @@ -52,7 +52,7 @@ | - {{item.validInvalidName.slice(0, 2)||''}} + {{item.validInvalidName ||''}} | 未标记 diff --git a/pages/mine/details.vue b/pages/mine/details.vue index cb27781..8ceefbc 100644 --- a/pages/mine/details.vue +++ b/pages/mine/details.vue @@ -907,6 +907,7 @@ } }) }) + console.log(level1) level1[0].show = true; this.ratelist = level1 } diff --git a/pages/mine/details2.vue b/pages/mine/details2.vue index 3f56675..317dcbf 100644 --- a/pages/mine/details2.vue +++ b/pages/mine/details2.vue @@ -1320,30 +1320,37 @@ var that = this; let msg = ''; if (this.userlistobj.validInvalid != 0) { - msg = '是否标记为"有效录音"?'; + if (this.userlistobj.validInvalid == 0 || this.userlistobj.validInvalid == 1) { + msg = '是否标记为"有效录音"?'; + } else { + msg = '是否撤销"无效(待审核)"?'; + } uni.showModal({ title: '提示', content: msg, - success: function(res) { - if (that.noClick) { - that.noClick = false; + success: (res) => { + if (this.noClick) { + this.noClick = false; if (res.confirm) { let parames = { - id: that.customerId, + id: this.customerId, validInvalid: '', invalidReason: 0 } - if (that.userlistobj.validInvalid == 0) { + if (this.userlistobj.validInvalid == 0) { parames.validInvalid = 1; - } else { + } else if (this.userlistobj.validInvalid == 1) { parames.validInvalid = 0; + } else if (this.userlistobj.validInvalid == 2) { + parames.auditReception = 1 + parames.validInvalid = 1; } - that.$u.post("/customer/updateValidInvalid", parames).then(res => { - that.Thetapeidisshow = false; + this.$u.post("/customer/updateValidInvalid", parames).then(res => { + this.Thetapeidisshow = false; }) } setTimeout(() => { - that.noClick = true; + this.noClick = true; }, 2000) } else { // 这里是重复点击的判断