|
@@ -39,7 +39,7 @@
|
|
|
<div>
|
|
|
<div class="header-pic" :class="orderStateMap[orderInfo.state].bgcClassName">
|
|
|
<div class="order-state">{{ orderStateMap[orderInfo.state].text }}</div>
|
|
|
- <div class="surplus-time" v-if="orderStateMap[orderInfo.state].surplusTimeShow">
|
|
|
+ <div class="surplus-time" v-if="orderStateMap[orderInfo.state].surplusTimeShow && orderInfo.surplusTime">
|
|
|
<span>剩余支付时间:</span>
|
|
|
<van-count-down @finish="onCountdowFinish" :time="orderInfo.surplusTime * 1000" />
|
|
|
</div>
|
|
@@ -89,15 +89,15 @@
|
|
|
<span class="card-item-l">下单时间:</span>
|
|
|
<span class="card-item-r">{{ orderInfo.createTime * 1000 | dateFormatter('yyyy/MM/dd HH:mm:ss') }}</span>
|
|
|
</div>
|
|
|
- <div class="j-card-item">
|
|
|
+ <div class="j-card-item" v-if="orderInfo.payTime">
|
|
|
<span class="card-item-l">支付时间:</span>
|
|
|
<span class="card-item-r">{{ orderInfo.payTime * 1000 | dateFormatter('yyyy/MM/dd HH:mm:ss') }}</span>
|
|
|
</div>
|
|
|
- <div class="j-card-item">
|
|
|
+ <div class="j-card-item" v-if="orderInfo.payWay">
|
|
|
<span class="card-item-l">支付方式:</span>
|
|
|
<span class="card-item-r">{{ payWayMap[orderInfo.payWay] }}</span>
|
|
|
</div>
|
|
|
- <div class="j-card-item">
|
|
|
+ <div class="j-card-item" v-if="orderInfo.paymentId">
|
|
|
<span class="card-item-l">支付单号:</span>
|
|
|
<span class="card-item-r">{{ orderInfo.paymentId }}</span>
|
|
|
</div>
|
|
@@ -107,7 +107,7 @@
|
|
|
</div>
|
|
|
<div class="j-card-item">
|
|
|
<span class="card-item-l">支付金额:</span>
|
|
|
- <span class="card-item-r">¥ {{ orderInfo.payMoney }}</span>
|
|
|
+ <span class="card-item-r">¥ {{ orderInfo.payMoney | fen2Yuan }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -195,7 +195,7 @@ export default class OrderDetail extends Vue {
|
|
|
productInfo = {
|
|
|
picImg: '',
|
|
|
productName: '',
|
|
|
- email: 'a@qq.com',
|
|
|
+ email: '',
|
|
|
phone: '',
|
|
|
entName: '',
|
|
|
releaseTime: ''
|
|
@@ -204,13 +204,13 @@ export default class OrderDetail extends Vue {
|
|
|
orderInfo = {
|
|
|
// 0:待支付 1:已完成 -2:已取消
|
|
|
state: 0,
|
|
|
- ordercode: '12365652',
|
|
|
+ ordercode: '',
|
|
|
createTime: '',
|
|
|
payTime: 0,
|
|
|
- payWay: 'wx_js',
|
|
|
+ payWay: '',
|
|
|
paymentId: '',
|
|
|
productType: '',
|
|
|
- payMoney: '222',
|
|
|
+ payMoney: '',
|
|
|
// 单位: 秒(s)
|
|
|
surplusTime: null
|
|
|
// surplusTime: 60 * 60 * 24 * 3
|
|
@@ -238,8 +238,8 @@ export default class OrderDetail extends Vue {
|
|
|
duration: 0
|
|
|
})
|
|
|
this.getOrderDetail({ ordercode: this.ordercode, all: 1 }).then(res => {
|
|
|
- this.loading = false
|
|
|
if (res.error_code === 0) {
|
|
|
+ this.loading = false
|
|
|
toast.clear()
|
|
|
if (res.data && Object.keys(res.data).length !== 0) {
|
|
|
// this.productInfo = res.data.productInfo
|
|
@@ -261,10 +261,8 @@ export default class OrderDetail extends Vue {
|
|
|
}
|
|
|
|
|
|
onCountdowFinish () {
|
|
|
- console.log('onCountdowFinish')
|
|
|
- this.getInfo()
|
|
|
- // 倒计时结束,状态改为已取消
|
|
|
- // this.orderInfo.state = -2
|
|
|
+ // console.log('onCountdowFinish')
|
|
|
+ // this.getInfo()
|
|
|
}
|
|
|
|
|
|
onConfirm () {
|
|
@@ -378,6 +376,7 @@ export default class OrderDetail extends Vue {
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
// 头部使用header-mask实现
|
|
|
+ // 参考: https://www.sunzhongwei.com/css-div-arc-at-bottom
|
|
|
&>div {
|
|
|
position: relative;
|
|
|
z-index: 2;
|
|
@@ -385,10 +384,10 @@ export default class OrderDetail extends Vue {
|
|
|
&:after {
|
|
|
content: '';
|
|
|
width: 140%;
|
|
|
- height: 220px;
|
|
|
+ height: 230px;
|
|
|
position: absolute;
|
|
|
left: 50%;
|
|
|
- top:0;
|
|
|
+ top: -10px;
|
|
|
background: url(~@/assets/image/order-detail-header-mask3x.png) no-repeat top center;
|
|
|
background-size: contain;
|
|
|
border-radius: 0 0 50% 50%;
|