Browse Source

optimize:方法重命名

haopeng 2 years ago
parent
commit
d230921e4c
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/pages/home/detailList/index.vue

+ 3 - 3
src/pages/home/detailList/index.vue

@@ -12,9 +12,9 @@
12
           :key="index"
12
           :key="index"
13
           @click="toOrderDetail(projectItem)"
13
           @click="toOrderDetail(projectItem)"
14
           :style="{
14
           :style="{
15
-            color: orderStatusStyle(projectItem).color,
15
+            color: getStyleByOrderStatus(projectItem).color,
16
             borderLeft: '1px solid',
16
             borderLeft: '1px solid',
17
-            backgroundColor: orderStatusStyle(projectItem).backgroundColor
17
+            backgroundColor: getStyleByOrderStatus(projectItem).backgroundColor
18
           }"
18
           }"
19
         >
19
         >
20
           <div class="name">{{projectItem.nickname}}</div>
20
           <div class="name">{{projectItem.nickname}}</div>
@@ -59,7 +59,7 @@ export default {
59
     }
59
     }
60
   },
60
   },
61
   methods: {
61
   methods: {
62
-    orderStatusStyle (orderSource) {
62
+    getStyleByOrderStatus (orderSource) {
63
       let style = null
63
       let style = null
64
       // 订单状态,0已预约,未支付,1已支付,待使用,2正在使用,3已结算,5已取消
64
       // 订单状态,0已预约,未支付,1已支付,待使用,2正在使用,3已结算,5已取消
65
       switch(orderSource.status) {
65
       switch(orderSource.status) {