浏览代码

变数箱滤清器

twt 3 周之前
父节点
当前提交
6735e78de6
共有 8 个文件被更改,包括 454 次插入2 次删除
  1. 7 0
      pages.json
  2. 27 1
      pages/index/byItem.vue
  3. 7 0
      pages/index/carGroup.vue
  4. 1 1
      pages/index/index.vue
  5. 412 0
      pages/index/transmissionOil.vue
  6. 二进制
      static/img/icon_glx.png
  7. 二进制
      static/img/icon_ys.png
  8. 二进制
      static/img/user1.png

+ 7 - 0
pages.json

@@ -109,6 +109,13 @@
 				"navigationBarTitleText": "雨刷",
 				"navigationStyle": "custom"
 			}
+		},
+		{
+			"path": "pages/index/transmissionOil",
+			"style": {
+				"navigationBarTitleText": "变速箱滤清器",
+				"navigationStyle": "custom"
+			}
 		}
 	],
 	/* "tabBar": {

+ 27 - 1
pages/index/byItem.vue

@@ -35,6 +35,22 @@
 				<image src="../../static/img/icon_biansuxiang.png" mode="" class="lineImg2"></image>
 			</view>
 		</view>
+	  </view>
+	  <view class="lineBox flex"  style="padding-top: 30rpx;">
+	  	<view class="line" @click="goTransmission">
+	  			<view class="lineTitle">变速箱滤清器</view>
+	  			<view class="lineEnglish">Transmission filter</view>
+	  			<view class="lineImgbox">
+	  				<image src="../../static/img/icon_glx.png" mode="" class="lineImg1"></image>
+	  			</view>
+	  		</view>
+	  		<view class="line" @click="goWiper">
+	  			<view class="lineTitle">雨刷</view>
+	  			<view class="lineEnglish">Wiper</view>
+	  			<view class="lineImgbox">
+	  				<image src="../../static/img/icon_ys.png" mode="" class="lineImg1"></image>
+	  			</view>
+	  		</view>
 	  </view>
 	   <!-- <picker-view v-if="visible" :indicator-style="indicatorStyle"  @change="bindChange" class="picker-view">
 		  <picker-view-column>
@@ -93,6 +109,16 @@
 			bindChange(){
 				
 			},
+			goWiper(){
+				uni.navigateTo({
+					url:'/pages/index/wiper?nLevelID='+this.optdata.nLevelID+'&logo='+this.optdata.logo+'&value='+this.optdata.value+'&id='+this.optdata.id+'&isVin='+this.optdata.isVin+'&vin='+this.optdata.vin
+				 })
+			},
+			goTransmission(){
+				 uni.navigateTo({
+					url:'/pages/index/transmissionOil?nLevelID='+this.optdata.nLevelID+'&logo='+this.optdata.logo+'&value='+this.optdata.value+'&id='+this.optdata.id+'&isVin='+this.optdata.isVin+'&vin='+this.optdata.vin
+				  })
+			},
 		   queryEnginemodel(){
 			   this.$http('matchingByOpen/queryEnginemodel', {
 			     ids:this.optdata.id,
@@ -207,7 +233,7 @@ padding: 0 24rpx;
 	line-height: 34rpx;padding-top: 10rpx;
 }
 .lineImg1{
-	width: 82rpx;height: 92rpx;
+	width: 82rpx;height: 96rpx;
 }
 .lineImgbox{
 	text-align: right;

+ 7 - 0
pages/index/carGroup.vue

@@ -54,14 +54,21 @@
 		},
 		methods: {
 		   goItem(e){
+			   this.optdata.nLevelID=e.carModelInfo.nLevelID
 			  if(this.type==1){
 				  this.optdata.value=e.value
+				  
 			  		this.queryEnginemodel(e)	
 			  }else if(this.type==2){
 				  uni.navigateTo({
 				  	url:'/pages/index/gearboxOil?nLevelID='+this.optdata.nLevelID+'&logo='+this.optdata.logo+'&value='+e.value+'&id='+e.id+'&isVin='+this.optdata.isVin+'&vin='+this.optdata.vin
 				  })
 			  }
+			  else if(this.type==3){
+				  uni.navigateTo({
+					url:'/pages/index/transmissionOil?nLevelID='+this.optdata.nLevelID+'&logo='+this.optdata.logo+'&value='+e.value+'&id='+e.id+'&isVin='+this.optdata.isVin+'&vin='+this.optdata.vin
+				  })
+			  }
 			  else if(this.type==4){
 				  uni.navigateTo({
 					url:'/pages/index/wiper?nLevelID='+this.optdata.nLevelID+'&logo='+this.optdata.logo+'&value='+e.value+'&id='+e.id+'&isVin='+this.optdata.isVin+'&vin='+this.optdata.vin

+ 1 - 1
pages/index/index.vue

@@ -113,7 +113,7 @@
 			 							<image class="productImg" src="/static/img/bsxy.png" mode=""></image>
 			 							<view class="productTxt" >变速箱油</view>
 			 						</view>
-			 						<view class="productLine">
+			 						<view class="productLine" @click="goCarModelType(3)">
 			 							<image class="productImg" src="/static/img/bsxglq.png" mode=""></image>
 			 							<view class="productTxt" >变速箱滤清器</view>
 			 						</view>

+ 412 - 0
pages/index/transmissionOil.vue

@@ -0,0 +1,412 @@
+<template>
+	<view class="content">
+		<homenav :iStatusBarHeight="iStatusBarHeight" :title="'机油'"></homenav>
+		<view class="box">
+			<view class="historyLine">
+				<view class="historyLogoBox">
+					<image :src="optdata.logo" mode="" class="historylinecarImg"></image>
+				</view>
+				<view>
+					<view class="historylinecar">{{optdata.value}}</view>
+					<view class="historyLineVin" v-if="optdata.isVin==1">
+						<!-- <view class="vinms">VIN</view> -->
+						<view class="vinNum">{{optdata.vin}}</view>
+							<view class="copyBox" @click="copyFn(optdata.vin)">复制</view>
+					</view>
+				</view>
+				 <view class="carFn" @click="gopz" style="margin-left: 20rpx;">车辆详情</view>
+			</view>
+			
+		</view>
+		<view class="cont">
+			
+			<view class="qiehuanBox">
+				<view class="qiehuanLeft">变速箱滤清器</view>
+				<!-- <view class="qiehuanRight" @click="goback">切换分类</view> -->
+			</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 class="jiyouBox" v-if="loading">
+				 <!-- <view class="modelRemarkBox">
+					<view class="modelRemarkLine" @click="modelRemarkTab(1)" :class="{activeMr:modelRemarkNum==1}">0-10万公里</view>
+					<view class="modelRemarkLine" @click="modelRemarkTab(2)" :class="{activeMr:modelRemarkNum==2}">10万公里以上</view>
+				</view> -->
+				<view class="jiyouTop">
+					<view class="jiyoutopTitle">变速箱滤清器</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)">
+						<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>
+						</view>
+						<view class="jyName">
+							<!-- <span class="best">最佳</span> -->
+							<span class="jyNametxt">{{item.name}}  </span>
+							| {{item.specificationModel}} | {{item.partsCode}} 
+						</view>
+						<view class="ruleList">
+						<!-- <view class="ruleListSpan">{{item.modelRemark}}</view> -->
+							<!-- <view class="ruleListSpan" v-for="(v,i) in item.ruleList"><span style="">{{v.version}}:</span> {{v.versionvalue}}</view> -->
+						</view>
+					</view>
+				</view>
+				<nodata v-if="MaintainPartList.length==0"></nodata>
+			</view>
+			
+		
+
+
+		</view>
+
+
+
+	</view>
+</template>
+
+<script>
+	import nodata from '../../components/nodata/nodata.vue'
+	import homenav from "../../components/homenav/nav.vue"
+	export default {
+		components: {
+            nodata,homenav
+		},
+		data() {
+			return {
+               optdata:'',
+			   MaintainPartList:[],
+			   oilusage:'',
+			   iStatusBarHeight:'',
+			   loading:false,
+			   spec:'',
+			   modelRemarkNum:1,
+			   oldMaintainPartList:'',
+			}
+		},
+		onLoad(opt) {
+			  console.log(opt)
+			   this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
+              this.optdata=opt;
+			  this.queryMaintainPartList()
+			  //this.queryOilInfoByGroupID()
+		},
+		methods: {
+			 modelRemarkTab(num){
+				 this.modelRemarkNum=num
+				 if(num == 1){
+					 var name='0-10万公里'
+					 var arr=[]
+					 this.oldMaintainPartList.forEach(item=>{
+						 var state=false
+						 item.ruleList.forEach(v=>{
+							 if(v.version == name){
+								 state=true
+							 }
+						 })
+						 if(state){
+						 	 arr.push(item)
+						 }
+					 })
+					
+					 this.MaintainPartList=arr
+					  //this.MaintainPartList= this.oldMaintainPartList.filter(item => item.modelRemark.includes(name))
+				 }else{
+					 var name='10万公里以上'
+					 var arr=[]
+					this.oldMaintainPartList.forEach(item=>{
+						 var state=false
+						 item.ruleList.forEach(v=>{
+							 if(v.version == name){
+								 state=true
+							 }
+						 })
+						 if(state){
+							 arr.push(item)
+						 }
+					})
+					 this.MaintainPartList=arr 
+					 //this.MaintainPartList= this.oldMaintainPartList.filter(item => item.modelRemark.includes(name))
+				 }
+			 },
+             queryMaintainPartList(){
+				 this.loading=false;
+				 uni.showLoading({ title: '加载中'});
+				 this.$http('partsByOpen/queryMaintainPartList', {
+				   groupId:this.optdata.id,
+				   componentCode:'007004',
+				   
+				  },'POST').then(res => {
+					  this.loading=true;
+				 	  uni.hideLoading();
+				 	  this.MaintainPartList=res.data
+					  this.oldMaintainPartList=res.data
+					 // this.modelRemarkTab(1)
+				 })
+			 },
+			 queryOilInfoByGroupID(){
+				 var that=this;
+				 this.$http('matchingByOpen/queryOilInfoByGroupID', {
+				  // mileage:'30000',
+				   groupId:this.optdata.id,
+				   
+				  },'POST').then(res => {
+				 		var arr = res.data
+						arr.forEach(item=>{
+							if(item[0]=='机油'){
+								that.oilusage=item[2]
+								that.spec=item[1]
+							}
+							
+						})
+						console.log(that.oilusage)
+				 })
+			 },
+			 goby(){
+				 uni.navigateTo({
+				 	url:'/pages/index/maintenance?nLevelID='+this.optdata.nLevelID+'&id='+this.optdata.id
+				 })
+			 },
+			 godetail(e){
+				 uni.navigateTo({
+				 	url:'/pages/index/goodsDetail?id='+e.id
+				 })
+			 },
+			 gopz(){
+				 uni.navigateTo({
+				 	url:'/pages/index/carConfiguration?nLevelID='+this.optdata.nLevelID
+				 })
+			 },
+			 goback(){
+				 uni.navigateBack()
+			 },
+			 copyFn(e){
+			 				uni.setClipboardData({
+			 				   data: e,
+			 				   success: function () {
+			 					 uni.showToast({
+			 					   title: '复制成功',
+			 					   icon: 'success',
+			 					   duration: 2000
+			 					 });
+			 				   },
+			 				   fail: function () {
+			 					 console.log('复制失败');
+			 					
+			 				   }
+			 				 });
+			 }
+		}
+	}
+</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;
+	}
+    .jyimgBox{
+		border: 1px solid #EEEEEE;    width: 302rpx;border-radius: 10rpx;
+	}
+	.box {
+		padding: 0 24rpx;
+		color: #ffffff;
+		background: linear-gradient( 132deg, #FF641E 0%, #FF4F00 100%), linear-gradient( 132deg, #FB771F 0%, #FF4828 100%);
+	}
+
+	.historylinecarImg{
+		width: 54rpx;
+		height: 54rpx;
+	}
+	.historyLogoBox{
+			display: flex;align-items: center;
+			padding-right: 14rpx;
+		}
+
+	.historylinecar {
+		font-weight: 500;
+		font-size: 26rpx;
+		color: #FFFFFF;
+		line-height: 46rpx;
+		width: 490rpx;
+	}
+
+	.historyLine {
+		 display: flex;
+		padding: 30rpx 0;
+		padding-bottom: 20rpx;
+		/* border-top: 1rpx solid #EEEEEE; */
+	}
+
+	.cont {
+		padding: 30rpx 24rpx;
+	}
+	.toplineImg{
+		width: 35rpx;
+		height: 34rpx;
+	}
+	.topName{
+		line-height: 34rpx;font-weight: 400;
+color: #FFFFFF;font-size: 28rpx;padding-left: 16rpx;
+	}
+	.topBox{
+		width: 702rpx;
+		height: 98rpx;
+		background: #FFFFFF linear-gradient(132deg, #FF8635 0%, #FF4828 100%);
+		border-radius: 16rpx;
+		display: flex;justify-content: center;
+	}
+	.topsx{
+		width: 2rpx;background: #ffffff;
+		margin-left: 85rpx;margin-right: 85rpx;
+		height: 54rpx;margin-top: 22rpx;
+	}
+	.topLine{
+		display: flex;padding-top: 34rpx;
+	}
+	.jiyouTop{
+		display: flex;justify-content: space-between;
+	}
+	.jiyouBox{
+		margin-top: 30rpx;border-radius: 16rpx;
+		background: #ffffff;padding: 30rpx;
+		padding-bottom: 10rpx;
+	}
+	.jiyoutopTitle{
+		font-weight: 500;font-size: 28rpx;
+		color: #1A1A1A;
+		line-height: 40rpx;
+	}
+	.jyzl{
+		font-weight: 400;line-height: 40rpx;
+		color: #666666;font-size: 24rpx;
+	}
+	.jyimg{
+		width: 302rpx;
+		height: 302rpx;
+		border-radius: 10rpx;
+	}
+	.jyline{
+		width: 302rpx;padding-top: 30rpx;
+	}
+	.jyName{
+		font-weight: 400;font-size: 22rpx;
+		color: #1A1A1A;
+		line-height:36rpx ;
+		overflow: hidden; 
+		text-overflow: ellipsis; 
+		display: -webkit-box; 
+		-webkit-box-orient: vertical; 
+		-webkit-line-clamp: 2;
+		padding-top: 10rpx;
+	}
+	.best{
+		color: #FF4F00;border-radius: 6rpx;
+		padding: 0 8rpx;border: 1px solid #FF4F00;
+	}
+	.jylineBox{
+		display: flex;justify-content: space-between;flex-wrap: wrap;
+	}
+	.historyLineVin{
+		display: flex;color: #ffffff;
+	}
+	.historyLineCar{
+		display: flex;justify-content: space-between;
+	}
+	.vinNum{
+		font-weight: 400;font-size: 22rpx;
+		line-height: 30rpx;
+	}
+	.vinms{
+		width: 38rpx;
+		height: 26rpx;
+		background: linear-gradient(224deg, #FFDA28 0%, #FFBF35 100%);
+		border-radius: 4rpx;
+		text-align: center;
+		line-height: 26rpx;
+		font-weight: 600;
+		color: #FFFFFF;
+		font-size: 18rpx;
+		margin-top: 2rpx;
+	}
+	.ruleListSpan{
+		font-weight: 400;
+		font-size: 22rpx;
+		color: #999999;
+		    line-height: 36rpx;
+			padding-right: 6rpx;
+	}
+	.modelRemarkBox{
+		display: flex;padding-bottom: 20rpx;
+	}
+	.modelRemarkLine{
+		background: #eee;
+		padding: 6rpx 20rpx;
+		border-radius: 6rpx;
+		margin-right: 30rpx;
+		font-size: 26rpx;
+	}
+	.activeMr{
+		background: #FFFFFF linear-gradient(132deg, #FF8635 0%, #FF4828 100%);
+		color: #FFF;
+	}
+	.qiehuanBox{
+		display: flex;
+		justify-content: space-between;
+		font-size: 28rpx;
+		    color: #1A1A1A;
+		/* 	padding-top: 20rpx; */
+	}
+	.qiehuanRight{
+		color: #1576FF;
+	}
+	.carFn{
+	background: #FFFFFF;
+	color: #FF4F00;
+	font-size: 24rpx;
+	height: 50rpx;
+	line-height: 49rpx;
+	width: 120rpx;
+	text-align: center;
+	border-radius: 10rpx;
+	margin-top: 10rpx;
+	margin-left: 20rpx;
+	}
+	.topBtnBox{
+		display: flex;
+		padding-bottom: 20rpx;
+		padding-left: 68rpx;
+	}
+	.copyBox{
+		    color: #FFFFFF;
+		    font-weight: 400;
+		    font-size: 22rpx;
+		    border: 1px solid #FFFFFF;
+		    padding: 0 10rpx;
+		    border-radius: 6rpx;
+		    margin-left: 20rpx;
+			height: 26rpx;
+			    line-height: 26rpx;
+	}
+</style>

二进制
static/img/icon_glx.png


二进制
static/img/icon_ys.png


二进制
static/img/user1.png