xuxueyang
2024-09-12 1e2cca44dd7b4cc30f60435d22bc58574f2fd4f0
pages/home/home.vue
@@ -61,13 +61,13 @@
         <span v-if="!currentNotice||!currentNotice.id">&nbsp;</span>
      </view>
      <!-- 当前分类 -->
      <home-category></home-category>
      <home-category ref="home_category"></home-category>
      <!-- 特别的几个公告图片 -->
      <home-banner-imgs></home-banner-imgs>
      <home-banner-imgs ref="home_banner"></home-banner-imgs>
      <!-- 均价情况 -->
      <!-- <home-price></home-price> -->
      <!-- 几个专区 -->
      <home-zones></home-zones>
      <home-zones ref="home_zeros"></home-zones>
      <!-- 置顶的花列表 -->
      <home-top-flow ref="home_top_flow"></home-top-flow>
@@ -76,6 +76,7 @@
      <common-footer flg="0"></common-footer>
      <uni-popup ref="coupon_home" type="bottom" border-radius="10px 10px 0 0">底部弹出 Popup 自定义圆角</uni-popup>
   </view>
</template>
@@ -108,7 +109,16 @@
         homeZones,
         homeTopFlow
      },
      onPullDownRefresh() {
         // 下拉刷新方法
         this.init()
         this.$message.showLoading()
         this.init_children()
         setTimeout(() => {
            this.$message.hideLoading()
            uni.stopPullDownRefresh()
         }, 2000)
      },
      data() {
         return {
            search_flow: '',
@@ -198,6 +208,16 @@
         }
      },
      onLoad(options) {
         this.init()
      },
      methods: {
         init_children() {
            this.$refs.home_top_flow && this.$refs.home_top_flow.init && this.$refs.home_top_flow.init()
            this.$refs.home_category && this.$refs.home_category.init && this.$refs.home_category.init()
            this.$refs.home_banner && this.$refs.home_banner.init && this.$refs.home_banner.init()
            this.$refs.home_zeros && this.$refs.home_zeros.init && this.$refs.home_zeros.init()
         },
         init() {
         // if(options.partnerUserId){
         //    //需要前往注册了
         //    uni.navigateTo({
@@ -350,7 +370,7 @@
         //    }
         // })
      },
      methods: {
         clickBanner(item) {
            if (item.id) {
               uni.navigateTo({