Commit a7ac706f by 李嘉林

优化首页加载

parent b05d4558
...@@ -1132,6 +1132,7 @@ export default { ...@@ -1132,6 +1132,7 @@ export default {
}, },
async refreshInit() { async refreshInit() {
console.log("refreshInit"); console.log("refreshInit");
this.pageLoading = true;
this.pageData = []; this.pageData = [];
log.info('onPullDownRefresh',this.$store.state.extConfig) log.info('onPullDownRefresh',this.$store.state.extConfig)
app.getShopInfo(this.$store.state.extConfig); app.getShopInfo(this.$store.state.extConfig);
...@@ -1217,9 +1218,14 @@ export default { ...@@ -1217,9 +1218,14 @@ export default {
log.info(res,'-----onShareTimeline') log.info(res,'-----onShareTimeline')
}, },
onPullDownRefresh() { onPullDownRefresh() {
let that = this;
console.log("onPullDownRefresh"); console.log("onPullDownRefresh");
console.log("refreshInit--------4") console.log("refreshInit--------4")
this.refreshInit(); this.refreshInit();
this.mpApp.pageCallBack = function (params) {
console.log("获取页面数据-3",params)
that.init(params);
};
} }
}; };
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment