|
@@ -9,12 +9,12 @@
|
|
<view>
|
|
<view>
|
|
<view class="historylinecar">{{optdata.value}}</view>
|
|
<view class="historylinecar">{{optdata.value}}</view>
|
|
<view class="historyLineVin" v-if="optdata.isVin==1"><!-- -->
|
|
<view class="historyLineVin" v-if="optdata.isVin==1"><!-- -->
|
|
- <view style="display: flex;">
|
|
|
|
|
|
+ <view style="display: flex; padding-top: 16rpx;">
|
|
<view class="vinms">VIN</view>
|
|
<view class="vinms">VIN</view>
|
|
<view class="vinNum">{{optdata.vin}}</view>
|
|
<view class="vinNum">{{optdata.vin}}</view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
- <view class="copyVin">复制</view>
|
|
|
|
|
|
+ <view class="copyVin" @click="copyFn(optdata.vin)">复制</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
@@ -36,12 +36,14 @@
|
|
<view class="topName">车辆配置</view>
|
|
<view class="topName">车辆配置</view>
|
|
</view>
|
|
</view>
|
|
</view> -->
|
|
</view> -->
|
|
- <view class="goosLeft">
|
|
|
|
|
|
+ <!-- <view class="goosLeft">
|
|
<view class="goodsLefeLine" :class="{glActive:leftIndex==index}"
|
|
<view class="goodsLefeLine" :class="{glActive:leftIndex==index}"
|
|
@click="leftFn(index,item)" v-for="(item,index) in leftData">
|
|
@click="leftFn(index,item)" v-for="(item,index) in leftData">
|
|
|
|
+ <view class="leftKK" v-if="leftIndex==index"></view>
|
|
|
|
+ <view v-else class="leftKK2"></view>
|
|
<view class="glName">{{item.name}}</view>
|
|
<view class="glName">{{item.name}}</view>
|
|
</view>
|
|
</view>
|
|
- </view>
|
|
|
|
|
|
+ </view> -->
|
|
<view class="jiyouBox">
|
|
<view class="jiyouBox">
|
|
|
|
|
|
<view class="brandBox">
|
|
<view class="brandBox">
|
|
@@ -51,9 +53,9 @@
|
|
<view class="brandBtn" :class="{brandActive:type==4}" @click="ckBrand(4)">威斯康</view> -->
|
|
<view class="brandBtn" :class="{brandActive:type==4}" @click="ckBrand(4)">威斯康</view> -->
|
|
<view class="brandBtn" v-for="(item,index) in brandList" :class="{brandActive:item.ck}" @click="ckBrand(item)">{{item.name}}</view>
|
|
<view class="brandBtn" v-for="(item,index) in brandList" :class="{brandActive:item.ck}" @click="ckBrand(item)">{{item.name}}</view>
|
|
</view>
|
|
</view>
|
|
- <view class="ckName">
|
|
|
|
|
|
+ <!-- <view class="ckName">
|
|
{{componentName}}
|
|
{{componentName}}
|
|
- </view>
|
|
|
|
|
|
+ </view> -->
|
|
<view class="jylineBox" v-if="loading">
|
|
<view class="jylineBox" v-if="loading">
|
|
<view class="jyline" v-for="(item,index) in MaintainPartList" @click="godetail(item)"><!-- MaintainPartList -->
|
|
<view class="jyline" v-for="(item,index) in MaintainPartList" @click="godetail(item)"><!-- MaintainPartList -->
|
|
<view class="jyimgBox">
|
|
<view class="jyimgBox">
|
|
@@ -62,7 +64,10 @@
|
|
</view>
|
|
</view>
|
|
<view class="lineRgiht">
|
|
<view class="lineRgiht">
|
|
<view class="goodsName">{{item.name}}| {{item.partsCode}}</view>
|
|
<view class="goodsName">{{item.name}}| {{item.partsCode}}</view>
|
|
- <view class="goodsMs">{{item.specificationModel}} </view>
|
|
|
|
|
|
+ <view class="goodsMs">附属型号:{{item.factoryNumber}} </view>
|
|
|
|
+ <view class="goodsMs">电池型号:{{item.specificationModel}} </view>
|
|
|
|
+ <view class="goodsMs">系列: <span>{{item.GeneralpurposeName}}</span> <span class="englishname" v-if="item.englishname">{{item.englishname}}</span> </view>
|
|
|
|
+ <view class="goodsMs">适用车型:{{item.carmodelremark}} </view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
</view>
|
|
</view>
|
|
@@ -117,12 +122,14 @@
|
|
{name:'变速箱滤清器',componentCode:'007004'},
|
|
{name:'变速箱滤清器',componentCode:'007004'},
|
|
{name:'雨刷',componentCode:'006004'},
|
|
{name:'雨刷',componentCode:'006004'},
|
|
],
|
|
],
|
|
- componentCode:'015001',
|
|
|
|
|
|
+ // componentCode:'015001',
|
|
|
|
+ componentCode:'',
|
|
componentName:'机油',
|
|
componentName:'机油',
|
|
brandList:[
|
|
brandList:[
|
|
- {name:'欧洲维修',id:'69c6828c-8994-4d2e-8c25-a89c05e13b18',ck:false},
|
|
|
|
- {name:'美孚',id:'05897c44-8852-449a-8165-ba7a8675a16c',ck:false},
|
|
|
|
- {name:'嘉实多',id:'2f0b65aa-4945-4962-b794-7e2cd35685a8',ck:false},
|
|
|
|
|
|
+ {name:'三冠',id:'fc89e243-3358-4037-80ed-67c5d8c35085',ck:false},
|
|
|
|
+ {name:'威斯康',id:'ee21a0d0-f181-42be-990b-73eb692c196d',ck:false},
|
|
|
|
+ {name:'阿诺德',id:'a136f3b8-0586-4fe5-ac49-389aa4cc990b',ck:false},
|
|
|
|
+ {name:'鸿雁',id:'8fa5f395-86c7-4488-b4ea-ac058c7ae330',ck:false},
|
|
],
|
|
],
|
|
brandId:'',
|
|
brandId:'',
|
|
}
|
|
}
|
|
@@ -131,6 +138,17 @@
|
|
console.log(opt)
|
|
console.log(opt)
|
|
this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
|
|
this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
|
|
this.optdata=opt;
|
|
this.optdata=opt;
|
|
|
|
+ if(opt.scarid){
|
|
|
|
+ this.scarid=opt.scarid;
|
|
|
|
+ this.queryCarModelGroupInfo()
|
|
|
|
+ }else{
|
|
|
|
+ if(opt.isVin==1){
|
|
|
|
+ this.isVin=1;
|
|
|
|
+ this.vin=opt.vin
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ this.saveQueryHistory()
|
|
|
|
+ }
|
|
if(this.optdata.type){
|
|
if(this.optdata.type){
|
|
this.type=this.optdata.type
|
|
this.type=this.optdata.type
|
|
}
|
|
}
|
|
@@ -138,6 +156,36 @@
|
|
this.queryOilInfoByGroupID()
|
|
this.queryOilInfoByGroupID()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ queryCarModelGroupInfo(){
|
|
|
|
+ uni.showLoading({ title: '加载中'});
|
|
|
|
+ this.$http('matchingByOpen/queryCarModelGroupInfo', {
|
|
|
|
+ id:this.scarid,
|
|
|
|
+
|
|
|
|
+ },'POST').then(res => {
|
|
|
|
+ uni.hideLoading();
|
|
|
|
+ var data={
|
|
|
|
+ value:res.data.value,
|
|
|
|
+ id:res.data.id,
|
|
|
|
+ nLevelID:res.data.carModelInfo.nLevelID,
|
|
|
|
+ logo:res.data.carModelInfo.logo,
|
|
|
|
+ }
|
|
|
|
+ this.optdata=data;
|
|
|
|
+ this.saveQueryHistory()
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ saveQueryHistory(){
|
|
|
|
+ this.$http2('saveQueryHistory', {
|
|
|
|
+ nLevelID:this.optdata.nLevelID,
|
|
|
|
+ logo:this.optdata.logo,
|
|
|
|
+ title:this.optdata.value,
|
|
|
|
+ groupId:this.optdata.id,
|
|
|
|
+ isVin:this.isVin,
|
|
|
|
+ vin:this.vin
|
|
|
|
+ },'POST').then(res => {
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ })
|
|
|
|
+ },
|
|
leftFn(index,item){
|
|
leftFn(index,item){
|
|
this.leftIndex=index
|
|
this.leftIndex=index
|
|
this.componentCode=item.componentCode
|
|
this.componentCode=item.componentCode
|
|
@@ -255,6 +303,22 @@
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
url:'/pages/index/carConfiguration?nLevelID='+this.optdata.nLevelID
|
|
url:'/pages/index/carConfiguration?nLevelID='+this.optdata.nLevelID
|
|
})
|
|
})
|
|
|
|
+ },
|
|
|
|
+ copyFn(e){
|
|
|
|
+ uni.setClipboardData({
|
|
|
|
+ data: e,
|
|
|
|
+ success: function () {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: '复制成功',
|
|
|
|
+ icon: 'success',
|
|
|
|
+ duration: 2000
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ fail: function () {
|
|
|
|
+ console.log('复制失败');
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ });
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -263,6 +327,7 @@
|
|
<style scoped>
|
|
<style scoped>
|
|
.goodscont{
|
|
.goodscont{
|
|
display: flex;margin-top: 20rpx;
|
|
display: flex;margin-top: 20rpx;
|
|
|
|
+ min-height: calc(100vh - 450rpx);
|
|
}
|
|
}
|
|
.salesLine{
|
|
.salesLine{
|
|
display: flex;
|
|
display: flex;
|
|
@@ -276,11 +341,13 @@
|
|
}
|
|
}
|
|
.brandBox {
|
|
.brandBox {
|
|
padding: 30rpx 20rpx;
|
|
padding: 30rpx 20rpx;
|
|
|
|
+ padding-bottom: 24rpx;
|
|
}
|
|
}
|
|
.goosLeft{
|
|
.goosLeft{
|
|
- width: 160rpx;
|
|
|
|
|
|
+ width: 190rpx;
|
|
font-size: 26rpx;
|
|
font-size: 26rpx;
|
|
color: #3C3C3C;
|
|
color: #3C3C3C;
|
|
|
|
+ background: #F6F6F6;
|
|
}
|
|
}
|
|
.salesLeft{
|
|
.salesLeft{
|
|
width: 200rpx;
|
|
width: 200rpx;
|
|
@@ -357,7 +424,7 @@ color: #FFFFFF;font-size: 28rpx;padding-left: 16rpx;
|
|
/* margin-top: 30rpx; */
|
|
/* margin-top: 30rpx; */
|
|
background: #ffffff;
|
|
background: #ffffff;
|
|
/* padding: 30rpx; */
|
|
/* padding: 30rpx; */
|
|
- width: 590rpx;
|
|
|
|
|
|
+ /* width: 560rpx; */
|
|
}
|
|
}
|
|
.jiyoutopTitle{
|
|
.jiyoutopTitle{
|
|
font-weight: 500;font-size: 28rpx;
|
|
font-weight: 500;font-size: 28rpx;
|
|
@@ -378,6 +445,9 @@ color: #FFFFFF;font-size: 28rpx;padding-left: 16rpx;
|
|
display: flex;
|
|
display: flex;
|
|
border-bottom: 1px solid #EEEEEE;
|
|
border-bottom: 1px solid #EEEEEE;
|
|
}
|
|
}
|
|
|
|
+ .jyline:last-child{
|
|
|
|
+ border: none;
|
|
|
|
+ }
|
|
.jyName{
|
|
.jyName{
|
|
font-weight: 400;font-size: 22rpx;
|
|
font-weight: 400;font-size: 22rpx;
|
|
color: #1A1A1A;
|
|
color: #1A1A1A;
|
|
@@ -403,7 +473,7 @@ color: #FFFFFF;font-size: 28rpx;padding-left: 16rpx;
|
|
display: flex;justify-content: space-between;
|
|
display: flex;justify-content: space-between;
|
|
}
|
|
}
|
|
.vinNum{
|
|
.vinNum{
|
|
- font-weight: 400;font-size: 22rpx;padding-left: 10rpx;
|
|
|
|
|
|
+ font-weight: 400;font-size: 26rpx;padding-left: 10rpx;
|
|
color: #999999;line-height: 30rpx;
|
|
color: #999999;line-height: 30rpx;
|
|
}
|
|
}
|
|
.vinms{
|
|
.vinms{
|
|
@@ -446,23 +516,24 @@ color: #FFFFFF;font-size: 28rpx;padding-left: 16rpx;
|
|
.topBtn{
|
|
.topBtn{
|
|
font-weight: 400;
|
|
font-weight: 400;
|
|
font-size: 26rpx;
|
|
font-size: 26rpx;
|
|
- color: #F19D01;
|
|
|
|
|
|
+ color: #254A90;
|
|
width: 180rpx;
|
|
width: 180rpx;
|
|
height: 56rpx;
|
|
height: 56rpx;
|
|
border-radius: 28rpx;
|
|
border-radius: 28rpx;
|
|
- border: 1px solid #F19D01;
|
|
|
|
|
|
+ border: 1px solid #254A90;
|
|
line-height: 56rpx;
|
|
line-height: 56rpx;
|
|
text-align: center;
|
|
text-align: center;
|
|
margin-right: 30rpx;
|
|
margin-right: 30rpx;
|
|
}
|
|
}
|
|
.copyVin{
|
|
.copyVin{
|
|
font-weight: 400;
|
|
font-weight: 400;
|
|
- font-size: 22rpx;
|
|
|
|
|
|
+ font-size: 26rpx;
|
|
color:#3F90F7;
|
|
color:#3F90F7;
|
|
width: 62rpx;
|
|
width: 62rpx;
|
|
height: 34rpx;
|
|
height: 34rpx;
|
|
line-height: 34rpx;
|
|
line-height: 34rpx;
|
|
text-align: right;
|
|
text-align: right;
|
|
|
|
+ padding-top: 16rpx;
|
|
}
|
|
}
|
|
.brandBox{
|
|
.brandBox{
|
|
display: flex;
|
|
display: flex;
|
|
@@ -476,23 +547,23 @@ color: #FFFFFF;font-size: 28rpx;padding-left: 16rpx;
|
|
margin-right: 20rpx;
|
|
margin-right: 20rpx;
|
|
}
|
|
}
|
|
.lineRgiht{
|
|
.lineRgiht{
|
|
- padding-left: 24rpx;
|
|
|
|
|
|
+ padding-left: 16rpx;
|
|
}
|
|
}
|
|
.goodsName{
|
|
.goodsName{
|
|
font-size: 28rpx;
|
|
font-size: 28rpx;
|
|
- color: #3C3C3C;
|
|
|
|
|
|
+ color: #254A90;
|
|
line-height: 40rpx;
|
|
line-height: 40rpx;
|
|
}
|
|
}
|
|
.goodsMs{
|
|
.goodsMs{
|
|
font-size: 24rpx;
|
|
font-size: 24rpx;
|
|
- color: #999999;
|
|
|
|
|
|
+ color: #222222;
|
|
line-height: 33rpx;
|
|
line-height: 33rpx;
|
|
padding-top: 10rpx;
|
|
padding-top: 10rpx;
|
|
}
|
|
}
|
|
.brandActive{
|
|
.brandActive{
|
|
background: rgba(255,79,0,0.08);
|
|
background: rgba(255,79,0,0.08);
|
|
border-radius: 6rpx;
|
|
border-radius: 6rpx;
|
|
- color: #FF4F00;
|
|
|
|
|
|
+ color: #E60006;
|
|
}
|
|
}
|
|
.glActive{
|
|
.glActive{
|
|
background: #ffffff;
|
|
background: #ffffff;
|
|
@@ -501,20 +572,43 @@ color: #FFFFFF;font-size: 28rpx;padding-left: 16rpx;
|
|
font-weight: 500;
|
|
font-weight: 500;
|
|
font-size: 26rpx;
|
|
font-size: 26rpx;
|
|
color: #E60006;
|
|
color: #E60006;
|
|
-border-left:4rpx solid #E60006;
|
|
|
|
|
|
+/* border-left:4rpx solid #E60006; */
|
|
|
|
+}
|
|
|
|
+.leftKK{
|
|
|
|
+ background: #E60006;
|
|
|
|
+ width: 6rpx ;
|
|
|
|
+ height: 24rpx;
|
|
|
|
+ border-radius: 4rpx;
|
|
|
|
+ margin-top: 6rpx;
|
|
|
|
+ overflow: hidden;
|
|
|
|
+}
|
|
|
|
+.leftKK2{
|
|
|
|
+ width: 4rpx ;
|
|
}
|
|
}
|
|
.glName{
|
|
.glName{
|
|
- padding: 0 16rpx;
|
|
|
|
|
|
+ width: 170rpx;text-align: center;
|
|
|
|
+ font-size: 26rpx;
|
|
}
|
|
}
|
|
.ckName{
|
|
.ckName{
|
|
width: 532rpx;
|
|
width: 532rpx;
|
|
height: 60rpx;
|
|
height: 60rpx;
|
|
background: #F6F6F6;
|
|
background: #F6F6F6;
|
|
border-radius: 4rpx;
|
|
border-radius: 4rpx;
|
|
- font-size: 24rpx;
|
|
|
|
|
|
+ font-size: 26rpx;
|
|
color: #3C3C3C;
|
|
color: #3C3C3C;
|
|
line-height: 60rpx;
|
|
line-height: 60rpx;
|
|
margin-left: 20rpx;
|
|
margin-left: 20rpx;
|
|
padding-left: 20rpx;
|
|
padding-left: 20rpx;
|
|
|
|
+ font-weight: 600;
|
|
|
|
+}
|
|
|
|
+.jiyouBox{
|
|
|
|
+ width: 100%;
|
|
|
|
+}
|
|
|
|
+.englishname{
|
|
|
|
+ padding: 0 6rpx;
|
|
|
|
+ border-radius: 8rpx;
|
|
|
|
+ border:1px solid #254A90;
|
|
|
|
+ margin-left: 10rpx;
|
|
|
|
+ display: inline-block;
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|