guo лет назад: 2
Родитель
Сommit
6968f6ad4e

+ 2 - 2
pages/mobile/OemDetail.vue

@@ -432,13 +432,13 @@
 	}
 
 	.left {
-		width: 40%;
+		width: 20%;
 		color: #999999;
 		white-space: nowrap;
 	}
 
 	.right {
-		width: 60%;
+		width: 80%;
 		color: #333333;
 	}
 

+ 2 - 2
pages/mobile/homePage.vue

@@ -165,7 +165,7 @@
 	}
 	.btnBox{
 		padding: 30rpx 24rpx;
-		width: 100%;
+		
 		height: 92rpx;
 		position: relative;
 	}
@@ -184,7 +184,7 @@
 		text-align: center;
 		position: absolute;
 		top: 38rpx;
-		right: 80rpx;
+		right: 32rpx;
 	}
 	.centerBox{
 		margin-top: 140rpx;

+ 8 - 0
pages/mobile/index.vue

@@ -39,6 +39,14 @@
 			},
 			inputconfirm(){
 				console.log(this.vin)
+				if (this.vin.length != 17) {
+					uni.showToast({
+						title: '请输入正确VIN',
+						icon: 'none',
+						duration: 3000
+					});
+					return;
+				}
 				this.gogroup()
 			},
             gogroup(){

+ 9 - 4
pages/mobile/modelThree.vue

@@ -14,7 +14,7 @@
 				</swiper-item>
 				
 			</swiper>
-			<image v-else class="swiper" src="../../static/img/barner_noimg.png" mode=""></image>
+			<image v-if="loading" class="swiper" src="../../static/img/barner_noimg.png" mode=""></image>
 		</view>
 		<view style="height: 20rpx;background: #F4F5F7;"></view>
 		<view class="mainBox">
@@ -25,7 +25,7 @@
 					<view class="wei">位置{{item.refernum}}</view>
 					<view class="yong">用量{{item.qty}}</view>
 				</view>
-				<view class="name">{{item.description}}</view>
+				<view class="name" v-html="item.description"></view>
 				<view class="comment">{{item.remark}}</view>
 				<view class="forLine">
 					<view @click="goOemDetail(item)" class="code">{{item.extened.join()}}</view>
@@ -59,7 +59,8 @@
 				son_param: '',
 				son_access_time: '',
 				page: 1,
-				total_page: 1
+				total_page: 1,
+				loading:false,
 			}
 		},
 		onLoad(opt) {
@@ -107,7 +108,11 @@
 					if (list.length != 0) {
 						this.itemList = this.itemList.concat(list)
 					}
-					console.log('itemList++', this.itemList);
+					console.log('itemList++', this.itemList);
+					
+					if (this.bannerArr.length == 0) {
+						this.loading = true;
+					}
 				});
 			},
 			goOemDetail(item) {

+ 6 - 2
pages/mobile/vinDetail.vue

@@ -15,7 +15,7 @@
 				</swiper-item>
 				
 			</swiper>
-			<image v-else class="swiper" src="../../static/img/barner_noimg.png" mode=""></image>
+			<image v-if="loading" class="swiper" src="../../static/img/barner_noimg.png" mode=""></image>
 			
 		</view>
 		<view style="height: 20rpx;background: #F4F5F7;"></view>
@@ -45,7 +45,7 @@
 					<view class="wei">位置{{item.refernum}}</view>
 					<view class="yong">用量{{item.qty}}</view>
 				</view>
-				<view class="name">{{item.description}}</view>
+				<view class="name" v-html="item.description"></view>
 				<view class="comment">{{item.remark}}</view>
 				<view class="forLine">
 					<view @click="goOemDetail(item)" class="code">{{item.partnum.join()}}</view>
@@ -76,6 +76,7 @@
 				page: 1,
 				total_page: 1,
 				epc_id:'',
+				loading:false,
 			}
 		},
 		onLoad(opt) {
@@ -135,6 +136,9 @@
 					this.itemList = res.data.result.list.rows;
 					this.bannerArr = res.data.result.list.image_info;
 					console.log('itemList++', this.itemList);
+					if (this.bannerArr.length == 0) {
+						this.loading = true;
+					}
 				});
 			},