twt 1 рік тому
батько
коміт
5c1f8b8105
3 змінених файлів з 7 додано та 4 видалено
  1. 2 2
      pages/index/byItem.vue
  2. 1 1
      pages/index/goodsDetail.vue
  3. 4 1
      pages/index/suit.vue

+ 2 - 2
pages/index/byItem.vue

@@ -35,7 +35,7 @@
 			<view class="jiyouBox" v-if="loading">
 				<view class="title">前雨刷</view>
 				<view class="jylineBox">
-					<view class="jyline" v-for="(item,index) in MaintainPartList" @click="godetail(item)">
+					<view class="jyline" v-for="(item,index) in MaintainPartList" ><!-- @click="godetail(item)" -->
 						<view class="jyimgBox">
 							<image v-if="item.imgs.split(',')[0]" :src="item.imgs.split(',')[0]" mode="aspectFit" class="jyimg"></image>
 							<image v-else src="../../static/img/noimg.png" mode="aspectFit" class="jyimg"></image>
@@ -57,7 +57,7 @@
 		</view>
 		<view class="listBox" v-if="afterList.length!=0">
 			<view class="jiyouBox" v-if="loading">
-				<view class="title">前雨刷卡扣</view>
+				<view class="title">前雨刷安装视频</view>
 				<view class="jylineBox">
 					<view class="jyline" v-for="(item,index) in afterList" @click="godetail(item)">
 						<view class="jyimgBox">

+ 1 - 1
pages/index/goodsDetail.vue

@@ -12,7 +12,7 @@
 				
 			</swiper>
 	  	</view>
-		<view class="title-2">{{ info.categoryName }} {{ info.name }}</view>
+		<view class="title-2" v-if="loading">{{ info.categoryName }} {{ info.name }}</view>
 		<view class="name" v-if="loading">{{info.partsCode}} | {{info.factoryNumber}}</view>
 		<view style="height: 20rpx;background: #F4F5F7;"></view>
 		<view class="tdetail">

+ 4 - 1
pages/index/suit.vue

@@ -1,7 +1,7 @@
 <template>
 	<view class="mainCon">
 	  <homenav :iStatusBarHeight="iStatusBarHeight" :title="'适配车型'"></homenav>
-	  <view class="innerCon">
+	  <view class="innerCon" v-if="loading">
 	    <view class="detail-container">
 	      <h2 class="title-2">{{ detail.brand }} {{ detail.categoryName }} {{ detail.name }}</h2>
 	      <p class="info-2">{{ detail.partsCode }} | {{ detail.specificationModel }}</p>
@@ -42,6 +42,7 @@
 				current: 0,
 				list:'',
 				iStatusBarHeight:'',
+				loading:false,
 			}
 		},
 		onLoad(opt) {
@@ -55,9 +56,11 @@
 			},
            getDetail(){
 			 uni.showLoading({ title: '加载中'});
+			 this.loading=false
 			 this.$http('partsByOpen/queryCarModelGroupByPartsID', {
 			   partsId:this.id,
 			  },'POST').then(res => {
+				  this.loading=true;
 			 	uni.hideLoading();
 				 res.data.forEach(item=>{
 				   item.ck=false