Commit 877873ad by yancanhua

fix: 列表倒计时结束未刷新页面问题修改

1 parent 2d4fd797
<template> <template>
<view v-if="auctionVehicle" class="car-item" @click="viewCarDetail()"> <view v-if="auctionVehicle" class="car-item" @click="viewCarDetail()">
<vehicle-cover-wrapper :auction-vehicle="auctionVehicle"></vehicle-cover-wrapper> <vehicle-cover-wrapper :auction-vehicle="auctionVehicle" @emitLoadListData="emitLoadListData"></vehicle-cover-wrapper>
<view class="recharge-info"> <view class="recharge-info">
<text class="car-name">【{{ cityName }}】{{ vehicle.baseInfo.carSeriesName }} {{ vehicle.baseInfo.carTypeName }}</text> <text class="car-name">【{{ cityName }}】{{ vehicle.baseInfo.carSeriesName }} {{ vehicle.baseInfo.carTypeName }}</text>
<text class="car-specs">{{ productionYear }}年 | {{ mileage }}万公里</text> <text class="car-specs">{{ productionYear }}年 | {{ mileage }}万公里</text>
...@@ -63,7 +63,12 @@ export default class AuctionVehicleItem extends AbstractVehicleItem { ...@@ -63,7 +63,12 @@ export default class AuctionVehicleItem extends AbstractVehicleItem {
}).finally(() => uni.hideLoading()); }).finally(() => uni.hideLoading());
} }
emitLoadListData(): void {
const that = this;
setTimeout(() => {
that.$emit('emitLoadList');
}, 1600);
}
} }
</script> </script>
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
<view class="tag-item"> <view class="tag-item">
<template v-if="auctionVehicle.auctionState==='PREVIEW'"> <template v-if="auctionVehicle.auctionState==='PREVIEW'">
<template v-if="previewLessThen24h"> <template v-if="previewLessThen24h">
<van-count-down v-if="Number(previewCountDown) > 0 " class="white-small-count-down" :time="previewCountDown" format="HH:mm:ss 后开拍" @finish="countDownBidStart"/> <van-count-down v-if="Number(previewCountDown) > 0 " class="white-small-count-down" :time="previewCountDown" format="HH:mm:ss 后开拍" @finish="finishCountDownBidStart"/>
</template> </template>
<template v-else> <template v-else>
{{ previewStatus }} {{ previewStatus }}
...@@ -56,6 +56,11 @@ import AbstractVehicleItem from "@/components/AbstractVehicleItem"; ...@@ -56,6 +56,11 @@ import AbstractVehicleItem from "@/components/AbstractVehicleItem";
}) })
export default class VehicleCoverWrapper extends AbstractVehicleItem { export default class VehicleCoverWrapper extends AbstractVehicleItem {
finishCountDownBidStart(): void {
this.countDownBidStart();
this.$emit('emitLoadListData');
}
} }
</script> </script>
......
...@@ -328,6 +328,7 @@ export default class roundBidBottom extends Vue { ...@@ -328,6 +328,7 @@ export default class roundBidBottom extends Vue {
//获取轮询拍卖详情 //获取轮询拍卖详情
getBidRemainSecData() { getBidRemainSecData() {
const that = this;
AuctionOrderController.getBidRemainSec(this.axios, { aucvehId: this.auctionVehicle.aucvehId }).then(res => { AuctionOrderController.getBidRemainSec(this.axios, { aucvehId: this.auctionVehicle.aucvehId }).then(res => {
const data = res.data?.data || {}; const data = res.data?.data || {};
//价格改变重新获取佣金 //价格改变重新获取佣金
...@@ -347,8 +348,9 @@ export default class roundBidBottom extends Vue { ...@@ -347,8 +348,9 @@ export default class roundBidBottom extends Vue {
} }
if (data.significantPriceIncrease) { if (data.significantPriceIncrease) {
setTimeout(() => { setTimeout(() => {
uni.showToast({ title: '有用户大幅度加价!最新价升至' + this.resultPrice + '万', icon: 'none' }); that.resultPrice = (Number(that.pageData.price || 0) + Number(that.pageData.commissionPrice || 0)) / 10000;
}, 700); uni.showToast({ title: '有用户大幅度加价!最新价升至' + that.resultPrice + '万', icon: 'none' });
}, 800);
} }
const pages = getCurrentPages(); const pages = getCurrentPages();
const currentPage = pages[pages.length - 1]; const currentPage = pages[pages.length - 1];
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!