From 12c48f04f9ea1a57781a6e8c5c9ef901eaad8518 Mon Sep 17 00:00:00 2001
From: xuxueyang <xuxy@fengyuntec.com>
Date: 星期四, 05 九月 2024 22:31:17 +0800
Subject: [PATCH] merge 1.小程序-花店:1.1-浏览记录建议改成显示30条数据; 1.2-增加一个一键清空已失效商品 2.小程序-花店:增加热区跳转进入店铺 及 点击头像和名字也可以跳转进入店铺 3.小程序-花店:轮播图指示点优化去掉 4.小程序-花店:登录,注册失去焦点验证手机号

---
 pages/home/components/home-category.vue |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/pages/home/components/home-category.vue b/pages/home/components/home-category.vue
index a162895..8ddb38c 100644
--- a/pages/home/components/home-category.vue
+++ b/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
 
 			};
 		}

--
Gitblit v1.9.3