diff --git a/components/my/my-system.vue b/components/my/my-system.vue index 0d39306..5aae65e 100644 --- a/components/my/my-system.vue +++ b/components/my/my-system.vue @@ -108,11 +108,7 @@ }); return; } - let wAppId = uni.getStorageSync(constant.mapping.W_APP_ID); - uni.clearStorageSync(); - if (wAppId != null && wAppId != undefined && wAppId != '') { - uni.setStorageSync(constant.mapping.W_APP_ID, wAppId); - } + that.logoutUser =false; that.vc.navigateTo({ url: '/pages/login/login' diff --git a/conf/config.js b/conf/config.js index 84d824c..ab58d93 100644 --- a/conf/config.js +++ b/conf/config.js @@ -15,13 +15,13 @@ const baseUrl = '/'; // #ifndef H5 //服务器域名 小程序 或者 app 时 后端地址 -const baseUrl = 'https://pms.x2wl.com/'; +const baseUrl = 'https://crsdt.cn/'; // #endif -let commonBaseUrl = 'https://pms.x2wl.com/'; +let commonBaseUrl = 'http://crsdt.cn/'; //商城的url -let mallUrl = 'https://mallapp.x2wl.com/'; +let mallUrl = 'https://mallapp.crsdt.cn/'; //商城小程序ID let mallMinAppId = "wxa4211361ca1e1bfb"; diff --git a/pages/login/login.vue b/pages/login/login.vue index 72c24bb..d162597 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -84,12 +84,12 @@ onLoad(option) { let that = this; this.logoUrl = constant.url.baseUrl + 'logo.png'; - //todo 清除缓存内容,以防 业主后退,然后还显示他的东西 - uni.removeStorageSync("ownerInfo"); - uni.removeStorageSync("userInfo"); - uni.removeStorageSync("JAVA110_USER_INFO"); - uni.removeStorageSync("currentCommunityInfo"); - removeUserLoginInfo(); + let wAppId = uni.getStorageSync(constant.mapping.W_APP_ID); + //todo 清除缓存内容,以防 业主后退,然后还显示他的东西 + uni.clearStorageSync(); + if (wAppId) { + uni.setStorageSync(constant.mapping.W_APP_ID, wAppId); + } }, methods: { _doLogin: function() { diff --git a/pages/login/loginsaveUser.vue b/pages/login/loginsaveUser.vue new file mode 100644 index 0000000..266acef --- /dev/null +++ b/pages/login/loginsaveUser.vue @@ -0,0 +1,211 @@ + + + + +