diff --git a/src/pages.json b/src/pages.json index 46638a5..a7d0f0f 100644 --- a/src/pages.json +++ b/src/pages.json @@ -54,6 +54,12 @@ "navigationBarTitleText": "订单查询" } }, + { + "path": "pages/order/return", + "style": { + "navigationBarTitleText": "退货" + } + }, { "path": "pages/stock/list", "style": { diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 5812884..a0d00f3 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -74,6 +74,10 @@ 订单查询 + + + 退货 + 库存管理 diff --git a/src/pages/order/list.vue b/src/pages/order/list.vue index bb7afaf..100bd8f 100644 --- a/src/pages/order/list.vue +++ b/src/pages/order/list.vue @@ -208,7 +208,8 @@ export default { 1: 'status-success', 2: 'status-cancel', 3: 'status-refunding', - 4: 'status-refunded' + 4: 'status-refunded', + 9: 'status-returning' } return map[status] || '' }, @@ -218,7 +219,8 @@ export default { 1: '已完成', 2: '已取消', 3: '退款中', - 4: '已退款' + 4: '已退款', + 9: '退货中' } return map[status] || '未知' }, @@ -367,6 +369,11 @@ export default { color: #fff; } +.status-returning { + background: linear-gradient(135deg, #fa8c16 0%, #ffc069 100%); + color: #fff; +} + /* 卡片主体 */ .card-body { margin-bottom: 20rpx; diff --git a/src/pages/order/return.vue b/src/pages/order/return.vue new file mode 100644 index 0000000..9bc8d95 --- /dev/null +++ b/src/pages/order/return.vue @@ -0,0 +1,532 @@ + + + + + \ No newline at end of file diff --git a/src/pages/order/search.vue b/src/pages/order/search.vue index 0025f97..a7f705a 100644 --- a/src/pages/order/search.vue +++ b/src/pages/order/search.vue @@ -7,7 +7,7 @@