lilei 3 rokov pred
rodič
commit
65b147396a
1 zmenil súbory, kde vykonal 3 pridanie a 6 odobranie
  1. 3 6
      pages/vinInput/share.vue

+ 3 - 6
pages/vinInput/share.vue

@@ -16,14 +16,14 @@
 			</view>
 			<view class="carinfo flex flex_column align_center">
 				<view>
-					<u-image shape="circle" :src="carInfo.icon||'@/static/def_imgs.png'" width='150' height="150"></u-image>
+					<u-image shape="circle" :src="carInfo&&carInfo.icon||'@/static/def_imgs.png'" width='150' height="150"></u-image>
 				</view>
 				<view>VIN:{{vinNo}}</view>
-				<view>{{carInfo.text}}</view>
+				<view>{{carInfo&&carInfo.text||'暂无匹配车型'}}</view>
 			</view>
 			<view class="cbutton flex align_center justify_between">
 				<u-button @click="copyVin" v-if="vinNo" shape="circle">复制VIN</u-button>
-				<u-button @click="copyCar" v-if="carInfo.text" shape="circle">复制车型</u-button>
+				<u-button @click="copyCar" v-if="carInfo&&carInfo.text" shape="circle">复制车型</u-button>
 			</view>
 		</view>
 	</view>
@@ -76,9 +76,6 @@
 							showCancel: false,
 							confirmText: '知道了',
 							success() {
-								uni.reLaunch({
-									url: "/pages/index/index"
-								})
 							}
 						})
 					}