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();