From ec17a3732f0f80f4a8d7f7867249f2581b221a27 Mon Sep 17 00:00:00 2001 From: Liuyi <candymxq888@outlook.com> Date: 星期六, 16 十一月 2024 17:19:27 +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