首页下拉刷新,优化商品促销界面

This commit is contained in:
lemon橪
2021-10-15 18:01:54 +08:00
parent fd37087c43
commit 44648e9971
11 changed files with 102 additions and 114 deletions

View File

@@ -1,14 +1,13 @@
<template>
<div class="wrapper">
<!-- 楼层装修组件 -->
<tpl />
<tpl ref="tpl" />
</div>
</template>
<script>
import tpl from "@/pages/tabbar/home/views.vue";
export default {
data() {
return {
background: {
@@ -16,13 +15,16 @@ export default {
},
};
},
onPullDownRefresh() {
this.$refs.tpl.init();
uni.stopPullDownRefresh();
},
components: {
tpl,
},
};
</script>
<style lang="scss" scoped>
</style>

View File

@@ -108,6 +108,7 @@ export default {
* 实例化首页数据楼层
*/
init() {
this.pageData = ""
getFloorData().then((res) => {
if (res.data.success) {
this.pageData = JSON.parse(res.data.result.pageData);