xuxy
2024-08-11 1e97cc472f8b156c464ecfd1c91c1e62f53151f0
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}}
@@ -12,6 +12,7 @@
         <view class="m-l-12 info-container flex1">
            <view class="title">
               {{ item.name || '-' }}
               <!-- <span v-if="item.categoryStr" class="m-l-10">{{item.categoryStr || '-'}}</span> -->
               <view class="price">
                  ¥{{ item.price || 0 }}/扎
               </view>
@@ -52,13 +53,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')
      },