From 2ddf143b4b497508b528b3a7bd766f628e9a2c26 Mon Sep 17 00:00:00 2001 From: 陶杰 <1378534974@qq.com> Date: 星期日, 08 九月 2024 18:55:20 +0800 Subject: [PATCH] Merge branch 'v2' of http://47.96.225.205:8888/r/hmy_farmer-main into v2 --- pages/home/components/home-category.vue | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/pages/home/components/home-category.vue b/pages/home/components/home-category.vue index 0ff549c..8ddb38c 100644 --- a/pages/home/components/home-category.vue +++ b/pages/home/components/home-category.vue @@ -1,8 +1,9 @@ <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"> <view class="item" v-for="(item,index) of list" :key="index" @click.stop="toList(item)"> @@ -29,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) { @@ -44,6 +50,7 @@ return { list: [], today: '', + tj: 0 }; } -- Gitblit v1.9.3