修改问题
This commit is contained in:
@@ -52,11 +52,42 @@
|
||||
})
|
||||
} else {
|
||||
data.logining = true
|
||||
|
||||
|
||||
// this.$u.post('app/user/updateUser?zhiFuBao=' + zhiFuBao + '&certName=' + zhiFuBaoName + '&certNum=' + certNum).then(
|
||||
// res => {
|
||||
// console.log(res);
|
||||
// if (res.code === 0) {
|
||||
// uni.setStorageSync('zhiFuBao', zhiFuBao)
|
||||
// uni.setStorageSync('zhiFuBaoName', zhiFuBaoName)
|
||||
// uni.setStorageSync('certNum', certNum)
|
||||
|
||||
// uni.showToast({
|
||||
// title: '修改成功',
|
||||
// icon: 'none',
|
||||
// complete() {
|
||||
// setTimeout(function () {
|
||||
// uni.navigateBack();
|
||||
// }, 1000)
|
||||
// }
|
||||
// })
|
||||
// } else {
|
||||
// uni.showToast({
|
||||
// title: res.msg || '修改失败',
|
||||
// icon: 'none'
|
||||
// })
|
||||
// }
|
||||
|
||||
|
||||
// });
|
||||
|
||||
|
||||
|
||||
let res = await updateUser({
|
||||
zhiFuBao: data.zhiFuBao,
|
||||
certName: data.zhiFuBaoName,
|
||||
})
|
||||
if( res) {
|
||||
if(res) {
|
||||
data.logining = false
|
||||
let userInfo = uni.getStorageSync('userInfo')
|
||||
userInfo.zhiFuBao = data.zhiFuBao
|
||||
|
||||
Reference in New Issue
Block a user