shish 11 miesięcy temu
rodzic
commit
7bc79dc30d
1 zmienionych plików z 12 dodań i 2 usunięć
  1. 12 2
      hdApp/src/admin/home/workbench.vue

+ 12 - 2
hdApp/src/admin/home/workbench.vue

@@ -44,6 +44,16 @@
                 <view class="stat-label">订单</view>
               </view>
             </navigator>
+            
+            <view class="stat-item">
+              <view class="stat-icon">
+                <image class="stat-icon-img" :src="`${constant.hostUrl}/image/ghs/home/shop2.png`" mode="aspectFit"></image>
+              </view>
+              <view class="stat-content">
+                <view class="stat-value">{{ $util.numberFormat(yesterdayIncome) || 0 }}</view>
+                <view class="stat-label">昨日收入</view>
+              </view>
+            </view>
           </view>
         </view>
       </template>
@@ -912,7 +922,7 @@ export default {
   
   .today-stats {
     display: flex;
-    padding: 30upx 60upx;
+    padding: 30upx 30upx;
     
     .stat-item {
       flex: 1;
@@ -922,7 +932,7 @@ export default {
       padding: 20upx 0;
       position: relative;
       
-      &:first-child::after {
+      &:not(:last-child)::after {
         content: '';
         position: absolute;
         right: 0;