diff --git a/components/orderCard/OrderCard.vue b/components/orderCard/OrderCard.vue
index 253afab..2c2dbb7 100644
--- a/components/orderCard/OrderCard.vue
+++ b/components/orderCard/OrderCard.vue
@@ -22,10 +22,9 @@
到达
-
- {{orderData.rescueStatusStr}}
- {{orderData.rescueStatusStr}}
+ {{statusStr}}
@@ -64,6 +63,28 @@
default: () => {
return {}
}
+ },
+ status: {
+ type: [String, Number],
+ default: ''
+ }
+ },
+ computed: {
+ statusStr() {
+ console.log('this.status: ',this.status);
+ if (this.status == '1') {
+ return '救援中'
+ } else if (this.status == '2') {
+ return '待支付'
+ } else if (this.status == '3') {
+ return '待取车'
+ } else if (this.status == '4') {
+ return '待评价'
+ } else if (this.status == '5') {
+ return '已完成'
+ } else {
+ return ''
+ }
}
},
mounted() {
diff --git a/pages/details/details.vue b/pages/details/details.vue
index c75e1e3..04377af 100644
--- a/pages/details/details.vue
+++ b/pages/details/details.vue
@@ -127,7 +127,7 @@
- {{ index + 1 }}
+
{{item.title}}
diff --git a/pages/rescue/historylist.vue b/pages/rescue/historylist.vue
index 3808134..623ee60 100644
--- a/pages/rescue/historylist.vue
+++ b/pages/rescue/historylist.vue
@@ -26,7 +26,7 @@
-
+