Commit d9778aff authored by Facius's avatar Facius

feat: 订单列表接UI

parent f7cdfa91
...@@ -4,16 +4,17 @@ ...@@ -4,16 +4,17 @@
mode="center" mode="center"
safe-area-inset-bottom safe-area-inset-bottom
closeable closeable
width="650rpx" width="690rpx"
border-radius="12" border-radius="12"
@close="handleClose" @close="handleClose"
close-icon-color="#333333"
> >
<view class="pop-view"> <view class="pop-view">
<view class="head-view" <image :src="chakanjiluImage" class="back-image" mode="widthFix"></image>
>最近查看<view class="head-message" <view class="head-view">
>最近查看或操作过的5条订单</view <view>最近查看记录</view>
></view <view class="head-message">最近查看或操作过的5条订单</view>
> </view>
<view class="none-view" v-if="orderList.length <= 0"> <view class="none-view" v-if="orderList.length <= 0">
<NoOrder text="当前暂无查看记录" /> <NoOrder text="当前暂无查看记录" />
</view> </view>
...@@ -66,6 +67,9 @@ export default { ...@@ -66,6 +67,9 @@ export default {
orderList() { orderList() {
return this.vuex_last_five_orders.filter((item) => item) || [] return this.vuex_last_five_orders.filter((item) => item) || []
}, },
chakanjiluImage() {
return process.uniEnv.qn_base_url + 'chakanjilu.png'
},
}, },
watch: { watch: {
visible(val) { visible(val) {
...@@ -150,17 +154,24 @@ export default { ...@@ -150,17 +154,24 @@ export default {
max-height: 900rpx; max-height: 900rpx;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
display: relative;
.back-image {
position: absolute;
top: 0;
left: 0;
width: 100%;
z-index: -1;
}
.head-view { .head-view {
padding: 30rpx 30rpx 24rpx 30rpx; padding: 30rpx 30rpx 20rpx 30rpx;
font-size: 40rpx; font-size: 48rpx;
font-weight: bold; font-weight: bold;
color: #333333; color: #333333;
border-bottom: 2rpx solid #f4f5f7;
.head-message { .head-message {
font-size: 28rpx; font-size: 32rpx;
color: #999999; color: #2272ff;
font-weight: 400; font-weight: 400;
margin-top: 10rpx; margin-top: 14rpx;
} }
} }
.none-view { .none-view {
...@@ -171,7 +182,8 @@ export default { ...@@ -171,7 +182,8 @@ export default {
height: 100%; height: 100%;
overflow: auto; overflow: auto;
.bottom-tip { .bottom-tip {
margin-bottom: 30rpx; margin-bottom: 44rpx;
margin-top: 30rpx;
} }
} }
} }
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
:style="item.style" :style="item.style"
> >
<view class="info-left-view"> <view class="info-left-view">
<view v-if="item.symbol" class="symbol-view"> </view>
<view class="info-title"> <view class="info-title">
<text>{{ item.name + ':' }}</text> <text>{{ item.name + ':' }}</text>
</view> </view>
...@@ -51,8 +52,8 @@ ...@@ -51,8 +52,8 @@
</view> </view>
</view> </view>
</view> </view>
<view class="line-view"></view>
<template v-if="!isSimple"> <template v-if="!isSimple">
<view class="line-view"></view>
<view class="reason-view" v-if="showReason"> <view class="reason-view" v-if="showReason">
<view class="reason-title"><text>未通过原因:</text></view> <view class="reason-title"><text>未通过原因:</text></view>
<view class="reason-text" <view class="reason-text"
...@@ -204,8 +205,9 @@ export default { ...@@ -204,8 +205,9 @@ export default {
return this.isSimple return this.isSimple
? { ? {
orderNumber: { orderNumber: {
symbol: true,
name: '工单编号', name: '工单编号',
style: 'font-weight: 450', style: 'font-weight: 450;font-size: 28rpx',
icon: 'arrow-right', icon: 'arrow-right',
}, },
contactName: { name: '客户信息', content: 'contactPhone' }, contactName: { name: '客户信息', content: 'contactPhone' },
...@@ -529,8 +531,9 @@ export default { ...@@ -529,8 +531,9 @@ export default {
background-color: #dddddd; background-color: #dddddd;
} }
&.simple { &.simple {
padding: 0rpx; margin: 20rpx 30rpx;
margin: 30rpx; padding-top: 12rpx;
box-shadow: 0 0 16rpx rgba(51, 51, 51, 0.1);
} }
.order-top-view { .order-top-view {
display: flex; display: flex;
...@@ -588,7 +591,15 @@ export default { ...@@ -588,7 +591,15 @@ export default {
align-items: center; align-items: center;
.info-left-view { .info-left-view {
display: flex; display: flex;
align-items: flex-start; justify-content: flex-start;
align-items: center;
.symbol-view {
background-color: #2272ff;
width: 6rpx;
height: 28rpx;
border-radius: 6rpx;
margin-right: 10rpx;
}
.info-title { .info-title {
flex-shrink: 0; flex-shrink: 0;
align-items: center; align-items: center;
......
...@@ -57,7 +57,6 @@ ...@@ -57,7 +57,6 @@
<script> <script>
import OrderCell from '@/components/order/index.vue' import OrderCell from '@/components/order/index.vue'
import NoOrder from '@/components/order/noOrder.vue' import NoOrder from '@/components/order/noOrder.vue'
import Complete from '../../order/complete.vue'
export default { export default {
components: { components: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment