twt 1 рік тому
батько
коміт
81370079d9
2 змінених файлів з 10 додано та 8 видалено
  1. 9 7
      pages/index/confirmRescue.vue
  2. 1 1
      pages/index/confirmYuyue.vue

+ 9 - 7
pages/index/confirmRescue.vue

@@ -59,7 +59,7 @@
 			  <view class="jyKK" :class="{jyKKActive:jykkNum==3}" @click="jykk(3)">其他</view>
 		  </view>
 	  </view>
-	  <view class="kkline" v-if="this.userInfo">
+<!-- 	  <view class="kkline" >
 		  <view class="kklineLeft">
 			<span class="stars">*</span> <span>车牌号</span>
 		  </view>
@@ -68,7 +68,7 @@
 			  <img src="../../static/img/big_rightArrow.png" alt="" class="rightJt">
 		  </view>
 	  </view>
-	  <view class="kkline" v-if="this.userInfo">
+	  <view class="kkline" >
 	  		  <view class="kklineLeft">
 	  			<span class="stars">*</span> <span>车型</span>
 	  		  </view>
@@ -77,14 +77,14 @@
 	  			  <img src="../../static/img/big_rightArrow.png" alt="" class="rightJt">
 	  		  </view>
 	  </view>
-	  <view class="kkline" v-if="this.userInfo">
+	  <view class="kkline" >
 	  		  <view class="kklineLeft">
 	  			<span class="stars">*</span><span>救援联系人</span>
 	  		  </view>
 	  		  <view class="kklineRight">
 				  <input type="text" placeholder="请输入" v-model="customerName">
 			  </view>
-	  </view>
+	  </view> -->
 	  <view class="kkline">
 	  		  <view class="kklineLeft">
 	  			<span class="stars">*</span><span>手机号</span>
@@ -145,8 +145,10 @@
 			if(this.opt.type==2){
 				this.calculateDistance()
 			}
-			console.log(opt)
+			
 			this.userInfo = this.$store.state.userInfo;
+			console.log("this.userInfo")
+			console.log(this.userInfo)
 			if(this.userInfo){
 				var customerInfo=uni.getStorageSync("wxOpenData").loginInfo.customerInfo;
 				this.customerName=customerInfo.customerName;
@@ -202,8 +204,8 @@
 				  mobilePhone: this.mobilePhone,
 				  //orderItem: this.yuyueData.map(item => item.ID).join(),
 				  shopID: this.opt.shopId,
-				  plateNumber: this.carInfo.plateNumber,
-				  carModel:this.carInfo.carModel,
+				  plateNumber: this.carInfo ? this.carInfo.plateNumber :'',
+				  carModel:this.carInfo?.carModel||'',
 				  hEndAddress:this.opt.endAddress,
 				  hStartAddress:this.opt.currentAddress,
 				  orderType:this.opt.orderType,

+ 1 - 1
pages/index/confirmYuyue.vue

@@ -150,7 +150,7 @@
 				this.$http('openreservation/saveOrderSheet', {
 				  billDate: this.billDate,
 				  comment: this.comment,
-				  carID: this.carInfo.id || '',
+				  carID: this.carInfo?.id || '',
 				  orderItem: this.yuyueData.map(item => item.ID).join(),
 				  shopId: this.yyshopInfo.id,
 				  unionId: this.ext.unionId,