Commit 168e8b9e by gonglei

加入框架代码

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