Commit aa7ecd07 by 杨北旺

修复首页下拉刷新

1 parent c33b1544
...@@ -134,7 +134,7 @@ Page({ ...@@ -134,7 +134,7 @@ Page({
}) })
if (storeList.length > 1) { if (storeList.length > 1) {
storeList.forEach((ele, i) => { storeList.forEach((ele, i) => {
if (this.defaultMerchant == i) { if (this.defaultMerchant == ele.merchantId) {
index = i index = i
} }
}) })
...@@ -157,6 +157,10 @@ Page({ ...@@ -157,6 +157,10 @@ Page({
}, },
onPullDownRefresh(){ onPullDownRefresh(){
this.fresh = true this.fresh = true
const {
merchantId
} = wx.p.storage.get('merchant_info')
this.defaultMerchant = merchantId
this.getMerchantList() this.getMerchantList()
this.getStrategyList(); this.getStrategyList();
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!