From 9ac5b0c5125ff870346772dde37a02c298762d8c Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Tue, 17 Dec 2024 18:48:16 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=91=E5=AE=9A=E6=94=AF=E4=BB=98=E5=AE=9D?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BF=AE=E6=94=B9=E4=B8=8A=E9=99=90=E6=8F=90?= =?UTF-8?q?=E9=86=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- me/invite/zhifubao.vue | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/me/invite/zhifubao.vue b/me/invite/zhifubao.vue index b593302..af566a7 100644 --- a/me/invite/zhifubao.vue +++ b/me/invite/zhifubao.vue @@ -78,18 +78,26 @@ } else { this.$u.post('app/user/updateUser?zhiFuBao=' + zhiFuBao + '&zhiFuBaoName=' + zhiFuBaoName).then( res => { - // console.log(res); - uni.setStorageSync('zhiFuBao', zhiFuBao) - uni.setStorageSync('zhiFuBaoName', zhiFuBaoName) - uni.showToast({ - title: '修改成功', - icon: 'none', - complete() { - setTimeout(function() { - uni.navigateBack(); - }, 1000) - } - }) + console.log(res); + if(res.code==0){ + uni.setStorageSync('zhiFuBao', zhiFuBao) + uni.setStorageSync('zhiFuBaoName', zhiFuBaoName) + uni.showToast({ + title: '修改成功', + icon: 'none', + complete() { + setTimeout(function() { + uni.navigateBack(); + }, 1000) + } + }) + }else{ + uni.showToast({ + title:res.msg||'修改失败', + icon:'none' + }) + } + });