Commit 08854582 by zhangxw

清除缓存中的车型数据

1 parent f1a20b7d
...@@ -53,6 +53,7 @@ Page({ ...@@ -53,6 +53,7 @@ Page({
wx.$storage.rm('auto_login_object') wx.$storage.rm('auto_login_object')
wx.$storage.rm('posterId') wx.$storage.rm('posterId')
wx.$storage.rm('mock_data') wx.$storage.rm('mock_data')
wx.$storage.rm('car_brand_list')
wx.$storage.set('firstLogin', 'firstLogin') wx.$storage.set('firstLogin', 'firstLogin')
wx.$storage.set('disLikeRecordFlag', true) wx.$storage.set('disLikeRecordFlag', true)
this.accountLogin(obj) this.accountLogin(obj)
...@@ -144,11 +145,13 @@ Page({ ...@@ -144,11 +145,13 @@ Page({
}) })
if (reload) { if (reload) {
wx.$storage.rm('auto_login_object') wx.$storage.rm('auto_login_object')
wx.$storage.rm('car_brand_list')
wx.$router.reLaunch('login.index', obj) wx.$router.reLaunch('login.index', obj)
} }
} catch (error) { } catch (error) {
console.log(`error`, error); console.log(`error`, error);
wx.$storage.rm('auto_login_object') wx.$storage.rm('auto_login_object')
wx.$storage.rm('car_brand_list')
wx.$router.reLaunch('login.index', obj) wx.$router.reLaunch('login.index', obj)
} }
} }
......
...@@ -33,6 +33,7 @@ Page({ ...@@ -33,6 +33,7 @@ Page({
wx.$storage.rm('sessionId') wx.$storage.rm('sessionId')
wx.$storage.rm('userInfo') wx.$storage.rm('userInfo')
wx.$storage.rm('auto_login_object') wx.$storage.rm('auto_login_object')
wx.$storage.rm('car_brand_list')
wx.$router.reLaunch('login.index') wx.$router.reLaunch('login.index')
}) })
} }
......
...@@ -98,6 +98,7 @@ Page({ ...@@ -98,6 +98,7 @@ Page({
wx.$storage.rm('auto_login_object') wx.$storage.rm('auto_login_object')
wx.$storage.rm('posterId') wx.$storage.rm('posterId')
wx.$storage.rm('mock_data') wx.$storage.rm('mock_data')
wx.$storage.rm('car_brand_list')
wx.$router.reLaunch('login.index') wx.$router.reLaunch('login.index')
}) })
} }
......
...@@ -21,13 +21,13 @@ const h5Obj = { ...@@ -21,13 +21,13 @@ const h5Obj = {
2测试 2测试
3生产 3生产
*/ */
let index = 1 let index = 2
const accountInfo = wx.getAccountInfoSync() const accountInfo = wx.getAccountInfoSync()
const systemInfo = wx.getSystemInfoSync() const systemInfo = wx.getSystemInfoSync()
// console.log(systemInfo); // console.log(systemInfo);
// console.log(accountInfo.miniProgram.envVersion) // console.log(accountInfo.miniProgram.envVersion)
//手动控制体验版环境的请求 true就依据下面index false就默认为2 //手动控制体验版环境的请求 true就依据下面index false就默认为2
const manual = true const manual = false
const release = false const release = false
// let index = 1 // let index = 1
......
...@@ -58,6 +58,7 @@ class Request { ...@@ -58,6 +58,7 @@ class Request {
if (code == 20 || code == 21) { if (code == 20 || code == 21) {
wx.$storage.rm('sessionId') wx.$storage.rm('sessionId')
wx.$storage.rm('userInfo') wx.$storage.rm('userInfo')
wx.$storage.rm('car_brand_list')
let thisPage = wx.$router.getPageInstance(), let thisPage = wx.$router.getPageInstance(),
autoLoginObject = wx.$storage.get('auto_login_object') autoLoginObject = wx.$storage.get('auto_login_object')
if (thisPage.route == 'login/loading/loading') { if (thisPage.route == 'login/loading/loading') {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!