From fba71ba1ae5030cb1a20f54f29fb06ad97060297 Mon Sep 17 00:00:00 2001 From: litian <C21AF165> Date: 星期五, 20 九月 2024 18:37:19 +0800 Subject: [PATCH] zs --- pages/home/home.js | 13 ++++++------- 1 files changed, 6 insertions(+), 7 deletions(-) diff --git a/pages/home/home.js b/pages/home/home.js index f85bf4e..953b47e 100644 --- a/pages/home/home.js +++ b/pages/home/home.js @@ -45,8 +45,11 @@ this.setData({ searchVal: "", }); - console.log(this.data.searchVal) this.loadHomePage(); + const token = wx.getStorageSync(app.config.tokenKey) + if (token) { + this.getShoppingCartList() + } }, onLoad() { @@ -72,11 +75,8 @@ this.init(); } }) - } else { - this.init(); - this.registe() } - + this.init(); }, onReachBottom() {}, onPullDownRefresh() { @@ -453,7 +453,6 @@ // duration: 1000 // }) const item = e.currentTarget.dataset.book - console.log(item); // 缃戦〉绫诲瀷璺宠浆鍒扮綉鍧�澶嶅埗椤碉紝鍥犱负url浼犲弬涓嶈兘浼� 甯﹀弬鏁扮殑缃戠粶鍦板潃锛屾墍浠ユ澶勮鎶婄綉缁滃湴鍧�閲岀殑浼犲弬鎽樺嚭鏉ワ紝鏀惧埌url閲� let urlData = '' const flags = item.jsek_link.indexOf("?") @@ -539,7 +538,7 @@ ) ) { wx.showToast({ - title: "璇ヤ功宸插湪璐墿杞︼紝璇峰嬁閲嶅娣诲姞绌�", + title: "璇ュ晢鍝佸凡鍦ㄨ喘鐗╄溅锛岃鍕块噸澶嶆坊鍔�", icon: 'none', duration: 1000 }) -- Gitblit v1.9.1