Commit d9778aff authored by Facius's avatar Facius

feat: 订单列表接UI

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