xuxueyang
2024-08-04 17bb1250f2120415e5fc9f47fe50b60f72b47a07
pages/home/components/home-top-flow.vue
@@ -2,7 +2,7 @@
   <view class="home-top-flow">
      <view class="item flex" v-for="(item,index) of list" :key="index" @click="toDetail(item)">
         <view class="img">
            <image class="img img100"  :class="[!item.stock?'component-stock-zero':'']" :src="item.cover">
            <image class="img img100" :class="[!item.stock?'':'']" :src="item.cover" :lazy-load="true">
            </image>
            <view class="level">
               {{ item.levelStr}}
@@ -52,13 +52,14 @@
         return {
            // list: [{}, {}, {}, {}]
            query: {
               status: 'UP'
               status: 'UP',
               recommend: true
            }
         };
      },
      mounted() {
         this.listApi = '/api/customer/flower/list'
         this.page.size = 4
         this.page.size = 20
         this.page.current = 1
         this.getList('post')
      },