pages/home/home.js
@@ -39,6 +39,7 @@ value: false }, loading: true, showStateMenu: false, }, onShow() { this.setData({ @@ -50,8 +51,19 @@ this.getShoppingCartList() } this.init(); const stateMenu = wx.getStorageSync('stateMenu') if (stateMenu == 'true') { this.setData({ showStateMenu: true }) wx.setStorageSync('stateMenu', 'false') } }, closeStateMenu() { this.setData({ showStateMenu: false }) }, onLoad() { this.getBannerList() const systInfo = wx.getSystemInfoSync();