绿满眶商城微信小程序-uniapp
zxl
4 天以前 c9928dd4f6d25e2339ea1400f59ec58674a927a7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<template>
  <div class="wrapper">
    <!-- 楼层装修组件 -->
    <tpl ref="tpl" />
  </div>
</template>
<script>
import tpl from "@/pages/tabbar/home/views.vue";
 
export default {
  data() {
    return {
      background: {
        backgroundColor: "#fff",
      },
    };
  },
  onShow(){
    setTimeout(()=>{
      this.$refs.tpl.fetchCoupon();
    },1000)
  },
  methods: {
 
  },
  onReachBottom(){
    // 给子级监听触底加载
    uni.$emit('onReachBottom',true)
  },
  
  onPullDownRefresh() {
    this.$refs.tpl.init();
 
    uni.stopPullDownRefresh();
  },
  components: {
    tpl,
  },
};
</script>
 
<style lang="scss" scoped>
</style>