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