Commit 6d54af16 by yancanhua

fix: 测试问题修改

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