Commit 6e279afb by 李嘉林

feat: 进店方式缓存

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