|
|
@ -1,35 +1,36 @@ |
|
|
|
<template> |
|
|
|
<view class="orderDetails"> |
|
|
|
<Navbar title="订单详情" :autoBack="true" :bgColor="bgColor" leftIconSize="18px" height="100rpx" :leftIconColor="leftIconColor" :titleStyle="{color:fontColor}" /> |
|
|
|
<Navbar title="订单详情" :autoBack="true" :bgColor="bgColor" leftIconSize="18px" height="100rpx" |
|
|
|
:leftIconColor="leftIconColor" :titleStyle="{color:fontColor}" /> |
|
|
|
<view class="content"> |
|
|
|
<view class="baseInfo cardBackground_"> |
|
|
|
<view class="statusBox"> |
|
|
|
<i></i> |
|
|
|
<view class="status">待参加</view> |
|
|
|
<view class="status">{{orderStatus}}</view> |
|
|
|
</view> |
|
|
|
<view class="info grayBg cardStyle_"> |
|
|
|
<view class="left"> |
|
|
|
<image src="https://img0.baidu.com/it/u=4274003247,920124130&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=1031" alt=""> |
|
|
|
<image :src="dataInfo.image" > |
|
|
|
</view> |
|
|
|
<view class="right"> |
|
|
|
<view class="detailed"> |
|
|
|
<view class="title">夏日去撒野旅游计划~</view> |
|
|
|
<view class="date">2024.10.28 10:00</view> |
|
|
|
<view class="address">成都市东丽湖露营地32号</view> |
|
|
|
</view> |
|
|
|
<view class="price"><text>总计</text>¥800.00</view> |
|
|
|
<view class="detailed"> |
|
|
|
<view class="title">{{dataInfo.title}}</view> |
|
|
|
<view class="date">{{dataInfo.startTime}}</view> |
|
|
|
<view class="address">{{dataInfo.address}}</view> |
|
|
|
</view> |
|
|
|
<view class="price"><text>总计</text>¥{{dataInfo.payPrice}}</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="orderInfo"> |
|
|
|
<view class="title">订单信息</view> |
|
|
|
<view class="details"> |
|
|
|
<uv-cell :border="false" titleStyle="{color: 'red'}" title="版本更新" value="已是新版本"></uv-cell> |
|
|
|
<uv-cell :border="false" titleStyle="{color: 'red'}" title="版本更新" value="已是新版本"></uv-cell> |
|
|
|
<uv-cell :border="false" titleStyle="{color: 'red'}" title="版本更新" value="已是新版本"></uv-cell> |
|
|
|
<uv-cell :border="false" titleStyle="{color: 'red'}" title="版本更新" value="已是新版本"></uv-cell> |
|
|
|
<uv-cell :border="false" titleStyle="{color: 'red'}" title="订单编号" :value="showOrderId"></uv-cell> |
|
|
|
<uv-cell :border="false" titleStyle="{color: 'red'}" title="下单时间" :value="dataInfo.createTime"></uv-cell> |
|
|
|
<uv-cell :border="false" titleStyle="{color: 'red'}" title="订单金额" :value="'¥' + dataInfo.payPrice"></uv-cell> |
|
|
|
<uv-cell :border="false" titleStyle="{color: 'red'}" title="订单状态" :value="orderStatus"></uv-cell> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
<view class="tips"> |
|
|
|
<view class="title">旅行须知</view> |
|
|
@ -41,7 +42,7 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view style="padding: 65rpx 35rpx;"> |
|
|
|
<view style="padding: 65rpx 35rpx;" v-if="dataInfo.state == 1 && dataInfo.type == 0"> |
|
|
|
<uv-button :custom-style="customStyle" type="primary" shape="circle" color="#381615" text="活动签到"></uv-button> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -49,89 +50,151 @@ |
|
|
|
|
|
|
|
<script> |
|
|
|
import Navbar from '@/pages/components/Navbar.vue' |
|
|
|
import { globalMixin } from '../pages/mixins/globalMixin'; |
|
|
|
import { |
|
|
|
globalMixin |
|
|
|
} from '../pages/mixins/globalMixin'; |
|
|
|
|
|
|
|
export default{ |
|
|
|
mixins: [globalMixin], |
|
|
|
components:{ |
|
|
|
Navbar |
|
|
|
export default { |
|
|
|
mixins: [globalMixin], |
|
|
|
components: { |
|
|
|
Navbar |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
orderId:'', |
|
|
|
dataInfo:null, |
|
|
|
customStyle:{ |
|
|
|
color:'#FF5858' |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
onLoad(e) { |
|
|
|
this.orderId = e.id |
|
|
|
this.getorderInfo() |
|
|
|
}, |
|
|
|
computed:{ |
|
|
|
orderStatus() { |
|
|
|
let text = "" |
|
|
|
let state = this.dataInfo.state |
|
|
|
if( state == 0) { |
|
|
|
text = '未付款' |
|
|
|
}else if(state == 1) { |
|
|
|
text = '待参加' |
|
|
|
}else if(state == 2) { |
|
|
|
text = '已完成' |
|
|
|
}else{ |
|
|
|
text = '已取消' |
|
|
|
} |
|
|
|
return text |
|
|
|
}, |
|
|
|
showOrderId() {//0活动 1旅行 |
|
|
|
let id = "" |
|
|
|
if(this.dataInfo.type == 0) { |
|
|
|
id = this.dataInfo.activityOrderId |
|
|
|
}else{ |
|
|
|
id = this.dataInfo.travelOrderId |
|
|
|
} |
|
|
|
return id |
|
|
|
} |
|
|
|
}, |
|
|
|
methods:{ |
|
|
|
getorderInfo() { |
|
|
|
this.$api('orderInfo',{orderId:this.orderId},res=>{ |
|
|
|
if(res.code == 200) { |
|
|
|
this.dataInfo = res.result |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
<style scoped lang="scss"> |
|
|
|
.details { |
|
|
|
padding: 50rpx 40rpx; |
|
|
|
/deep/.uv-cell { |
|
|
|
.uv-cell__body { |
|
|
|
padding: 0rpx; |
|
|
|
padding-bottom: 30rpx; |
|
|
|
} |
|
|
|
&:last-child { |
|
|
|
.details { |
|
|
|
padding: 50rpx 40rpx; |
|
|
|
|
|
|
|
/deep/.uv-cell { |
|
|
|
.uv-cell__body { |
|
|
|
padding-bottom: 0rpx; |
|
|
|
padding: 0rpx; |
|
|
|
padding-bottom: 30rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
.uv-cell__body__content { |
|
|
|
.uv-cell__title-text { |
|
|
|
color: $uni-text-color-grey!important; |
|
|
|
|
|
|
|
&:last-child { |
|
|
|
.uv-cell__body { |
|
|
|
padding-bottom: 0rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.uv-cell__body__content { |
|
|
|
.uv-cell__title-text { |
|
|
|
color: $uni-text-color-grey !important; |
|
|
|
font-size: 28rpx |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.uv-cell__value { |
|
|
|
color: #DCDCDC !important; |
|
|
|
font-size: 28rpx |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
.uv-cell__value { |
|
|
|
color: #DCDCDC!important; |
|
|
|
font-size: 28rpx |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.orderDetails { |
|
|
|
margin-top: 40rpx; |
|
|
|
/deep/.uv-navbar__content__title { |
|
|
|
color: #fff; |
|
|
|
} |
|
|
|
.content { |
|
|
|
padding: 0 35rpx; |
|
|
|
color: #fff; |
|
|
|
padding-top: calc(var(--status-bar-height) + 110rpx); |
|
|
|
.baseInfo { |
|
|
|
.statusBox { |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
padding: 33rpx 47rpx 24rpx; |
|
|
|
i { |
|
|
|
background: url('@/static/image/cart/U-status.png') no-repeat; |
|
|
|
background-size: 100% 100%; |
|
|
|
display: block; |
|
|
|
width: 39rpx; |
|
|
|
height: 34rpx; |
|
|
|
margin-right: 15rpx; |
|
|
|
} |
|
|
|
.status { |
|
|
|
font-size: 32rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
.orderDetails { |
|
|
|
margin-top: 40rpx; |
|
|
|
|
|
|
|
/deep/.uv-navbar__content__title { |
|
|
|
color: #fff; |
|
|
|
} |
|
|
|
.orderInfo,.tips { |
|
|
|
.title { |
|
|
|
font-size: 29rpx; |
|
|
|
padding-bottom: 26rpx; |
|
|
|
margin-top: 36rpx; |
|
|
|
|
|
|
|
.content { |
|
|
|
padding: 0 35rpx; |
|
|
|
color: #fff; |
|
|
|
padding-top: calc(var(--status-bar-height) + 110rpx); |
|
|
|
|
|
|
|
.baseInfo { |
|
|
|
.statusBox { |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
padding: 33rpx 47rpx 24rpx; |
|
|
|
|
|
|
|
i { |
|
|
|
background: url('@/static/image/cart/U-status.png') no-repeat; |
|
|
|
background-size: 100% 100%; |
|
|
|
display: block; |
|
|
|
width: 39rpx; |
|
|
|
height: 34rpx; |
|
|
|
margin-right: 15rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.status { |
|
|
|
font-size: 32rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
.details { |
|
|
|
background-color: $uni-color-card-background; |
|
|
|
border-radius: 26rpx; |
|
|
|
|
|
|
|
.orderInfo, |
|
|
|
.tips { |
|
|
|
.title { |
|
|
|
font-size: 29rpx; |
|
|
|
padding-bottom: 26rpx; |
|
|
|
margin-top: 36rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.details { |
|
|
|
background-color: $uni-color-card-background; |
|
|
|
border-radius: 26rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
.tips { |
|
|
|
.details { |
|
|
|
p { |
|
|
|
color: #CCC; |
|
|
|
font-size: 25rpx; |
|
|
|
line-height: 50rpx; |
|
|
|
|
|
|
|
.tips { |
|
|
|
.details { |
|
|
|
p { |
|
|
|
color: #CCC; |
|
|
|
font-size: 25rpx; |
|
|
|
line-height: 50rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</style> |