|
@@ -9,9 +9,12 @@
|
|
|
<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="copyVin">复制</view>
|
|
|
+ <view style="display: flex;">
|
|
|
+ <view class="vinms">VIN:</view>
|
|
|
+ <view class="vinNum">{{optdata.vin}}</view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view class="copyVin" @click="copy(optdata.vin)">复制</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
@@ -54,20 +57,26 @@
|
|
|
</view> -->
|
|
|
|
|
|
<view class="jylineBox" v-if="loading">
|
|
|
+ <!-- <view class="ckName">
|
|
|
+ {{componentName}}
|
|
|
+ </view> -->
|
|
|
<view class="jyline" v-for="(item,index) in MaintainPartList" @click="godetail(item)"><!-- MaintainPartList -->
|
|
|
<view class="jyimgBox">
|
|
|
- <!-- <image v-if="item.imgs.split(',')[0]" :src="item.imgs.split(',')[0]" mode="aspectFit" class="jyimg"></image> -->
|
|
|
- <image src="../../static/img/noimg.png" mode="aspectFit" class="jyimg"></image>
|
|
|
+ <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="lineRgiht">
|
|
|
- <view class="goodsName">{{item.name}} {{item.specificationModel}}</view>
|
|
|
- <view class="goodsMs">{{item.factoryNumber}}</view>
|
|
|
- <view class="goodsMs modelRemark" @click.stop="modelRemarkFn(item.modelRemark)">{{item.carmodelremark}}</view>
|
|
|
+ <view class="goodsName">{{item.name}} </view>
|
|
|
+ <view class="goodsMs">型号:{{item.specificationModel}}<span class="factoryNumber" v-if="item.factoryNumber">{{item.factoryNumber}}</span></view>
|
|
|
+ <view class="goodsMs modelRemark" @click.stop="modelRemarkFn(item.carmodelremark)">适用车型:{{item.carmodelremark}}</view>
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
</view>
|
|
|
- <nodata v-if="MaintainPartList.length==0"></nodata>
|
|
|
+ <view v-if="MaintainPartList.length==0" style="padding-top: 200rpx;">
|
|
|
+ <nodata ></nodata>
|
|
|
+ </view>
|
|
|
+
|
|
|
</view>
|
|
|
|
|
|
<!-- <view class="jiyouBox" v-if="loading">
|
|
@@ -114,14 +123,15 @@
|
|
|
modelRemarkNum:1,
|
|
|
oldMaintainPartList:'',
|
|
|
type:'',
|
|
|
- componentCode:'',
|
|
|
+ componentCode:'003001,003003',
|
|
|
leftData:[
|
|
|
- {name:'全部',componentCode:''},
|
|
|
+ {name:'全部',componentCode:'003001,003003'},
|
|
|
{name:'点火线圈',componentCode:'003001'},
|
|
|
{name:'火花塞',componentCode:'003003'},
|
|
|
],
|
|
|
leftIndex:0,
|
|
|
messageText:'',
|
|
|
+ componentName:'全部',
|
|
|
}
|
|
|
},
|
|
|
onLoad(opt) {
|
|
@@ -150,6 +160,22 @@
|
|
|
//this.queryOilInfoByGroupID()
|
|
|
},
|
|
|
methods: {
|
|
|
+ copy(e){
|
|
|
+ uni.setClipboardData({
|
|
|
+ data: e,
|
|
|
+ success: function () {
|
|
|
+ uni.showToast({
|
|
|
+ title: '复制成功',
|
|
|
+ icon: 'success',
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ },
|
|
|
+ fail: function () {
|
|
|
+ console.log('复制失败');
|
|
|
+
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
modelRemarkFn(txt){
|
|
|
this.messageText=txt
|
|
|
this.$refs.popup.open('center')
|
|
@@ -238,6 +264,19 @@
|
|
|
// this.modelRemarkTab(1)
|
|
|
})
|
|
|
},
|
|
|
+ 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 => {
|
|
|
+
|
|
|
+
|
|
|
+ })
|
|
|
+ },
|
|
|
queryOilInfoByGroupID(){
|
|
|
var that=this;
|
|
|
this.$http('matchingByOpen/queryOilInfoByGroupID', {
|
|
@@ -300,8 +339,8 @@
|
|
|
}
|
|
|
|
|
|
.historylinecarImg{
|
|
|
- width: 54rpx;
|
|
|
- height: 54rpx;
|
|
|
+ width: 80rpx;
|
|
|
+ height: 80rpx;
|
|
|
}
|
|
|
.historyLogoBox{
|
|
|
display: flex;align-items: center;
|
|
@@ -310,10 +349,10 @@
|
|
|
|
|
|
.historylinecar {
|
|
|
font-weight: 500;
|
|
|
- font-size: 26rpx;
|
|
|
+ font-size: 32rpx;
|
|
|
color: #1A1A1A;
|
|
|
line-height: 46rpx;
|
|
|
- width: 636rpx;
|
|
|
+ width: 616rpx;
|
|
|
}
|
|
|
|
|
|
.historyLine {
|
|
@@ -355,8 +394,9 @@ color: #FFFFFF;font-size: 28rpx;padding-left: 16rpx;
|
|
|
.jiyouBox{
|
|
|
/* margin-top: 30rpx; */
|
|
|
background: #ffffff;
|
|
|
- padding: 30rpx;
|
|
|
+ /* padding: 30rpx; */
|
|
|
width: 590rpx;
|
|
|
+ /* padding-top: 0rpx; */
|
|
|
}
|
|
|
.jiyoutopTitle{
|
|
|
font-weight: 500;font-size: 28rpx;
|
|
@@ -373,8 +413,11 @@ color: #FFFFFF;font-size: 28rpx;padding-left: 16rpx;
|
|
|
border-radius: 10rpx;
|
|
|
}
|
|
|
.jyline{
|
|
|
- padding-top: 30rpx;
|
|
|
+ padding-top: 22rpx;
|
|
|
display: flex;
|
|
|
+ border-bottom: 1px solid #EEEEEE;
|
|
|
+ padding-bottom: 20rpx;
|
|
|
+ padding-left: 24rpx;
|
|
|
}
|
|
|
.jyName{
|
|
|
font-weight: 400;font-size: 22rpx;
|
|
@@ -395,17 +438,18 @@ color: #FFFFFF;font-size: 28rpx;padding-left: 16rpx;
|
|
|
/* display: flex;justify-content: space-between;flex-wrap: wrap; */
|
|
|
}
|
|
|
.historyLineVin{
|
|
|
- display: flex;background: #ffffff;
|
|
|
+ display: flex;background: #ffffff;justify-content: space-between;
|
|
|
+ padding-top: 10rpx;
|
|
|
}
|
|
|
.historyLineCar{
|
|
|
display: flex;justify-content: space-between;
|
|
|
}
|
|
|
.vinNum{
|
|
|
- font-weight: 400;font-size: 22rpx;padding-left: 10rpx;
|
|
|
+ font-weight: 400;font-size: 26rpx;padding-left: 10rpx;
|
|
|
color: #999999;line-height: 30rpx;
|
|
|
}
|
|
|
.vinms{
|
|
|
- width: 38rpx;
|
|
|
+ /* width: 38rpx;
|
|
|
height: 26rpx;
|
|
|
background: linear-gradient(224deg, #FFDA28 0%, #FFBF35 100%);
|
|
|
border-radius: 4rpx;
|
|
@@ -414,7 +458,11 @@ color: #FFFFFF;font-size: 28rpx;padding-left: 16rpx;
|
|
|
font-weight: 600;
|
|
|
color: #FFFFFF;
|
|
|
font-size: 18rpx;
|
|
|
- margin-top: 2rpx;
|
|
|
+ margin-top: 2rpx; */
|
|
|
+ font-weight: 400;
|
|
|
+ font-size: 26rpx;
|
|
|
+ color: #999999;
|
|
|
+ line-height: 30rpx;
|
|
|
}
|
|
|
.ruleListSpan{
|
|
|
font-weight: 400;
|
|
@@ -439,7 +487,7 @@ color: #FFFFFF;font-size: 28rpx;padding-left: 16rpx;
|
|
|
}
|
|
|
.topBtnBox{
|
|
|
display: flex;padding-bottom: 30rpx;
|
|
|
- padding-left: 70rpx;
|
|
|
+ padding-left: 90rpx;
|
|
|
}
|
|
|
.topBtn{
|
|
|
font-weight: 400;
|
|
@@ -455,13 +503,13 @@ color: #FFFFFF;font-size: 28rpx;padding-left: 16rpx;
|
|
|
}
|
|
|
.copyVin{
|
|
|
font-weight: 400;
|
|
|
- font-size: 22rpx;
|
|
|
- color: #3C3C3C;
|
|
|
+ font-size: 26rpx;
|
|
|
+ color: #3F90F7;
|
|
|
width: 62rpx;
|
|
|
height: 34rpx;
|
|
|
- background: #F4F5F7;
|
|
|
- border-radius: 4rpx;
|
|
|
- line-height: 34rpx;
|
|
|
+ /* background: #F4F5F7;
|
|
|
+ border-radius: 4rpx; */
|
|
|
+ line-height: 30rpx;
|
|
|
text-align: center;
|
|
|
margin-left: 16rpx;
|
|
|
}
|
|
@@ -477,18 +525,18 @@ color: #FFFFFF;font-size: 28rpx;padding-left: 16rpx;
|
|
|
margin-right: 20rpx;
|
|
|
}
|
|
|
.lineRgiht{
|
|
|
- padding-left: 24rpx;
|
|
|
+ padding-left: 16rpx;
|
|
|
}
|
|
|
.goodsName{
|
|
|
- font-size: 28rpx;
|
|
|
- color: #3C3C3C;
|
|
|
+ font-size: 30rpx;
|
|
|
+ color: #222;
|
|
|
line-height: 40rpx;
|
|
|
}
|
|
|
.goodsMs{
|
|
|
- font-size: 24rpx;
|
|
|
- color: #999999;
|
|
|
+ font-size: 26rpx;
|
|
|
+ color: #3C3C3C;
|
|
|
line-height: 33rpx;
|
|
|
- padding-top: 10rpx;
|
|
|
+ padding-top: 6rpx;
|
|
|
}
|
|
|
.brandActive{
|
|
|
background: rgba(255,79,0,0.08);
|
|
@@ -507,14 +555,14 @@ color: #FFFFFF;font-size: 28rpx;padding-left: 16rpx;
|
|
|
}
|
|
|
.goodsLefeLine{
|
|
|
display: flex;justify-content: center;
|
|
|
- padding: 22rpx 10rpx;
|
|
|
+ padding: 30rpx 10rpx;
|
|
|
}
|
|
|
.glActive{
|
|
|
background: #ffffff;
|
|
|
}
|
|
|
.glActive .glName{
|
|
|
font-weight: 500;
|
|
|
-font-size: 26rpx;
|
|
|
+font-size: 30rpx;
|
|
|
color: #E60006;
|
|
|
/* border-left:4rpx solid #E60006; */
|
|
|
}
|
|
@@ -531,7 +579,7 @@ color: #E60006;
|
|
|
}
|
|
|
.glName{
|
|
|
width: 170rpx;text-align: center;
|
|
|
- font-size: 26rpx;
|
|
|
+ font-size: 30rpx;
|
|
|
}
|
|
|
.modelRemark{
|
|
|
overflow: hidden;
|
|
@@ -544,7 +592,31 @@ color: #E60006;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
padding: 15px;
|
|
|
- height: 50px;
|
|
|
+
|
|
|
background-color: #fff;
|
|
|
+ max-height: 50vh;
|
|
|
+ overflow: scroll;
|
|
|
}
|
|
|
+.ckName{
|
|
|
+ width: 532rpx;
|
|
|
+ height: 60rpx;
|
|
|
+ background: #F6F6F6;
|
|
|
+ border-radius: 4rpx;
|
|
|
+ font-size: 26rpx;
|
|
|
+ color: #3C3C3C;
|
|
|
+ line-height: 60rpx;
|
|
|
+ margin-left: 20rpx;
|
|
|
+ padding-left: 20rpx;
|
|
|
+ font-weight: 600;
|
|
|
+}
|
|
|
+.factoryNumber{
|
|
|
+ padding: 0 10rpx;
|
|
|
+ border-radius: 8rpx;
|
|
|
+ border:1px solid #E60006;
|
|
|
+ margin-left: 10rpx;
|
|
|
+ display: inline-block;
|
|
|
+ /* background: #E60006; */
|
|
|
+ font-size: 26rpx;
|
|
|
+ color: #E60006;
|
|
|
+}
|
|
|
</style>
|