Commit d584bc02 by 杨北旺

首页添加下拉刷新

1 parent 56306100
{
"navigationStyle": "custom",
"enablePullDownRefresh": true,
"enablePullDownRefresh": false,
"onReachBottomDistance": 10,
"usingComponents": {
"main-title": "../../../components/MainTitle/MainTitle",
......
......@@ -69,6 +69,9 @@ Page({
toShowQrCode(e) {
const { url } = e.currentTarget.dataset;
const {currentStore} = this.data
const Name = `${currentStore.merchantId}_${url}`
console.log(Name);
this.setData({
urlName: url,
showModal: true,
......@@ -145,9 +148,17 @@ Page({
storeList,
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!