mirror of
https://gitee.com/java110/PropertyApp.git
synced 2026-02-27 00:20:03 +08:00
退出功能开发完成
This commit is contained in:
parent
c6d5b22ef1
commit
3f13d8b32c
@ -24,7 +24,7 @@ const listComplaints = baseUrl + 'app/complaint.listComplaints'; //添加投诉
|
||||
|
||||
const saveComplaint = baseUrl + 'app/complaint'; //查询业主房间
|
||||
|
||||
const queryRoomsByOwner = baseUrl + 'app/room.queryRoomsByOwner'; //绑定业主
|
||||
const userLogout = baseUrl + 'app/user.service.logout'; //绑定业主
|
||||
|
||||
const appUserBindingOwner = baseUrl + 'app/owner.appUserBindingOwner'; //查询绑定业主
|
||||
|
||||
@ -78,7 +78,7 @@ module.exports = {
|
||||
applyVisitorApplicationKey: applyVisitorApplicationKey,
|
||||
uploadOwnerPhoto: uploadOwnerPhoto,
|
||||
getOwnerPhotoPath: getOwnerPhotoPath,
|
||||
queryRoomsByOwner: queryRoomsByOwner,
|
||||
userLogout: userLogout,
|
||||
queryParkingSpacesByOwner: queryParkingSpacesByOwner,
|
||||
queryFeeByParkingSpace: queryFeeByParkingSpace,
|
||||
queryFeeByOwner: queryFeeByOwner,
|
||||
|
||||
@ -127,7 +127,35 @@
|
||||
this.logoutUser = false;
|
||||
},
|
||||
_doLogoutUser:function(){
|
||||
|
||||
let _data = {
|
||||
token:wx.getStorageSync('token')
|
||||
}
|
||||
this.java110Context.request({
|
||||
url: this.java110Constant.url.userLogout,
|
||||
header: this.java110Context.getHeaders(),
|
||||
method: "POST",
|
||||
data: _data,
|
||||
success: function(res) {
|
||||
if(res.statusCode != 200){
|
||||
uni.showToast({
|
||||
icon:"none",
|
||||
title: res.data
|
||||
});
|
||||
return ;
|
||||
}
|
||||
uni.clearStorageSync();
|
||||
uni.navigateTo({
|
||||
url:"/pages/login/login"
|
||||
});
|
||||
},
|
||||
fail: function(error) {
|
||||
// 调用服务端登录接口失败
|
||||
uni.showToast({
|
||||
title: '调用接口失败'
|
||||
});
|
||||
console.log(error);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user