Denna sida fungerar bättre med Javascript igång.
Startsida
Utforska
Hjälp
Registrera dig
Logga in
liumin
/
NewZkgj
Bevaka
1
Stjärnmärk
0
Förgrening
0
Kod
Ärenden
0
Pull-förfrågningar
0
Släpp
0
Wiki
Aktiviteter
Bläddra i källkod
离线日志
branch0222
douzhuo
1 år sedan
förälder
79762f26ba
incheckning
3e08b43635
3 ändrade filer
med
7 tillägg
och
0 borttagningar
Delad Vy
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
Visa fil
@@ -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
Visa fil
@@ -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
Visa fil
@@ -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'
Skriv
Förhandsgranska
Laddar…
Avbryt
Spara