From c8ed6d697a9e7a5eeb0fdac8458b2c0800cbedc3 Mon Sep 17 00:00:00 2001 From: jianglong Date: Tue, 4 Jul 2023 14:52:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=BA=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bundle/pages/user/complain.vue | 16 +++++++++++++++- bundle/pages/user_profile/user_profile.vue | 12 +++++++----- 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/bundle/pages/user/complain.vue b/bundle/pages/user/complain.vue index 2389205..2b58738 100644 --- a/bundle/pages/user/complain.vue +++ b/bundle/pages/user/complain.vue @@ -34,7 +34,7 @@ 备注说明 - @@ -115,6 +115,8 @@ } = await getComplainCategory() if (code == 1) { this.shopCategory = data.lists + this.form.cid = this.shopCategory[0].id + this.form.clabel = this.shopCategory[0].name } }, // 提交表单 @@ -128,6 +130,18 @@ image: fileList[0], content:this.content } + if (!this.content || this.content == ""){ + return this.$toast({ + title: '请输入投诉内容', + }); + } + if (!this.fileList || this.fileList.length == 0){ + return this.$toast({ + title: '请输入投诉截图', + }); + } + + delete submitObj.clabel const { data, diff --git a/bundle/pages/user_profile/user_profile.vue b/bundle/pages/user_profile/user_profile.vue index d462e6c..c9cb000 100644 --- a/bundle/pages/user_profile/user_profile.vue +++ b/bundle/pages/user_profile/user_profile.vue @@ -491,15 +491,17 @@ export default { // 微信获取手机号 // #ifdef MP-WEIXIN async getPhoneNumber(e) { - console.log(e, this.code) + const { encryptedData, - iv + iv, + code } = e.detail; + console.log(e, code) const params = { - code: this.code, - encrypted_data: encryptedData, - iv + code: code, + // encrypted_data: encryptedData, + // iv } this.fieldType = FieldType.MOBILE if (encryptedData) {