mirror of
http://36.133.248.69:3088/admin/RentWeAppFront.git
synced 2026-03-08 01:42:28 +08:00
需求变更进行调整
This commit is contained in:
@@ -173,12 +173,33 @@
|
||||
this.loadUserInfo()
|
||||
this.countHandlingReserve()
|
||||
this.countUnHandleContract()
|
||||
|
||||
|
||||
this.countUnpayRentBills()
|
||||
this.countUnpayWaeBills()
|
||||
this.countUnreadMsg()
|
||||
},
|
||||
|
||||
methods: {
|
||||
loadUserInfo(){
|
||||
let userInfo = uni.getStorageSync('userInfo');
|
||||
if(!userInfo) {
|
||||
return
|
||||
}
|
||||
let url = `/login/userInfo`;
|
||||
this.$u.get(url, {}, {
|
||||
'WT': this.$getToken(),
|
||||
'USERTYPE': userInfo.userType
|
||||
}).then(obj => {
|
||||
if(obj.flag){
|
||||
uni.setStorageSync('userInfo', {
|
||||
userType: obj.data.userType,
|
||||
oaAuth: obj.data.oaAuth,
|
||||
cusNo: obj.data.cusNo,
|
||||
userName: obj.data.userName,
|
||||
openId: obj.data.openId,
|
||||
subscribe: obj.data.subscribeMsg
|
||||
})
|
||||
}
|
||||
});
|
||||
this.user = uni.getStorageSync('userInfo');
|
||||
},
|
||||
logout() {
|
||||
@@ -234,7 +255,7 @@
|
||||
})
|
||||
},
|
||||
countUnreadMsg(){
|
||||
this.$u.get(`/messsage/countUnread`, {},{
|
||||
this.$u.get(`/message/countUnread`, {},{
|
||||
WT: this.$getToken()
|
||||
}).then(res => {
|
||||
if(res.flag){
|
||||
|
||||
Reference in New Issue
Block a user