diff --git a/src/views/platform/components/order_detail.vue b/src/views/platform/components/order_detail.vue
index 4921712..f79e0ea 100644
--- a/src/views/platform/components/order_detail.vue
+++ b/src/views/platform/components/order_detail.vue
@@ -107,9 +107,7 @@ export default {
components: { OrderProgress },
props: {
// 是否显示dialog
- open: Boolean,
- //TODO: 1 自营商城订单详情,2 骑手配送订单详情,应该通过订单类型来判断,先开发UI所以这么写。
- type: Number
+ open: Boolean
},
data() {
return {
@@ -142,6 +140,12 @@ export default {
this.$modal.msgSuccess('保存成功')
this.$emit('close')
}
+ },
+ computed: {
+ //自营商城-订单管理-详情:1,订单管理-外卖订单-订单详情:2
+ type() {
+ return this.$route.fullPath.includes('self-operated-mall') ? 1 : 2
+ }
}
}
diff --git a/src/views/platform/components/progress.vue b/src/views/platform/components/progress.vue
index 45f91ab..9864d4a 100644
--- a/src/views/platform/components/progress.vue
+++ b/src/views/platform/components/progress.vue
@@ -46,7 +46,7 @@
export default {
name: 'Progress',
props: {
- //TODO: 1 自营商城订单详情,2 骑手配送订单详情,应该通过订单类型来判断,先开发UI所以这么写。
+ //1 自营商城订单详情,2 骑手配送订单详情
type: Number
}
}
diff --git a/src/views/platform/order_management/delivery_order.vue b/src/views/platform/order_management/delivery_order.vue
index 48977ac..7b0498a 100644
--- a/src/views/platform/order_management/delivery_order.vue
+++ b/src/views/platform/order_management/delivery_order.vue
@@ -59,7 +59,7 @@
-
+
diff --git a/src/views/platform/self-operated-mall/order.vue b/src/views/platform/self-operated-mall/order.vue
index 66e95c4..9130267 100644
--- a/src/views/platform/self-operated-mall/order.vue
+++ b/src/views/platform/self-operated-mall/order.vue
@@ -77,7 +77,7 @@
-
+