|
@@ -28,12 +28,16 @@
|
|
|
<image src="../../static/img/icon_arrow.png" mode="" class="jiantouimg"></image>
|
|
|
</view>
|
|
|
<view class="historyLine" v-for="(item,index) in historyList" v-if="index<3" @click="gocarDetail(item)">
|
|
|
- <image :src="item.logo" mode="" class="historylinecarImg"></image>
|
|
|
+ <view class="historyLogoBox">
|
|
|
+ <image :src="item.logo" mode="" class="historylinecarImg"></image>
|
|
|
+ </view>
|
|
|
+
|
|
|
<view class="historylinecar">{{item.title}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <carModel ref="carModelView" :iStatusBarHeight="iStatusBarHeight"></carModel>
|
|
|
+ <!-- <view :style="{height: aaa}" class="aaaaa"></view> -->
|
|
|
+ <carModel ref="carModelView" :iStatusBarHeight="iStatusBarHeight" :svHeight="aaa"></carModel>
|
|
|
|
|
|
<!-- 选择车型 -->
|
|
|
<view class="ckcarBox" v-if="ckCarShow" >
|
|
@@ -70,6 +74,7 @@
|
|
|
historyList:[],
|
|
|
iStatusBarHeight:'',
|
|
|
openId:'',
|
|
|
+ aaa:'',
|
|
|
}
|
|
|
},
|
|
|
onLoad() {
|
|
@@ -79,6 +84,10 @@
|
|
|
setTimeout(function(){
|
|
|
that.$refs.carModelView.getdata();
|
|
|
},500)
|
|
|
+ var bb= this.iStatusBarHeight + 44 + 'px';
|
|
|
+
|
|
|
+ var cc= '520rpx'
|
|
|
+ this.aaa= `calc(100vh - ${bb} - ${cc})`
|
|
|
},
|
|
|
onShow() {
|
|
|
|
|
@@ -121,7 +130,20 @@
|
|
|
|
|
|
},'POST').then(res => {
|
|
|
|
|
|
- this.historyList=res.data
|
|
|
+ this.historyList=res.data
|
|
|
+ var bb= this.iStatusBarHeight + 44 + 'px';
|
|
|
+ var cc='520rpx'
|
|
|
+ if(this.historyList.length==0){
|
|
|
+ cc= '240rpx'
|
|
|
+ }else
|
|
|
+ if(this.historyList.length==1){
|
|
|
+ cc= '352rpx'
|
|
|
+ }else
|
|
|
+ if(this.historyList.length==2){
|
|
|
+ cc= '418rpx'
|
|
|
+ }
|
|
|
+
|
|
|
+ this.aaa= `calc(100vh - ${bb} - ${cc})`
|
|
|
})
|
|
|
},
|
|
|
gocarDetail(e){
|
|
@@ -223,6 +245,10 @@
|
|
|
</script>
|
|
|
|
|
|
<style scoped>
|
|
|
+.aaaaa{
|
|
|
+ width: 500rpx;
|
|
|
+ background-color: #1A1A1A;
|
|
|
+}
|
|
|
.ckcarJtimg{
|
|
|
width: 26rpx;height: 26rpx;margin-top: 4rpx;
|
|
|
}
|
|
@@ -263,9 +289,9 @@
|
|
|
min-height: 100vh;background: #F4F5F7;
|
|
|
}
|
|
|
.top{
|
|
|
- width: 100%;height: 400rpx;
|
|
|
+ width: 100%;height: 385rpx;
|
|
|
background: url('http://dmsphoto.66km.com.cn/thFiles/DE1573A0-1C08-4243-8313-C0BA094406D0.png') no-repeat;
|
|
|
- background-size: 100%;
|
|
|
+ background-size: 100% 100%;
|
|
|
}
|
|
|
.topNavBox{
|
|
|
background: #D53533;
|
|
@@ -290,7 +316,7 @@
|
|
|
width: 44rpx;height: 44rpx;
|
|
|
}
|
|
|
.searchBox{
|
|
|
- display: flex;padding: 30rpx 24rpx;
|
|
|
+ display: flex;padding: 20rpx 24rpx;
|
|
|
justify-content: space-between;
|
|
|
}
|
|
|
.ssinput{
|
|
@@ -308,12 +334,12 @@
|
|
|
text-align: center;
|
|
|
}
|
|
|
.historybox{
|
|
|
- padding: 0 24rpx; margin-top: -85rpx;
|
|
|
+ padding: 0 24rpx; margin-top: -88rpx;
|
|
|
}
|
|
|
.history{
|
|
|
background: #FFFFFF;
|
|
|
border-radius: 16rpx;
|
|
|
- padding: 30rpx;padding-bottom: 0;
|
|
|
+ padding: 20rpx;padding-bottom: 0;
|
|
|
}
|
|
|
.jiantouimg{
|
|
|
width: 26rpx;height: 26rpx;margin-top: 7rpx;
|
|
@@ -327,8 +353,8 @@
|
|
|
color: #1A1A1A;line-height: 40rpx;
|
|
|
}
|
|
|
.historylinecarImg{
|
|
|
- width: 46rpx;
|
|
|
- height: 46rpx;
|
|
|
+ width: 54rpx;
|
|
|
+ height: 54rpx;
|
|
|
}
|
|
|
.historylinecar{
|
|
|
font-weight: 400;font-size: 26rpx;
|
|
@@ -337,7 +363,7 @@
|
|
|
}
|
|
|
.historyLine{
|
|
|
display: flex;justify-content: space-between;
|
|
|
- padding: 30rpx 0;border-top: 1rpx solid #EEEEEE;
|
|
|
+ padding: 15rpx 0;border-top: 1rpx solid #EEEEEE;
|
|
|
}
|
|
|
.indexnav{
|
|
|
height: 44px;
|
|
@@ -346,4 +372,7 @@
|
|
|
font-size: 36rpx;
|
|
|
color: #FFFFFF;
|
|
|
}
|
|
|
+ .historyLogoBox{
|
|
|
+ display: flex;align-items: center;
|
|
|
+ }
|
|
|
</style>
|