From 15a55f79a84e5dab670d54a9dc0c6b9133a18441 Mon Sep 17 00:00:00 2001
From: Liuyi <candymxq888@outlook.com>
Date: 星期一, 21 十月 2024 17:29:37 +0800
Subject: [PATCH] 添加更改用户头像,添加故障上报校验

---
 pages/functionList/share/shareList/index.vue |   25 +++++++++++++++++--------
 1 files changed, 17 insertions(+), 8 deletions(-)

diff --git a/pages/functionList/share/shareList/index.vue b/pages/functionList/share/shareList/index.vue
index c3c80e6..3391dcd 100644
--- a/pages/functionList/share/shareList/index.vue
+++ b/pages/functionList/share/shareList/index.vue
@@ -22,7 +22,6 @@
 				</view>
 			</block>
 		</view>
-		
 	</view>
 </template>
 
@@ -51,13 +50,18 @@
 				title: '会员卡共享',
 				content: '确认共享您的会员卡?',
 				success: async function(res) {
-					if (res.confirm) {
-						await editShareTypeApi(postData).then(async(res) =>{
-							if(res.code == 200){
+					if(res.confirm){
+						await editShareTypeApi(postData).then(async res1 =>{
+							if(res1.code == 200){
 								uni.showToast({
-									title:'共享成功!'
+									title:'共享成功!',
 								})
 								await getAskShareList()
+							}else{
+								uni.showToast({
+									title:'共享失败!',
+									icon:'none'
+								})
 							}
 						})
 					}
@@ -68,13 +72,18 @@
 				title: '会员卡共享',
 				content: '确认取消共享?',
 				success: async function(res) {
-					if (res.confirm) {
-						await editShareTypeApi(postData).then(async(res) =>{
-							if(res.code == 200){
+					if(res.confirm) {
+						await editShareTypeApi(postData).then(async(res2) =>{
+							if(res2.code == 200){
 								uni.showToast({
 									title:'取消共享成功!'
 								})
 								await getAskShareList()
+							}else{
+								uni.showToast({
+									title:'取消失败!',
+									icon:'none'
+								})
 							}
 						})
 					}

--
Gitblit v1.9.3