Commit d584bc02 by 杨北旺

首页添加下拉刷新

1 parent 56306100
{ {
"navigationStyle": "custom", "navigationStyle": "custom",
"enablePullDownRefresh": true, "enablePullDownRefresh": false,
"onReachBottomDistance": 10, "onReachBottomDistance": 10,
"usingComponents": { "usingComponents": {
"main-title": "../../../components/MainTitle/MainTitle", "main-title": "../../../components/MainTitle/MainTitle",
......
...@@ -69,6 +69,9 @@ Page({ ...@@ -69,6 +69,9 @@ Page({
toShowQrCode(e) { toShowQrCode(e) {
const { url } = e.currentTarget.dataset; const { url } = e.currentTarget.dataset;
const {currentStore} = this.data
const Name = `${currentStore.merchantId}_${url}`
console.log(Name);
this.setData({ this.setData({
urlName: url, urlName: url,
showModal: true, showModal: true,
...@@ -145,9 +148,17 @@ Page({ ...@@ -145,9 +148,17 @@ Page({
storeList, storeList,
currentStore currentStore
}) })
if( this.fresh){
wx.stopPullDownRefresh()
}
} }
}) })
}) })
}, },
onPullDownRefresh(){
this.fresh = true
this.getMerchantList()
this.getStrategyList();
}
}); });
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!