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