240 lines
6.2 KiB
Vue
240 lines
6.2 KiB
Vue
<template>
|
|
<view class="detail_main">
|
|
<nav-bar :title='title'></nav-bar>
|
|
<view class="reser_type" style="margin-top: 24rpx;">
|
|
<view class="reser_tle">{{pageType == '3'?'保洁项目':pageType == '1'?'洗衣项目':pageType == '2'?'维修项目':''}}</view>
|
|
|
|
<template v-if="pageType == '1'">
|
|
<view class="input_row" v-if="detail && detail.orderInfoList && detail.orderInfoList.length > 0">
|
|
<view class="input_tle_no">项目类型</view>
|
|
<view class="input_tips">{{detail.orderInfoList[0].clothingName}}</view>
|
|
</view>
|
|
<view class="input_row">
|
|
<view class="input_tle_no">服务金额</view>
|
|
<view class="input_tips">{{detail.usePrice}}元</view>
|
|
</view>
|
|
<view class="input_row">
|
|
<view class="input_tle_no">申请日期</view>
|
|
<view class="input_tips">{{detail.createdTime}}</view>
|
|
</view>
|
|
</template>
|
|
|
|
<template v-if="pageType == '2'">
|
|
<view class="input_row">
|
|
<view class="input_tle_no">项目类型</view>
|
|
<view class="input_tips">{{detail.serviceName}}</view>
|
|
</view>
|
|
<view class="input_row">
|
|
<view class="input_tle_no">服务金额</view>
|
|
<view class="input_tips">{{detail.usePrice}}元</view>
|
|
</view>
|
|
<view class="input_row">
|
|
<view class="input_tle_no">申请日期</view>
|
|
<view class="input_tips">{{detail.createdTime}}</view>
|
|
</view>
|
|
</template>
|
|
|
|
|
|
<template v-if="pageType == '3'">
|
|
<view class="input_row">
|
|
<view class="input_tle_no">项目类型</view>
|
|
<view class="input_tips">{{detail.serviceName}}</view>
|
|
</view>
|
|
<view class="input_row">
|
|
<view class="input_tle_no">服务金额</view>
|
|
<view class="input_tips">{{detail.usePrice}}元</view>
|
|
</view>
|
|
<view class="input_row">
|
|
<view class="input_tle_no">申请日期</view>
|
|
<view class="input_tips">{{detail.orderTime}}</view>
|
|
</view>
|
|
</template>
|
|
</view>
|
|
|
|
<view class="reser_type" style="margin-top: 24rpx;">
|
|
<view class="reser_tle">申请人信息</view>
|
|
<template v-if="pageType == '1'">
|
|
<view class="input_row">
|
|
<view class="input_tle_no">申请人姓名</view>
|
|
<view class="input_tips">{{detail.name}}</view>
|
|
</view>
|
|
<view class="input_row">
|
|
<view class="input_tle_no">联系电话</view>
|
|
<view class="input_tips">{{detail.phone}}</view>
|
|
</view>
|
|
<view class="input_row">
|
|
<view class="input_tle_no">单位名称</view>
|
|
<view class="input_tips">{{detail.unit}}</view>
|
|
</view>
|
|
</template>
|
|
|
|
<template v-if="pageType == '2'">
|
|
<view class="input_row">
|
|
<view class="input_tle_no">申请人姓名</view>
|
|
<view class="input_tips">{{detail.name}}</view>
|
|
</view>
|
|
<view class="input_row">
|
|
<view class="input_tle_no">联系电话</view>
|
|
<view class="input_tips">{{detail.phone}}</view>
|
|
</view>
|
|
<view class="input_row">
|
|
<view class="input_tle_no">单位名称</view>
|
|
<view class="input_tips">{{detail.unit}}</view>
|
|
</view>
|
|
</template>
|
|
|
|
<template v-if="pageType == '3'">
|
|
<view class="input_row">
|
|
<view class="input_tle_no">申请人姓名</view>
|
|
<view class="input_tips">{{detail.name}}</view>
|
|
</view>
|
|
<view class="input_row">
|
|
<view class="input_tle_no">联系电话</view>
|
|
<view class="input_tips">{{detail.phone}}</view>
|
|
</view>
|
|
<view class="input_row">
|
|
<view class="input_tle_no">单位名称</view>
|
|
<view class="input_tips">{{detail.status}}</view>
|
|
</view>
|
|
</template>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import navBar from "@/components/navBar/index.vue";
|
|
import{formatDate} from "@/common/util.js"
|
|
import {cleaningselectById,laundryDetail,repairDetail} from "@/common/api.js"
|
|
import {
|
|
callbackRequest
|
|
} from '@/common/util.js';
|
|
export default {
|
|
components: {
|
|
navBar
|
|
},
|
|
data() {
|
|
return {
|
|
detail: {},
|
|
id: '',
|
|
pageType: '',
|
|
title: '订单详情'
|
|
}
|
|
},
|
|
onLoad(options) {
|
|
this.id = options.id
|
|
this.pageType = options.pageType
|
|
this.getdetail()
|
|
},
|
|
methods: {
|
|
getdetail() {
|
|
let params = {
|
|
method: this.pageType == '3'?cleaningselectById:this.pageType == '1'?laundryDetail:this.pageType == '2'?repairDetail:'',
|
|
id: this.id,
|
|
isDeleted: '0'
|
|
}
|
|
callbackRequest(params).then((res) => {
|
|
if (res.returnCode == 1) {
|
|
this.detail = res.returnData
|
|
} else {
|
|
uni.showToast({title: res.returnMsg,icon: 'none'});
|
|
}
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
.detail_main {
|
|
background-color: #F2F6FA;
|
|
padding: 100rpx 24rpx 150rpx 24rpx;
|
|
box-sizing: border-box;
|
|
}
|
|
.reser_date {
|
|
width: 100%;
|
|
background: #FFFFFF;
|
|
border-radius: 20rpx 20rpx 20rpx 20rpx;
|
|
padding: 0rpx 24rpx 0 24rpx;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.reser_type {
|
|
width: 100%;
|
|
min-height: 100rpx;
|
|
background: #FFFFFF;
|
|
border-radius: 20rpx 20rpx 20rpx 20rpx;
|
|
padding: 24rpx 24rpx 0 24rpx;
|
|
box-sizing: border-box;
|
|
|
|
.reser_tle {
|
|
font-family: PingFang SC, PingFang SC;
|
|
font-weight: bold;
|
|
font-size: 32rpx;
|
|
color: #0E1A24;
|
|
margin-left: 30rpx;
|
|
position: relative;
|
|
margin-bottom: 28rpx;
|
|
}
|
|
|
|
.reser_tle:before {
|
|
position: absolute;
|
|
content: '';
|
|
left: -24rpx;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
width: 8rpx;
|
|
height: 30rpx;
|
|
background: linear-gradient(180deg, #82E7B3 0%, #94B8EF 100%);
|
|
border-radius: 4rpx;
|
|
}
|
|
}
|
|
.input_row_col {
|
|
margin-top: 30rpx;
|
|
}
|
|
.input_row {
|
|
display: flex;
|
|
align-items: center;
|
|
border-bottom: 1rpx solid #EBEFF7;
|
|
padding: 32rpx 0;
|
|
}
|
|
.input_tle_no {
|
|
line-height: 24px;
|
|
width: 160rpx;
|
|
font-weight: 400;
|
|
font-size: 28rpx;
|
|
color: #4B5B68;
|
|
text-align: left;
|
|
display: inline-flex;
|
|
}
|
|
.input_tips {
|
|
flex: 1;
|
|
line-height: 24px;
|
|
font-weight: 400;
|
|
font-size: 28rpx;
|
|
color: #0E1A24;
|
|
text-align: left;
|
|
display: inline-flex;
|
|
}
|
|
.bottom_btn {
|
|
width: 100%;
|
|
height: 120rpx;
|
|
background: #FFFFFF;
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
button {
|
|
width: 654rpx;
|
|
height: 88rpx;
|
|
background: linear-gradient( 94deg, #5BCE9D 0%, #00ADA6 100%);
|
|
border-radius: 12rpx 12rpx 12rpx 12rpx;
|
|
font-weight: 400;
|
|
font-size: 32rpx;
|
|
color: #FFFFFF;
|
|
line-height: 88rpx;
|
|
text-align: center;
|
|
}
|
|
}
|
|
</style> |