From 63f68bf25b920d5711032a6e675769855ed3582b Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期四, 19 十二月 2024 10:18:16 +0800
Subject: [PATCH] ll

---
 h5/pages/userinfo/userinfo.vue |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/h5/pages/userinfo/userinfo.vue b/h5/pages/userinfo/userinfo.vue
index c825b10..9fe4385 100644
--- a/h5/pages/userinfo/userinfo.vue
+++ b/h5/pages/userinfo/userinfo.vue
@@ -258,12 +258,15 @@
 						isFace: 0
 					},
 					success: (uploadFileRes) => {
-						let res = JSON.parse(uploadFileRes.data)
+						let res = JSON.parse(uploadFileRes.data)
+						if(res.code !== 200){
+							return this.showToast(res.message)
+						}
 						this.visitorData.faceImg = res.data.halfPath
 						this.visitorData.faceImgUrl = res.data.prefixPath + res.data.folder + res.data.halfPath
 					},
-					fail(err) {
-						alert('澶辫触')
+					fail: (err) => {
+						// this.showToast(err)
 					},
 					complete() {
 						uni.hideLoading();

--
Gitblit v1.9.3