Commit 91a91a75 authored by Morson's avatar Morson

工单详情页面搭建

parent 6c427e39
<template> <template>
<view class="content"> <view class="content">
<!-- <scroll-view class="scroll-view" scroll-y style="height: 100%; width: 100%" @scrolltolower="reachBottom"
@scroll="handleScroll" refresher-enabled :refresher-triggered="triggered" @refresherrefresh="onRefresh"
scroll-anchoring @refresherrestore="onRestore" @refresherpulling="triggered = true" :show-scrollbar="false"
enable-back-to-top> -->
<view style="width: 700rpx; height: 800rpx"> <view style="width: 700rpx; height: 800rpx">
<!-- <view class="title-view">充电桩自营平台</view> --> <!-- <view class="title-view">充电桩自营平台</view> -->
<u-navbar <u-navbar
:is-back="false" :is-back="false"
background="{background: transparent}" :is-fixed="false"
:background="{ background: 'transparent' }"
:border-bottom="false" :border-bottom="false"
:is-fixed="false"
> >
<text class="title-view">充电桩自营平台</text> <text class="title-view">充电桩自营平台</text>
</u-navbar> </u-navbar>
......
...@@ -3,9 +3,70 @@ ...@@ -3,9 +3,70 @@
<u-navbar back-icon-color="#FFFFFF" :background="background" :border-bottom="false"></u-navbar> <u-navbar back-icon-color="#FFFFFF" :background="background" :border-bottom="false"></u-navbar>
<view class="header"> <view class="header">
<view class="title">订单信息</view> <view class="title">订单信息</view>
<view class="button" @click="rejectOrder">拒单</view> <view v-show="allowRejection" class="button" @click="rejectOrder">拒单</view>
</view>
<view class="content">
<view class="card base-item">
<view class="top-item">
<view class="left">
<view class="tag">{{ order.orderServiceType }}</view>
<text class="title">{{ order.categoryName }}</text>
</view>
<view class="right">分配单</view>
</view>
<view class="order-cell">
<text>工单编号:</text>
<text>{{ order.orderNumber }}</text>
</view>
<view class="order-cell between-cell">
<view class="left">
<text>客户信息:</text>
<text>{{ order.contactName }}</text>
</view>
<u-image width="60rpx" height="60rpx" :src="phoneIcon"></u-image>
</view>
<view class="order-cell">
<text>联系方式:</text>
<text>{{ order.contactPhone }}</text>
</view>
<view class="between-cell address-cell">
<view class="left">
<u-icon name="map" size="28"></u-icon>
<text class="address-txt">{{ order.contactAddress }}</text>
</view>
<u-image width="60rpx" height="60rpx" :src="navigationIcon"></u-image>
</view>
</view>
<view class="card order-item">
<view class="top-item">
<text class="title">订单内容</text>
</view>
<view class="order-cell between-cell">
<text>品牌:</text>
<text>{{ order.brandName }}</text>
</view>
<view class="order-cell between-cell">
<text>数量:</text>
<text>x{{ order.orderProductCount }}</text>
</view>
<view class="order-cell between-cell">
<text>信息:</text>
<text>{{ order.serviceContent }}</text>
</view>
<view class="order-cell between-cell">
<text>备注:</text>
<text>{{ order.serviceContent }}</text>
</view>
</view>
<view class="card order-item record-item">
<view class="top-item">
<text class="title">履约记录</text>
</view>
<view class="order-cell between-cell">
<text>接单时间:2021.04.21 16:40:35</text>
</view>
</view>
</view> </view>
<view class="content"></view>
</view> </view>
</template> </template>
...@@ -20,10 +81,69 @@ ...@@ -20,10 +81,69 @@
// 还可以设置背景图size属性 // 还可以设置背景图size属性
// backgroundSize: 'cover', // backgroundSize: 'cover',
// 渐变色 // 渐变色
} },
orderId: null,
order: {},
allowRejection: false,
}; };
}, },
onLoad(e) {
if(e && e.id) {
this.orderId = e.id
} else {
// 异常处理
}
this.loadOrderDetail()
},
computed: {
phoneIcon() {
return process.uniEnv.qn_base_url + 'icon/dianhua-1@2x.png'
},
navigationIcon() {
return process.uniEnv.qn_base_url + 'icon/daohang-1@2x.png'
},
},
methods: { methods: {
loadOrderDetail() {
let self = this
let timestamp = new Date().getTime();
let order = {
brandName: '沃尔沃',
categoryId: 1,
categoryName: '充电桩',
contactAddress: '湾街道荔枝花园D座125号',
contactAddressLatitud: '116.3896',
contactAddressLongitud: '39.91917',
contactCity: 4403,
contactCityText: '深圳市',
contactCommunity: 440306,
contactCommunityText: '宝安区',
contactId: 1,
contactName: '郭小清',
contactPhone: '13631612077',
contactProvince: 44,
contactProvinceText: '广东省',
contactStreet: 44030601,
contactStreetText: '新安街道',
lianbaoBrandId: 1,
orderBusinessType: 'R',
orderId: 1,
orderNumber: 'OR2021041809827',
orderProductCount: 1,
orderServiceType: '安装',
orderStatus: '30',
serviceContent: '沃尔沃全球标充电桩(国标32A,4G联网)',
orderBusinessTypeText: '订单池',
auditResults: [],
currentWillOverTime: timestamp,
currentOverTime: timestamp,
appointmentDatetime: timestamp,
auditDatetime: timestamp,
}
self.order = order
},
/** /**
* 拒单 * 拒单
*/ */
...@@ -39,8 +159,6 @@ ...@@ -39,8 +159,6 @@
width: 750rpx; width: 750rpx;
height: 100vh; height: 100vh;
overflow: auto; overflow: auto;
// height: 1600rpx;
// background: linear-gradient(360deg, #F4F5F7 0%, #2272FF 100%);
background-color: #F4F5F7; background-color: #F4F5F7;
background-image: linear-gradient(to top, #F4F5F7 , #2272FF); background-image: linear-gradient(to top, #F4F5F7 , #2272FF);
background-size: 750rpx 600rpx; background-size: 750rpx 600rpx;
...@@ -69,6 +187,111 @@ ...@@ -69,6 +187,111 @@
} }
.content{ .content{
height: 2000rpx; height: 2000rpx;
.card {
background-color: #FFFFFF;
margin: 0 30rpx 20rpx 30rpx;
padding: 30rpx 30rpx 0 30rpx;
border-radius: 6px;
}
.base-item {
padding-bottom: 36rpx;
.top-item {
display: flex;
justify-content: space-between;
margin-bottom: 20rpx;
.left {
display: flex;
align-items: center;
.tag {
text-align: center;
width: 84rpx;
height: 40rpx;
background-image: linear-gradient(270deg, #47ABFF 0%, #2272FF 100%);
border-radius: 8rpx;
font-size: 22rpx;
font-weight: 500;
color: #FFFFFF;
line-height: 40rpx;
}
.title {
margin-left: 30rpx;
height: 36rpx;
font-size: 36rpx;
font-weight: bold;
color: #333333;
line-height: 36rpx;
}
}
.right {
text-align: center;
width: 100rpx;
height: 40rpx;
background: #F4F5F7;
border-radius: 22rpx;
font-size: 22rpx;
font-weight: 400;
color: #333333;
line-height: 40rpx;
}
}
.address-cell {
height: 24rpx;
font-size: 24rpx;
font-weight: 400;
color: #333333;
line-height: 24rpx;
.left {
.address-txt {
margin-left: 8rpx;
}
}
}
}
.order-item {
padding-bottom: 34rpx;
.top-item {
display: flex;
justify-content: space-between;
margin-bottom: 20rpx;
.title {
height: 36rpx;
font-size: 36rpx;
font-weight: bold;
color: #333333;
line-height: 36rpx;
}
}
.address-cell {
height: 24rpx;
font-size: 24rpx;
font-weight: 400;
color: #333333;
line-height: 24rpx;
.left {
.address-txt {
margin-left: 8rpx;
}
}
}
}
.record-item {
}
} }
} }
// 页面公用css
.order-cell {
height: 48rpx;
font-size: 26rpx;
font-weight: 400;
color: #333333;
line-height: 48rpx;
margin-bottom: 30rpx;
}
.between-cell {
display: flex;
justify-content: space-between;
align-items: center;
}
</style> </style>
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