Commit 168e8b9e by gonglei

加入框架代码

1 parent 138dc1c8
......@@ -43,8 +43,9 @@
<van-count-down class="blue-count-down" :time="bidEndRemaining" format="HH:mm:ss" @finish="countDownBidEnd"/>
</view>
</view>
<view class="car-title">【{{ licensePlate }}】{{ vehicle.baseInfo.carSeriesName }} {{ vehicle.baseInfo.carTypeName }}</view>
<view class="car-title">【{{ cityName }}】{{ vehicle.baseInfo.carSeriesName }} {{ vehicle.baseInfo.carTypeName }}</view>
<view class="car-tags">
<text class="tag" v-if="licensePlate">{{ licensePlate }}</text>
<text class="tag" v-if="vehicle.ownership.transferCount===0">零次过户</text>
<text class="tag" v-if="vehicle.baseInfo.mileage<10000&&ageLess1Year">准新车</text>
<text class="tag" v-if="vehicle.ownership.ownerType===1">个人车</text>
......@@ -578,6 +579,13 @@ export default class AuctionVehiclePage extends Vue {
return this.vehicle.baseInfo?.licensePlate.substring(0, 2);
}
get cityName(): string {
if (this.vehicle.ownership.carCityName) {
return this.vehicle.ownership.carCityName.replace("市", "");
}
return this.vehicle.ownership.carCityName;
}
get ageLess1Year(): boolean {
return dayjs().add(-1, 'years').isBefore(dayjs(this.vehicle.coreSpecs.productionDate as string));
}
......
......@@ -47,7 +47,7 @@
<text slot="error">加载失败</text>
</van-image>
<view class="recharge-details">
<view class="car-name">【{{ getLicensePlate(order) }}】{{ order.vehicle.baseInfo.carSeriesName }} {{ order.vehicle.baseInfo.carTypeName }}</view>
<view class="car-name">【{{ geCityName(order.vehicle) }}】{{ order.vehicle.baseInfo.carSeriesName }} {{ order.vehicle.baseInfo.carTypeName }}</view>
<view class="car-price">{{ $filters.formatNumber(order.orderPrice / 10000) }}
<text class="price-unit">万</text>
</view>
......@@ -137,6 +137,7 @@ import dayjs from "dayjs";
import CustomNavBar from "@/components/CustomNavBar.vue";
import {BurialPoint} from "@/common/BurialPoint";
import {PaginationComponent} from "@/components/PaginationComponent";
import {Vehicle} from "lib/src/entity/vehicle/entity/Vehicle";
@Component({
components: {CustomNavBar}
......@@ -277,6 +278,14 @@ export default class AuctionOrderPage extends PaginationComponent<AuctionOrder>
return order.vehicle.baseInfo?.licensePlate.substring(0, 2);
}
geCityName(vehicle: Vehicle): string {
if (vehicle.ownership.carCityName) {
return vehicle.ownership.carCityName.replace("市", "");
}
return vehicle.ownership.carCityName;
}
copyOrderCode(order: AuctionOrder) {
uni.setClipboardData({
data: order.orderCode,
......
......@@ -13,7 +13,7 @@
<view class="car-item" @click="viewCarDetail(bid)">
<vehicle-cover-wrapper :auction-vehicle="bid.auctionVehicle"></vehicle-cover-wrapper>
<view class="recharge-info">
<text class="car-name">【{{ getLicensePlate(bid.auctionVehicle.vehicle) }}】{{ bid.auctionVehicle.vehicle.baseInfo.carSeriesName }}
<text class="car-name">【{{ geCityName(bid.auctionVehicle.vehicle) }}】{{ bid.auctionVehicle.vehicle.baseInfo.carSeriesName }}
{{ bid.auctionVehicle.vehicle.baseInfo.carTypeName }}
</text>
......@@ -73,6 +73,13 @@ export default class BidPage extends PaginationComponent<Bid> {
return vehicle.baseInfo?.licensePlate.substring(0, 2);
}
geCityName(vehicle: Vehicle): string {
if (vehicle.ownership.carCityName) {
return vehicle.ownership.carCityName.replace("市", "");
}
return vehicle.ownership.carCityName;
}
get contents(): Bid[] {
return this.pagination.content;
}
......
<template>
</template>
<script lang="ts">
import {Component, Vue} from 'vue-facing-decorator';
@Component({})
export default class AuctionHistoryPage extends Vue {
}
</script>
<style scoped lang="scss">
</style>
......@@ -350,13 +350,6 @@
}
},
{
"path": "AuctionHistoryPage",
"style": {
"navigationBarTitleText": "拍卖历史记录",
"enablePullDownRefresh": false
}
},
{
"path": "AgreementPage",
"style": {
"navigationBarTitleText": "",
......@@ -369,13 +362,6 @@
"navigationBarTitleText": "意见反馈",
"enablePullDownRefresh": false
}
},
{
"path": "SystemSettingPage",
"style": {
"navigationBarTitleText": "系统设置",
"enablePullDownRefresh": false
}
}
]
},
......@@ -425,13 +411,13 @@
"enablePullDownRefresh": false
}
}
// {
// "path": "RechargeRefundPage",
// "style": {
// "navigationBarTitleText": "提现",
// "enablePullDownRefresh": false
// }
// }
// {
// "path": "RechargeRefundPage",
// "style": {
// "navigationBarTitleText": "提现",
// "enablePullDownRefresh": false
// }
// }
]
}
],
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!