Commit 7cd97c70 by sunerhu

1.缓存个人信息

parent c3e515e5
...@@ -186,6 +186,7 @@ ...@@ -186,6 +186,7 @@
this.customerBasicInfo = res['data']; this.customerBasicInfo = res['data'];
this.inviteEqrode = this.customerBasicInfo.invitationCode; this.inviteEqrode = this.customerBasicInfo.invitationCode;
uni.setStorageSync('user_mobile', res.data.mobile) uni.setStorageSync('user_mobile', res.data.mobile)
uni.setStorageSync('userinfodataForm', res.data)
}else{ }else{
uni.showToast({ uni.showToast({
title: res['message'], title: res['message'],
......
...@@ -70,6 +70,15 @@ ...@@ -70,6 +70,15 @@
}) })
}, },
oneKeyRead(){ oneKeyRead(){
console.log(this.system_msgs_list, 46)
if( this.system_msgs_list.length == 0){
uni.showToast({
title: '暂无可清除未读消息',
duration: 2000,
icon: 'none'
})
return false
}
api.oneKeyRead({systemType:1,userId:2}).then((res)=>{ api.oneKeyRead({systemType:1,userId:2}).then((res)=>{
if(res['success']){ if(res['success']){
uni.showToast({ uni.showToast({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment