xuxueyang
2024-08-14 ded34e37fca5e2e05e17693d2524c3d664ebf017
pages/home/components/home-category.vue
@@ -1,8 +1,8 @@
<template>
   <view class="home-category">
      <view class="flex">
         <view class="t1">{{today}}(今日)第一场交易中</view>
         <view class="t2">当前在售</view>
         <view class="t1">{{today}}(今日)交易中</view>
         <view class="t2">当前在{{tj||0}}售</view>
         <!-- 加了/api/customer/flower/up/stock -->
      </view>
      <view class="m-t-12 flex">
@@ -30,6 +30,11 @@
               })
            }
         })
         this.$http.request('get', '/api/customer/flower/up/stock', {}).then(res => {
            var data = res.data
            this.tj = data || 0
         })
      },
      methods: {
         toList(item) {
@@ -45,6 +50,7 @@
         return {
            list: [],
            today: '',
            tj: 0
         };
      }