Bladeren bron

refactor: rename 'todayPerformance' to 'performance' for consistency in mockData.js and index.vue

Yannay 1 week geleden
bovenliggende
commit
da8281f435
2 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. 1 1
      mock/mockData.js
  2. 2 2
      pages/person/cards/index.vue

+ 1 - 1
mock/mockData.js

@@ -14,7 +14,7 @@ const mockDataList = {
14 14
         todayConsume: 1234.56,//今日消耗
15 15
         todayConsumeDy: 234.56,//抖音今日消耗
16 16
         todayConsumeGdt: 1000.00,//广点通今日消耗
17
-        todayPerformance: 56789.01,//今日业绩
17
+        performance: 56789.01,//业绩(元,按 time:today/week/month)
18 18
         countTypeA: 25,//条数统计A类
19 19
         countTypeB: 12,//条数统计B类
20 20
         countTypeC: 8,//条数统计C类

+ 2 - 2
pages/person/cards/index.vue

@@ -26,7 +26,7 @@
26 26
                         <text class="card_title">业绩(元)</text>
27 27
                     </view>
28 28
                     <view class="card_content">
29
-                        <text class="card_value">{{ cardData.todayPerformance }}</text>
29
+                        <text class="card_value">{{ formatMoney(cardData.performance) }}</text>
30 30
                     </view>
31 31
                 </view>
32 32
             </view>
@@ -152,7 +152,7 @@ export default {
152 152
                 todayConsume: '-',
153 153
                 todayConsumeDy: '-',
154 154
                 todayConsumeGdt: '-',
155
-                todayPerformance: '-',
155
+                performance: '-',
156 156
                 countTypeA: '-',
157 157
                 countTypeB: '-',
158 158
                 countTypeC: '-',