Commit 02bca08d by 胡悦

fix(SecondHandCar): 修复车辆列表样式和数据显示问题

调整车辆系列名称的显示样式,修复数据显示条件判断
修正常量文件中类型值和名称错误
修复图标点击事件的数据类型绑定格式
1 parent 5704c30e
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<view class="data-card" wx:for="{{secondCell}}" wx:key="index"> <view class="data-card" wx:for="{{secondCell}}" wx:key="index">
<view class="card-header"> <view class="card-header">
<view class="card-title">{{item.name}}</view> <view class="card-title">{{item.name}}</view>
<glsx-image class="icon" wx:if="{{item.tipsType}}" src="store-assistant-assemble/output/icon-inco.png" bind:tap="open"data-type="{{item.tipsType}}"></glsx-image> <glsx-image class="icon" wx:if="{{item.tipsType}}" src="store-assistant-assemble/output/icon-inco.png" bind:tap="open" data-type="{{item.tipsType}}"></glsx-image>
<glsx-image class="card-icon" src="store-assistant-assemble/output/icon7{{item.type}}.png"></glsx-image> <glsx-image class="card-icon" src="store-assistant-assemble/output/icon7{{item.type}}.png"></glsx-image>
</view> </view>
<view class="card-value">{{boardData[item.value] == null ? '-' : item.unit ? boardData[item.value] + item.unit : boardData[item.value]}}</view> <view class="card-value">{{boardData[item.value] == null ? '-' : item.unit ? boardData[item.value] + item.unit : boardData[item.value]}}</view>
......
...@@ -49,6 +49,10 @@ ...@@ -49,6 +49,10 @@
color: #EC4D32; color: #EC4D32;
} }
} }
.car-series {
display: inline-block;
padding-right: 8rpx;
}
} }
.vehicle-desc { .vehicle-desc {
font-size: 24rpx; font-size: 24rpx;
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<view class="vehicle-info"> <view class="vehicle-info">
<view class="vehicle-title"> <view class="vehicle-title">
<view wx:if="{{item.evalCarBase && item.evalCarBase.vehicleCategory}}" class="vehicle-type {{item.evalCarBase && item.evalCarBase.vehicleCategory ? vehicle_category[item.evalCarBase.vehicleCategory].class : ''}}">{{item.evalCarBase && item.evalCarBase.vehicleCategory ? vehicle_category[item.evalCarBase.vehicleCategory].name : '-'}}</view> <view wx:if="{{item.evalCarBase && item.evalCarBase.vehicleCategory}}" class="vehicle-type {{item.evalCarBase && item.evalCarBase.vehicleCategory ? vehicle_category[item.evalCarBase.vehicleCategory].class : ''}}">{{item.evalCarBase && item.evalCarBase.vehicleCategory ? vehicle_category[item.evalCarBase.vehicleCategory].name : '-'}}</view>
{{item.carTypeName}} <view class="car-series">{{item.evalCarBase && item.evalCarBase.carSeriesName ? item.evalCarBase.carSeriesName : ''}}</view>{{item.carTypeName}}
</view> </view>
<view class="vehicle-desc">{{item.licensePlate}}|{{filter.yearFormat(item.listingDate)}}年上牌|{{filter.mileageFormat(item.mileage)}}|{{item.transfersNumber > 0 ? '二' : '一'}}手车</view> <view class="vehicle-desc">{{item.licensePlate}}|{{filter.yearFormat(item.listingDate)}}年上牌|{{filter.mileageFormat(item.mileage)}}|{{item.transfersNumber > 0 ? '二' : '一'}}手车</view>
<view class="vehicle-price-box"> <view class="vehicle-price-box">
......
...@@ -77,16 +77,16 @@ const third_cell = [ ...@@ -77,16 +77,16 @@ const third_cell = [
name: '收购交车量', name: '收购交车量',
value: 'acquisitionDeliveryCount', value: 'acquisitionDeliveryCount',
rate: 'acquisitionDeliveryCountChainRatio', rate: 'acquisitionDeliveryCountChainRatio',
type: 1 type: 4
}, },
{ {
name: '成交量', name: '成交量',
value: 'transactionCount', value: 'transactionCount',
rate: 'transactionCountChainRatio', rate: 'transactionCountChainRatio',
type: 2 type: 5
}, },
{ {
name: '新车下定数', name: '新车下订数',
value: 'newCarOrderCount', value: 'newCarOrderCount',
rate: 'newCarOrderCountChainRatio', rate: 'newCarOrderCountChainRatio',
type: 3 type: 3
...@@ -95,16 +95,16 @@ const third_cell = [ ...@@ -95,16 +95,16 @@ const third_cell = [
const fourth_cell = [ const fourth_cell = [
{ {
name: '新车交定数', name: '新车交付数',
value: 'newCarDeliveryCount', value: 'newCarDeliveryCount',
rate: 'newCarDeliveryCountChainRatio', rate: 'newCarDeliveryCountChainRatio',
type: 1 type: 4
}, },
{ {
name: '总产值(万)', name: '总产值(万)',
value: 'totalOutputValue', value: 'totalOutputValue',
rate: 'totalOutputValueChainRatio', rate: 'totalOutputValueChainRatio',
type: 2, type: 6,
isPrice: true, isPrice: true,
haswan: true haswan: true
}, },
......
...@@ -222,6 +222,11 @@ lifetimes: { ...@@ -222,6 +222,11 @@ lifetimes: {
rightCurrent: false, rightCurrent: false,
leftCurrent: false leftCurrent: false
}); });
if (index == 3) {
this.setData({
show: true
})
}
this.initDate(timeTypeEnum[index]) this.initDate(timeTypeEnum[index])
}, },
selectMenu(event) { selectMenu(event) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!