Browse Source

离线日志

branch0222
douzhuo 1 year ago
parent
commit
3e08b43635
3 changed files with 7 additions and 0 deletions
  1. +3
    -0
      App.vue
  2. +1
    -0
      pages/index/personal.vue
  3. +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'


Loading…
Cancel
Save