This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
liumin
/
NewZkgj
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
离线日志
branch0222
douzhuo
1 year ago
parent
79762f26ba
commit
3e08b43635
3 changed files
with
7 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
App.vue
+1
-0
pages/index/personal.vue
+3
-0
pages/login/index.vue
+ 3
- 0
App.vue
View File
@@ -156,6 +156,9 @@
});
},
onShow(options) {
this.$u.post('/user/addLoginCount', {
houseId: uni.getStorageSync('buildingID').id
})
const token = uni.getStorageSync("weapp_session_login_data")
if (typeof token.token != "string") {
console.log("没有")
+ 1
- 0
pages/index/personal.vue
View File
@@ -171,6 +171,7 @@
if (res.confirm) {
app.Closewebsocke()
uni.clearStorageSync(); //清除缓存
this.$u.post('/user/exitSystem', {id: uni.getStorageSync('exitSystemId')})
uni.showToast({
icon: "none",
title: "退出成功"
+ 3
- 0
pages/login/index.vue
View File
@@ -145,6 +145,9 @@
uni.setStorageSync("buildingID", lopan); //项目id写入缓存
this.$u.post('/user/addLoginCount', {
houseId: arr[0].id
}).then(res => {
console.log(res)
uni.setStorageSync("exitSystemId", res)
})
uni.switchTab({
url: '/pages/index/index'
Write
Preview
Loading…
Cancel
Save