twt před 3 měsíci
rodič
revize
4b4e9ddf2d

+ 17 - 0
pages/subPack/addCarCK.vue

@@ -127,6 +127,23 @@
 						/* this.vinboxtwoShow=true
 						this.vinSbList=res.data;
 						this.vincarModelInfo=this.vinSbList[0] */
+						var vinSbList=res.data
+						/* uni.redirectTo({
+							url:'../user/addCar/carModel'
+						}) */
+						var vin=this.vin
+						uni.setStorage({
+							key: 'carModelInfo',
+							data: vinSbList[0],
+							success: function () {
+								
+									uni.redirectTo({
+										url:'../user/addCar/addCar?vin='+vin
+									})
+								
+								 
+							}
+						}); 
 					}
 					
 				})

+ 50 - 2
pages/subPack/maintain.vue

@@ -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({

+ 4 - 0
pages/user/addCar/addCar.vue

@@ -202,6 +202,10 @@
 			this.type=opt.type
 			this.isEditCar = opt.isEditCar
 			this.carId = opt.id
+			var vin=opt.vin
+			if(vin){
+				this.vin=vin
+			}
 			if (this.isEditCar == 'true') {
 
 				this.getEditData()

+ 4 - 0
pages/user/myOrder/myOrder.vue

@@ -45,6 +45,10 @@
 				 </view>
 				<view class="itemName">{{item.CreateTime}}</view>
                 <view class="itemName" style="padding-top: 2rpx;padding-bottom: 0;">{{item.ShopName}}</view>
+				<view class="package" v-if="item.SheetType==7" style="display: flex;">
+					<view class="itemName" v-if="item.packageName">{{item.packageName}}</view>
+					<view class="itemName" v-if="item.packageQty" style="padding-left: 10rpx;">x{{item.packageQty}}</view>
+				</view>
 				<view class="bottom" v-if="item.SheetState == 1">
 					<view class="cancel" @click.stop="cancelBespeak(item)">取消订单</view>
 					<view class="defer"  @click.stop="pay(item)">立即支付</view>

+ 1 - 1
utils/request.js

@@ -9,7 +9,7 @@ import $store from '../store'
 const extConfig = uni.getExtConfigSync();		
 console.log(extConfig)
 const baseUrl=extConfig.url+'/'
-//const baseUrl='http://192.168.1.67:20187/'
+//const baseUrl='http://192.168.1.7:20187/'
 //const baseUrl='http://api.dms.66km.com.cn/'
 //const baseUrl='http://192.168.1.9:20187/' 
 //const baseUrl='https://store-api.qdbtl.cn/'