diff --git a/src/components/order/order-item.vue b/src/components/order/order-item.vue
new file mode 100644
index 0000000..9231d5b
--- /dev/null
+++ b/src/components/order/order-item.vue
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/order/order.vue b/src/pages/order/order.vue
index 95ba1a5..16c0ba3 100644
--- a/src/pages/order/order.vue
+++ b/src/pages/order/order.vue
@@ -24,7 +24,42 @@
-
+
+
+
+
+ 订单编号:
+ {{ item.orderId }}
+ 复制
+
+
+ 服务分类:
+ {{ item.cate }}
+
+
+ 需求内容:
+ {{ item.explain }}
+
+
+ 下单时间:
+ {{ item.createTime }}
+
+
+ 服务时间:
+ {{ item.serviceTime }}
+
+
+
+
+
@@ -150,6 +185,18 @@ export default {
});
},
loadData() {},
+ copyOrderId(orderId) {
+ const t = this;
+ uni.setClipboardData({
+ data: orderId,
+ success(result) {
+ t.$utils.toast("内容已复制");
+ },
+ fail(error) {
+ t.$utils.toast("复制失败");
+ },
+ });
+ },
},
};
@@ -183,7 +230,6 @@ export default {
}
.order-list-group {
width: 100%;
- background-color: #ffffff;
touch-action: none;
.list-tab-list {
width: 100%;
@@ -192,6 +238,56 @@ export default {
.order-item {
width: 100%;
padding: 30rpx;
+ box-sizing: border-box;
background-color: #ffffff;
+ margin-bottom: 30rpx;
+ .order-header {
+ 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;
+ }
+ }
+}
+.order-body {
+ width: 700rpx;
+ border-bottom: 2rpx solid #e8e7e7;
+ padding: 35rpx 0 18rpx 0;
+ .row {
+ position: relative;
+ width: 100%;
+ font-size: 28rpx;
+ line-height: 30rpx;
+ margin-bottom: 22rpx;
+ .title {
+ color: #999999;
+ }
+ .text {
+ color: #000000;
+ }
+ .copy {
+ color: #8194f2;
+ margin-left: 24rpx;
+ }
+ }
+ .row:last-child {
+ margin-bottom: 0;
+ }
}
\ No newline at end of file