Commit 6e279afb by 李嘉林

feat: 进店方式缓存

parent 3bf8caab
...@@ -16,6 +16,7 @@ export default { ...@@ -16,6 +16,7 @@ export default {
}, },
async created() { async created() {
wx.setStorageSync("firstView", 1); wx.setStorageSync("firstView", 1);
wx.setStorageSync("entryMode", '');
console.log(new Date().getTime(),'load-----app-created') console.log(new Date().getTime(),'load-----app-created')
// NODE_ENV // NODE_ENV
this.extConfig = wx.getExtConfigSync ? wx.getExtConfigSync() : {}; this.extConfig = wx.getExtConfigSync ? wx.getExtConfigSync() : {};
......
...@@ -407,7 +407,6 @@ export default { ...@@ -407,7 +407,6 @@ export default {
methods: { methods: {
async pageInit(options) { async pageInit(options) {
wx.setStorageSync("entryMode", '');
log.info(options, '---------home----options') log.info(options, '---------home----options')
let h5Params = options && options.params ? JSON.parse(decodeURIComponent(options.params)) : {}; let h5Params = options && options.params ? JSON.parse(decodeURIComponent(options.params)) : {};
this.h5Params = h5Params; this.h5Params = h5Params;
......
...@@ -168,7 +168,6 @@ export default { ...@@ -168,7 +168,6 @@ export default {
}, },
onLoad(options) { onLoad(options) {
let { offlineShopCode, offlineShopName } = getStoreInfo(); let { offlineShopCode, offlineShopName } = getStoreInfo();
wx.setStorageSync("entryMode", '');
// 新用户首次扫码进入此页没缓存认定为第一次访问 // 新用户首次扫码进入此页没缓存认定为第一次访问
if (offlineShopCode) { if (offlineShopCode) {
wx.removeStorageSync("firstView"); wx.removeStorageSync("firstView");
......
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