|
@@ -9,37 +9,21 @@
|
|
|
<view>
|
|
|
<view class="historylinecar">{{optdata.value}}</view>
|
|
|
<view class="historyLineVin" v-if="optdata.isVin==1">
|
|
|
- <view class="vinms">VIN</view>
|
|
|
+ <!-- <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="jiyouBox" v-if="loading">
|
|
|
- <view class="jiyouTop">
|
|
|
- <view class="jiyoutopTitle">变速箱油</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}} | {{item.specificationModel}} | {{item.partsCode}} </span>
|
|
|
- </view>
|
|
|
- <view class="ruleList">
|
|
|
- <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 class="qiehuanBox">
|
|
|
+ <view class="qiehuanLeft">变数箱油</view>
|
|
|
+ <view class="qiehuanRight" @click="goback">切换分类</view>
|
|
|
</view>
|
|
|
<!-- 养护信息 -->
|
|
|
- <view class="jiyouBox">
|
|
|
+ <view class="jiyouBox">
|
|
|
<view class="jiyouTop">
|
|
|
<view class="jiyoutopTitle">养护信息</view>
|
|
|
</view>
|
|
@@ -116,6 +100,29 @@
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
+ <view class="jiyouBox" v-if="loading">
|
|
|
+ <view class="jiyouTop">
|
|
|
+ <view class="jiyoutopTitle">变速箱油</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}} | {{item.specificationModel}} | {{item.partsCode}} </span>
|
|
|
+ </view>
|
|
|
+ <view class="ruleList">
|
|
|
+ <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>
|
|
|
|
|
@@ -187,6 +194,30 @@
|
|
|
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('复制失败');
|
|
|
+
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -201,8 +232,8 @@
|
|
|
border: 1px solid #EEEEEE; width: 302rpx;border-radius: 10rpx;
|
|
|
}
|
|
|
.box {
|
|
|
- padding: 0 24rpx;
|
|
|
- background: #ffffff;
|
|
|
+ padding: 0 24rpx;color: #ffffff;
|
|
|
+ background: linear-gradient( 132deg, #FF641E 0%, #FF4F00 100%), linear-gradient( 132deg, #FB771F 0%, #FF4828 100%);
|
|
|
}
|
|
|
|
|
|
.historylinecarImg{
|
|
@@ -217,9 +248,9 @@
|
|
|
.historylinecar {
|
|
|
font-weight: 500;
|
|
|
font-size: 26rpx;
|
|
|
- color: #1A1A1A;
|
|
|
+
|
|
|
line-height: 46rpx;
|
|
|
- width: 636rpx;
|
|
|
+ width: 490rpx;
|
|
|
}
|
|
|
|
|
|
.historyLine {
|
|
@@ -259,6 +290,7 @@ color: #FFFFFF;font-size: 28rpx;padding-left: 16rpx;
|
|
|
.jiyouBox{
|
|
|
margin-top: 30rpx;border-radius: 16rpx;
|
|
|
background: #ffffff;padding: 30rpx;
|
|
|
+ padding-bottom: 10rpx;
|
|
|
}
|
|
|
.jiyoutopTitle{
|
|
|
font-weight: 500;font-size: 28rpx;
|
|
@@ -350,14 +382,14 @@ line-height: 34rpx;padding-top: 16rpx;
|
|
|
margin-right: 0rpx;
|
|
|
}
|
|
|
.historyLineVin{
|
|
|
- display: flex;background: #ffffff;
|
|
|
+ display: flex;
|
|
|
}
|
|
|
.historyLineCar{
|
|
|
display: flex;justify-content: space-between;
|
|
|
}
|
|
|
.vinNum{
|
|
|
- font-weight: 400;font-size: 22rpx;padding-left: 10rpx;
|
|
|
- color: #999999;line-height: 30rpx;
|
|
|
+ font-weight: 400;font-size: 22rpx;/* padding-left: 10rpx; */
|
|
|
+ line-height: 30rpx;
|
|
|
}
|
|
|
.vinms{
|
|
|
width: 38rpx;
|
|
@@ -378,4 +410,37 @@ line-height: 34rpx;padding-top: 16rpx;
|
|
|
line-height: 36rpx;
|
|
|
padding-right: 6rpx;
|
|
|
}
|
|
|
+ .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;
|
|
|
+ }
|
|
|
+ .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>
|