Browse Source

原厂配件

twt 11 months ago
parent
commit
54299eccac
1 changed files with 30 additions and 2 deletions
  1. 30 2
      pages/index/engineOil.vue

+ 30 - 2
pages/index/engineOil.vue

@@ -30,7 +30,7 @@
 			<view class="jiyouBox" v-if="loading">
 				<view class="jiyouTop">
 					<view class="jiyoutopTitle">机油推荐</view>
-					<view class="jyzl">机油加注量:<span style="color: #FF4F00;">{{oilusage}}</span> </view>
+					<!-- <view class="jyzl">机油加注量:<span style="color: #FF4F00;">{{oilusage}}</span> </view> -->
 				</view>
 				<view class="jylineBox">
 					<view class="jyline" v-for="(item,index) in MaintainPartList" @click="godetail(item)">
@@ -40,7 +40,8 @@
 						</view>
 						<view class="jyName">
 							<!-- <span class="best">最佳</span> -->
-							<span class="jyNametxt">{{item.name}} | {{item.specificationModel}} | {{item.partsCode}} </span>
+							<span class="jyNametxt">{{item.name}} | {{item.specificationModel}} </span>
+							<!-- | {{item.partsCode}}  -->
 						</view>
 						<view class="ruleList">
 							<view class="ruleListSpan" v-for="(v,i) in item.ruleList"><span style="">{{v.version}}:</span> {{v.versionvalue}}</view>
@@ -49,6 +50,20 @@
 				</view>
 				<nodata v-if="MaintainPartList.length==0"></nodata>
 			</view>
+			
+			<view class="jiyouBox"  v-if="loading">
+				<view class="jiyouTop">
+					<view class="jiyoutopTitle">原厂售后推荐</view>
+				</view>
+				<view class="salesLine">
+					<view class="salesLeft">建议加注量</view>
+					<view class="salesRight">{{oilusage}}</view>
+				</view>
+				<view class="salesLine">
+					<view class="salesLeft">规格型号</view>
+					<view class="salesRight">{{spec}}</view>
+				</view>
+			</view>
 
 
 		</view>
@@ -72,6 +87,7 @@
 			   oilusage:'',
 			   iStatusBarHeight:'',
 			   loading:false,
+			   spec:'',
 			}
 		},
 		onLoad(opt) {
@@ -106,7 +122,9 @@
 						arr.forEach(item=>{
 							if(item[0]=='机油'){
 								that.oilusage=item[2]
+								that.spec=item[1]
 							}
+							
 						})
 						console.log(that.oilusage)
 				 })
@@ -131,6 +149,16 @@
 </script>
 
 <style scoped>
+.salesLine{
+	display: flex;
+	font-size: 24rpx;
+	line-height: 30rpx;
+	padding: 20rpx 0;
+}
+.salesLeft{
+	width: 200rpx;
+	color: #999999;
+}
 	.content {
 		min-height: 100vh;
 		background: #F4F5F7;