|
@@ -86,15 +86,18 @@
|
|
|
<view class="inputsBox">
|
|
|
<view class="searchInputBox" @click="goSearch">
|
|
|
<image src="../../static/img/icon_search.png" mode="" class="simg"></image>
|
|
|
- <input type="text" placeholder="输入17位VIN查询" placeholder-class="ip" class="ssinput">
|
|
|
+ <input type="text" placeholder="请输入车辆品牌、车系或VIN码" placeholder-class="ip" class="ssinput">
|
|
|
</view>
|
|
|
<view class="inputsBtn">查询</view>
|
|
|
</view>
|
|
|
- <view class="historyBox">
|
|
|
- <view class="historyLeft">
|
|
|
+ <view class="historyBox" >
|
|
|
+ <view class="historyLeft" >
|
|
|
<view class="historyLeftTxt">历史查询:</view>
|
|
|
- <view class="historyLeftNum" @click="gocarDetail" v-if="historyvin">{{historyvin}} </view>
|
|
|
- <view class="historyLeftNum" v-else>暂无</view>
|
|
|
+ <view v-if="historyvinLoding">
|
|
|
+ <view class="historyLeftNum" @click="gocarDetail" v-if="historyvin">{{historyvin}} </view>
|
|
|
+ <view class="historyLeftNum" v-else>暂无</view>
|
|
|
+ </view>
|
|
|
+
|
|
|
</view>
|
|
|
<view class="historyMore" @click="gohistory">更多
|
|
|
<image src="../../static/img/lanjt.png" mode="" class="lanjt"></image>
|
|
@@ -172,6 +175,7 @@
|
|
|
historyvin:'',
|
|
|
tabIndex:1,
|
|
|
byItem:'',
|
|
|
+ historyvinLoding:false,
|
|
|
}
|
|
|
},
|
|
|
onLoad() {
|
|
@@ -248,11 +252,12 @@
|
|
|
})
|
|
|
},
|
|
|
queryHistory(){
|
|
|
+ this.historyvinLoding=false
|
|
|
this.$http2('queryHistory', {
|
|
|
|
|
|
|
|
|
},'POST').then(res => {
|
|
|
-
|
|
|
+
|
|
|
this.historyList=res.data
|
|
|
this.historyList.forEach(item=>{
|
|
|
if(item.vin){
|
|
@@ -263,7 +268,7 @@
|
|
|
|
|
|
}
|
|
|
})
|
|
|
-
|
|
|
+ this.historyvinLoding=true
|
|
|
var bb= this.iStatusBarHeight + 44 + 'px';
|
|
|
var cc='520rpx'
|
|
|
if(this.historyList.length==0){
|