Commit 2b899b42 authored by lvtz's avatar lvtz

fix

parent 5b8fc6e1
......@@ -41,6 +41,12 @@ App({
},
onShow: function (params) { // 小程序启动,或从后台进入前台显示时
const {path, query, scene, shareTicket, referrerInfo} = params;
// if (visitor.version != constants.storageVersion) {
// LocalStorage.removeItem('teacher');
// LocalStorage.removeItem('user');
// LocalStorage.removeItem('dakarole');
// LocalStorage.removeItem('visitor');
// }
if(path == 'business/pages/loginregistermgt/login'){
this.globalData.fromUrl = path;
this.globalData.query = {};
......@@ -54,6 +60,18 @@ App({
this.globalData.fromUrl = 'ucenter/index';
this.globalData.query = {};
}
if (path == 'ucenter/index') {
const visitor = LocalStorage.getItem('visitor');
if (visitor && visitor.version != constants.storageVersion) {
LocalStorage.removeItem('teacher');
LocalStorage.removeItem('user');
LocalStorage.removeItem('dakarole');
LocalStorage.removeItem('visitor');
wx.reLaunch({
url: 'ucenter/index'
});
}
}
if (path != 'ucenter/index') {
this.canEnterSystem(path);
}
......@@ -117,6 +135,7 @@ App({
},
canEnterSystem (path) {
const visitor = LocalStorage.getItem('visitor');
console.log(visitor, 'visitor');
// 新版本通知
// if (LocalStorage.getItem('versionNotice') != 1 && path != 'src/pages/versionnotice/index') {
// wx.redirectTo({
......
......@@ -2,7 +2,7 @@
imageRoot: 'https://cdn.img.shangjiadao.cn/qingxiao/daka/images/',
// host: 'https://qxapi.qingxiao.online/daka',
// host2: 'https://wx.m.shangjiadao.cn',
storageVersion: '4.0',
storageVersion: '5.0',
imageVersion: '20191104',
host: 'https://clock.wp53.cn',
host2: 'https://test.wp53.cn',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment