Commit 6d54af16 by yancanhua

fix: 测试问题修改

1 parent 95565ea8
......@@ -244,7 +244,7 @@ export default class roundBidBottom extends Vue {
if (accountInfo.accountType == 'COMMON') { // 未认证
this.pageState = 'COMMON';
} else {
if (this.auctionVehicle.auctionState === 'SOLD') {
if ((this.auctionVehicle.vehicle.vehicleState || this.auctionVehicle.auctionState) === 'SOLD') {
this.pageState = 'END';
//已经结束拍获取拍卖结果
this.getAccountBidResultData('END');
......@@ -285,10 +285,10 @@ export default class roundBidBottom extends Vue {
if (!data.checkResult) {
this.pageState = 'NOTOPUP';
} else {
if (this.auctionVehicle.auctionState == 'PREVIEW') { //预展中
if ((this.auctionVehicle.vehicle.vehicleState || this.auctionVehicle.auctionState) == 'PREVIEW') { //预展中
this.pageState = 'PREVIEW';
this.getAuctionVehicleDetail();
} else if (this.auctionVehicle.auctionState == 'AUCTIONING') { //竞拍中
} else if ((this.auctionVehicle.vehicle.vehicleState || this.auctionVehicle.auctionState) == 'AUCTIONING') { //竞拍中
this.pageState = 'AUCTIONING';
this.getBidRemainSecData();
} else { //竞拍已结束SOLD
......
......@@ -45,7 +45,14 @@ export default class LikeAuctionVehicles extends PaginationComponent<AuctionVehi
get contents(): AuctionVehicle[] {
return this.pagination.content;
const list = (this.pagination.content || []).map(item => {
let auctionState = item.auctionState;
if (item.auction?.auctionMode == 2) {
auctionState = item.vehicle?.vehicleState || item.auctionState;
}
return { ...item, auctionState: auctionState, }
});
return list;
}
}
</script>
......
......@@ -67,7 +67,14 @@ export default class RecommendAuctionVehicles extends PaginationComponent<Auctio
}
get contents(): AuctionVehicle[] {
return this.pagination.content;
const list = (this.pagination.content || []).map(item => {
let auctionState = item.auctionState;
if (item.auction?.auctionMode == 2) {
auctionState = item.vehicle?.vehicleState || item.auctionState;
}
return { ...item, auctionState: auctionState, }
});
return list;
}
}
</script>
......
......@@ -5,7 +5,12 @@
<view class="light-status">
<template v-if="auctionVehicle.auctionState==='PREVIEW'">
<template v-if="previewLessThen24h">
<van-count-down class="red-small-count-down" :time="previewCountDown" format="HH:mm:ss 后开拍" @finish="countDownBidStart"/>
<view v-show="auctionVehicle?.auction?.auctionMode == 1">
<van-count-down class="red-small-count-down" :time="previewCountDown" format="HH:mm:ss 后开拍" @finish="countDownBidStart"/>
</view>
<view v-show="auctionVehicle?.auction?.auctionMode == 2">
{{ (auctionVehicle?.auctionStartTime || '').slice(5, 16).replace('-', '/') }} 起拍
</view>
</template>
<template v-else>
{{ previewStatus }} 开拍
......@@ -17,7 +22,7 @@
</template>
<template v-else>
<text style="color: #EE3140;font-size: 10px;margin-right: 3px">竞拍中</text>
<van-count-down class="white-small-count-down" :time="endRemaining" format="HH:mm:ss" @finish="countDownBidEnd"/>
<van-count-down v-show="auctionVehicle?.auction?.auctionMode == 1" class="white-small-count-down" :time="endRemaining" format="HH:mm:ss" @finish="countDownBidEnd"/>
</template>
</template>
<template v-else>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!