From 378f9a9c6cb4e5b8b147172f66654c7c72cf4dc0 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 00:03:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E9=83=A8=E5=88=86=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/order/order-item.vue | 21 ++++++ src/pages/order/order.vue | 100 +++++++++++++++++++++++++++- 2 files changed, 119 insertions(+), 2 deletions(-) create mode 100644 src/components/order/order-item.vue 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