From 33caf2bb79bb3c561916c91ae386ec772411e2e8 Mon Sep 17 00:00:00 2001
From: rk <94314517@qq.com>
Date: 星期一, 11 五月 2026 18:21:50 +0800
Subject: [PATCH] 代码生成

---
 small-program/shop/pages/store-home/store-home.vue |   17 ++++++++++++-----
 1 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/small-program/shop/pages/store-home/store-home.vue b/small-program/shop/pages/store-home/store-home.vue
index 79f8402..6155a68 100644
--- a/small-program/shop/pages/store-home/store-home.vue
+++ b/small-program/shop/pages/store-home/store-home.vue
@@ -19,28 +19,34 @@
 			<view :class="'tab-item  '+(active ==1?'active':'')" @click="changeActive(1)">鏈湀</view>
 			<view :class="'tab-item  '+(active ==2?'active':'')" @click="changeActive(2)">涓婃湀</view>
         </view>
-        <text class="tab-item right">鍦ㄥ簱璁㈠崟: {{countData.storageCount||0}}</text>
+        <text class="tab-item right">鍦ㄥ簱璁㈠崟: {{countData.storageCount > 99 ? '99+' : countData.storageCount || 0}}</text>
       </view>
       
       <view class="stats-cards">
         <view class="stat-card">
           <view class="stat-label">
             <text>閿�鍞(鍏�)</text>
-            <image class="stat-icon" src="/static/icon/ic_visible@2x.png"></image>
+            <u-icon v-if="showMoney" name="eye" color="#ffffff" size="18" @click="showMoney = !showMoney"></u-icon>
+					  <u-icon v-if="!showMoney" name="eye-off" color="#eeeeee" size="18" @click="showMoney = !showMoney"></u-icon>
+            <!-- <image v-if="showMoney" class="stat-icon" src="/static/icon/ic_visible@2x.png" @click="showMoney = false"></image>
+            <image v-if="!showMoney" class="stat-icon" src="/static/icon/ic_invisible@2x.png" @click="showMoney = true"></image> -->
           </view>
-          <text class="stat-value">{{((countData.salesAmount || 0)/100).toFixed(2)}}</text>
+          <text class="stat-value" v-if="showMoney">{{((countData.salesAmount || 0)/100).toFixed(2)}}</text>
+          <text class="stat-value" v-if="!showMoney">****</text>
         </view>
         <view class="stat-card">
           <view class="stat-label">
             <text>缁撶畻鍒╂鼎(鍏�)</text>
           </view>
-          <text class="stat-value">{{((countData.settlementProfit|| 0)/100).toFixed(2)}}</text>
+          <text class="stat-value" v-if="showMoney">{{((countData.settlementProfit|| 0)/100).toFixed(2)}}</text>
+          <text class="stat-value" v-if="!showMoney">****</text>
         </view>
         <view class="stat-card">
           <view class="stat-label">
             <text>璁㈠崟鏁�</text>
           </view>
-          <text class="stat-value">{{countData.orderCount||0}}</text>
+          <text class="stat-value" v-if="showMoney">{{countData.orderCount > 99 ? '99+' : countData.orderCount || 0}}</text>
+          <text class="stat-value" v-if="!showMoney">****</text>
         </view>
       </view>
     </view>
@@ -454,6 +460,7 @@
 
 .stat-label {
   display: flex;
+  align-items: center;
   height: 40rpx;
   text {
     font-size: 24rpx;

--
Gitblit v1.9.3