浏览代码

离线日志

branch0222
douzhuo 1年前
父节点
当前提交
3e08b43635
共有 3 个文件被更改,包括 7 次插入0 次删除
  1. +3
    -0
      App.vue
  2. +1
    -0
      pages/index/personal.vue
  3. +3
    -0
      pages/login/index.vue

+ 3
- 0
App.vue 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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'


正在加载...
取消
保存