From 4940986b8f854153ae4a66a0f7f0dede5f1ea325 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?TOP=E7=B3=AF=E7=B1=B3?= <1130395124@qq.com>
Date: Thu, 23 Feb 2023 18:32:09 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E8=AE=A2=E5=8D=95=E9=A1=B5?=
=?UTF-8?q?=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/order/action.vue | 101 ++++++++++++++++++
src/components/order/item.vue | 148 ++++++++++++++++++++++++++
src/components/order/order-item.vue | 21 ----
src/core/models/order.js | 8 ++
src/pages/order/order.vue | 154 +++++++++-------------------
5 files changed, 307 insertions(+), 125 deletions(-)
create mode 100644 src/components/order/action.vue
create mode 100644 src/components/order/item.vue
delete mode 100644 src/components/order/order-item.vue
diff --git a/src/components/order/action.vue b/src/components/order/action.vue
new file mode 100644
index 0000000..f57a534
--- /dev/null
+++ b/src/components/order/action.vue
@@ -0,0 +1,101 @@
+
+
+
+
+ 取消订单
+
+
+
+
+ 评价师傅
+
+
+
+
+ 申请退款
+
+
+
+
+ 重新申请
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/order/item.vue b/src/components/order/item.vue
new file mode 100644
index 0000000..7c0d3bc
--- /dev/null
+++ b/src/components/order/item.vue
@@ -0,0 +1,148 @@
+
+
+
+
+
+
+ 订单编号:
+ {{ order.orderId }}
+ 复制
+
+
+ 服务分类:
+ {{ order.cate }}
+
+
+ 需求内容:
+ {{ order.explain }}
+
+
+ 下单时间:
+ {{ order.createTime }}
+
+
+ 服务时间:
+ {{ order.serviceTime }}
+
+
+
+ 单个师傅
+
+
+ 师傅列表
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/order/order-item.vue b/src/components/order/order-item.vue
deleted file mode 100644
index 9231d5b..0000000
--- a/src/components/order/order-item.vue
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/core/models/order.js b/src/core/models/order.js
index 99d18bb..c73a336 100644
--- a/src/core/models/order.js
+++ b/src/core/models/order.js
@@ -1,9 +1,17 @@
export default {
+ type: {
+ NORMAL: 1,
+ WORKER_PRICE: 2,
+ CUSTOM_PRICE: 3,
+ },
state: {
+ ORDER_CLOSE: -2,
NO_PAY: -1,
NO_PRICE: 0,
NO_SELECT_WORKER: 1,
NO_SERVICE: 2,
+ NO_APPRAISE: 3,
+ ALL_FINISH: 4,
},
parseOrderStateText(state) {
switch (state) {
diff --git a/src/pages/order/order.vue b/src/pages/order/order.vue
index 16c0ba3..ba440a3 100644
--- a/src/pages/order/order.vue
+++ b/src/pages/order/order.vue
@@ -23,44 +23,16 @@
-
-
-
+
+
+
+
+
@@ -72,6 +44,9 @@
@@ -230,64 +220,20 @@ export default {
}
.order-list-group {
width: 100%;
- touch-action: none;
.list-tab-list {
width: 100%;
}
-}
-.order-item {
- width: 100%;
- padding: 30rpx;
- box-sizing: border-box;
- background-color: #ffffff;
- margin-bottom: 30rpx;
- .order-header {
+ .more-list {
width: 100%;
- display: flex;
- align-items: center;
- justify-content: space-between;
- line-height: 32rpx;
- .state-text {
- font-size: 30rpx;
- font-weight: bold;
- color: #000000;
- }
- .more {
- font-size: 26rpx;
- color: #666666;
- display: flex;
- align-items: center;
- }
- .iconfont {
- color: #a7a7a7;
- font-size: 32rpx;
- margin-left: 8rpx;
- }
+ padding-bottom: 12px;
}
-}
-.order-body {
- width: 700rpx;
- border-bottom: 2rpx solid #e8e7e7;
- padding: 35rpx 0 18rpx 0;
- .row {
- position: relative;
+ .order-item {
width: 100%;
- font-size: 28rpx;
- line-height: 30rpx;
- margin-bottom: 22rpx;
- .title {
- color: #999999;
- }
- .text {
- color: #000000;
- }
- .copy {
- color: #8194f2;
- margin-left: 24rpx;
- }
+ margin-bottom: 30rpx;
}
- .row:last-child {
- margin-bottom: 0;
+ .action-group {
+ width: 100%;
+ padding: 30rpx 0;
}
}
\ No newline at end of file