Commit d569205f by gonglei

加入框架代码

1 parent 708fcee2
......@@ -6,11 +6,11 @@ PUBLISH_PATH = '/'
# 平台端请求路径
# 生产环境
# VITE_APP_API_URL = 'http://aapp.link:6911/api/'
# VITE_APP_API_BASE_URL = 'http://aapp.link:6911/'
VITE_APP_API_URL = 'http://aapp.link:6911/api/'
VITE_APP_API_BASE_URL = 'http://aapp.link:6911/'
VITE_APP_API_URL = 'https://aus.glsx.com.cn/app/api/'
VITE_APP_API_BASE_URL = 'https://aus.glsx.com.cn/app/'
# VITE_APP_API_URL = 'https://aus.glsx.com.cn/app/api/'
# VITE_APP_API_BASE_URL = 'https://aus.glsx.com.cn/app/'
VITE_APP_TOKEN= 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJmYWN0b3JJZCI6MSwic3ViIjoiYWRtaW5pc3RyYXRvciIsInJlYWxOYW1lIjoi6LaF57qn566h55CG5ZGYIiwicGFzc3dvcmQiOiIkMmEkMTAkaFR0QkdSOTAxZ1A2SzQ5Ti9RNWFNT2oyQjE3cDVYZjRmeXliZTJ6ckpjdEJjWklMbUEwZEciLCJpc3MiOiJ5eHR3ZWIiLCJhdmF0YXIiOiJ1c2VySW5mby8yMDIzMDcxOC9OMUYxNGJ5NmRPLmpwZyIsImV4cCI6MTc2ODkyNzY3NywiaWF0IjoxNjk2OTI3Njc3LCJqdGkiOiIxIiwiYXV0aG9yaXRpZXMiOlsiUk9MRV9TVVBFUiIsIkFETUlOIl19.3SYoNceGBTubVsikOb7aFpm5medHG-AUpVgcBdb2ao8'
......@@ -27,6 +27,13 @@ export default class AbstractVehicleItem 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));
}
......
......@@ -2,9 +2,10 @@
<view v-if="auctionVehicle" class="car-item" @click="viewCarDetail()">
<vehicle-cover-wrapper :auction-vehicle="auctionVehicle"></vehicle-cover-wrapper>
<view class="recharge-info">
<text class="car-name">【{{ licensePlate }}】{{ 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>
<view class="car-features">
<text class="feature-item" v-if="licensePlate">{{ licensePlate }}</text>
<text class="feature-item" v-if="vehicle.ownership.transferCount===0">零次过户</text>
<text class="feature-item" v-if="vehicle.baseInfo.mileage<10000&&ageLess1Year">准新车</text>
<text class="feature-item" v-if="vehicle.ownership.ownerType===1">个人车</text>
......
......@@ -36,8 +36,8 @@
"quickapp": {},
/* 小程序特有相关 */
"mp-weixin": {
"appid": "wxa719209ed933d667",
/* "appid": "wx568d02f6352efd49",*/
/* "appid": "wxa719209ed933d667",*/
"appid": "wx568d02f6352efd49",
"setting": {
"urlCheck": false,
"es6": true,
......
......@@ -25,9 +25,10 @@
</template>
</view>
<view class="recharge-info">
<text class="car-name">【{{ licensePlate }}】{{ vehicle.baseInfo.carSeriesName }} {{ vehicle.baseInfo.carTypeName }}</text>
<text class="car-name">【{{ cityName }}】{{ vehicle.baseInfo.carSeriesName }} {{ vehicle.baseInfo.carTypeName }}</text>
<text class="car-detail">{{ productionYear }}年/{{ mileage }}万公里/国{{ vehicle.coreSpecs.emissionStandard }}</text>
<view class="car-features">
<text class="feature-tag" v-if="licensePlate">{{ licensePlate }}</text>
<text class="feature-tag" v-if="vehicle.ownership.transferCount===0">零次过户</text>
<text class="feature-tag" v-if="vehicle.baseInfo.mileage<10000&&ageLess1Year">准新车</text>
<text class="feature-tag" v-if="vehicle.ownership.ownerType===1">个人车</text>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!