|
@@ -12,9 +12,11 @@
|
|
|
</view>
|
|
|
<view class="ibRight">
|
|
|
<image src="http://dmsphoto.66km.com.cn/thFiles/403AC6C5-CD4B-4D7A-B0D6-BA997D0AB9CE.png" mode="" class="glIcon"></image>
|
|
|
- <view class="glInput" v-if="milage">{{milage}}km</view>
|
|
|
- <view class="glInput" v-else>暂无填写</view>
|
|
|
+ <!-- <view class="glInput" v-if="milage">{{milage}}km</view>
|
|
|
+ <view class="glInput" v-else>暂无填写</view> -->
|
|
|
<!-- <input type="text" v-else placeholder="暂无填写" class="glInput"/> -->
|
|
|
+ <input type="text" @blur="milageBlur" v-if="carInfo.milage" v-model="carInfo.milage" class="glInput"/>
|
|
|
+ <input type="text" @blur="milageBlur" v-model="carInfo.milage" v-else placeholder="暂无填写" class="glInput"/>
|
|
|
<image src="../../static/img2/xia.png" mode="" class="xiaIcon"></image>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -229,6 +231,9 @@
|
|
|
})
|
|
|
this.carInfo=this.$store.state.carInfo;
|
|
|
this.milage=this.carInfo.milage
|
|
|
+ if(this.carInfo.milage==0){
|
|
|
+ this.carInfo.milage=''
|
|
|
+ }
|
|
|
this.maintainProjectID=opt.maintainProjectID
|
|
|
if(this.carInfo){
|
|
|
this.getRecommend()
|
|
@@ -254,10 +259,53 @@
|
|
|
if(car){
|
|
|
this.carInfo=car;
|
|
|
this.milage=this.carInfo.milage
|
|
|
+ if(this.carInfo.milage==0){
|
|
|
+ this.carInfo.milage=''
|
|
|
+ }
|
|
|
this.getRecommend()
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ milageBlur(){
|
|
|
+
|
|
|
+ var cardata = {
|
|
|
+ plateNumber:this.carInfo.plateNumber,
|
|
|
+ milage: this.carInfo.milage,
|
|
|
+ brand: this.carInfo.brand,
|
|
|
+ displacement: this.carInfo.displacement,
|
|
|
+ series: this.carInfo.carSeries,
|
|
|
+ annualmoney: this.carInfo.productionYear,
|
|
|
+ carModel: this.carInfo.carModel,
|
|
|
+ saleName:this.carInfo.saleName,
|
|
|
+ transmissionType: this.carInfo.transmissionType,
|
|
|
+ model: this.carInfo.model,
|
|
|
+ nLevelID:this.carInfo.nLevelID,
|
|
|
+ engineType: this.carInfo.engineType,
|
|
|
+ brandLogo: this.carInfo.brandLogo,
|
|
|
+ buyDate: this.carInfo.buyDate,
|
|
|
+ guidePrice: this.carInfo.guidePrice,
|
|
|
+ vIN: this.carInfo.vIN,
|
|
|
+ id: this.carInfo.id,
|
|
|
+ }
|
|
|
+
|
|
|
+ this.$http('opencarInfoOwner/addCarOwner', cardata, 'POST').then(res => {
|
|
|
+ if (res.code == 0) {
|
|
|
+ uni.showToast({
|
|
|
+ title: '修改成功',
|
|
|
+ icon: 'none',
|
|
|
+ duration: 3000
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
+ } else {
|
|
|
+ uni.showToast({
|
|
|
+ title: res.msg,
|
|
|
+ icon: 'none',
|
|
|
+ duration: 3000
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
information(){
|
|
|
console.log('车辆信息--',this.carInfo);
|
|
|
uni.navigateTo({
|