|
|
@ -39,7 +39,7 @@ |
|
|
|
class="fs26 font-color-333" |
|
|
|
v-if="skuRowItem['nameCode']" |
|
|
|
>{{ skuRowItem.skuName }}</label> |
|
|
|
<view class="colorName-box"> |
|
|
|
<!-- <view class="colorName-box"> |
|
|
|
<view |
|
|
|
class="pad-bot-30" |
|
|
|
v-for="(skuColItem, skuColIndex) in skuRowItem.values" |
|
|
@ -53,61 +53,14 @@ |
|
|
|
{{ skuColItem.skuValue }} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view>--> |
|
|
|
<scroll-view class="scroll-view_H" scroll-x="true"> |
|
|
|
<view class="sku-box"> |
|
|
|
<view class="sku-image-item"> |
|
|
|
<image class="sku-image" :src="imageUrl"/> |
|
|
|
<label class="sku-name">浅绿色</label> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="sku-box"> |
|
|
|
<view class="sku-image-item"> |
|
|
|
<image class="sku-image-select" :src="imageUrl"/> |
|
|
|
<label class="sku-name">深灰色</label> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="sku-box"> |
|
|
|
<view class="sku-image-item"> |
|
|
|
<image class="sku-image" :src="imageUrl"/> |
|
|
|
<label class="sku-name">黄色</label> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="sku-box"> |
|
|
|
<view class="sku-image-item"> |
|
|
|
<image class="sku-image" :src="imageUrl"/> |
|
|
|
<label class="sku-name">蓝色</label> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="sku-box"> |
|
|
|
<view class="sku-image-item"> |
|
|
|
<image class="sku-image" :src="imageUrl"/> |
|
|
|
<label class="sku-name">军绿色</label> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="sku-box"> |
|
|
|
<view class="sku-image-item"> |
|
|
|
<image class="sku-image" :src="imageUrl"/> |
|
|
|
<label class="sku-name">黑色</label> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="sku-box"> |
|
|
|
<view class="sku-image-item"> |
|
|
|
<image class="sku-image" :src="imageUrl"/> |
|
|
|
<label class="sku-name">黑色1</label> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="sku-box"> |
|
|
|
<view class="sku-image-item"> |
|
|
|
<image class="sku-image" :src="imageUrl"/> |
|
|
|
<label class="sku-name">黑色2</label> |
|
|
|
<view class="sku-box" v-for="(skuColItem, skuColIndex) in skuRowItem.values" |
|
|
|
:key="skuColIndex"> |
|
|
|
<view class="sku-image-item" @click="handleClickSkuItem(skuRowItem['nameCode'], skuColItem.valueCode)"> |
|
|
|
<image class="sku-image" :class="{'sku-image-select' : selectedAttr[skuRowItem['nameCode']] === skuColItem.valueCode}" |
|
|
|
:src="skuColItem.image ? skuColItem.image : defaultImageUrl" @error="onImageError"/> |
|
|
|
<label class="sku-name" :class="{'sku-name-select' : selectedAttr[skuRowItem['nameCode']] === skuColItem.valueCode}"> {{ skuColItem.skuValue }}</label> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</scroll-view> |
|
|
@ -284,7 +237,7 @@ export default { |
|
|
|
disableSelectList: [true, true, true], |
|
|
|
agingMoneyList: ["0.00", "0.00", "0.00"] |
|
|
|
}, |
|
|
|
imageUrl: 'http://36.138.125.206:8081/ceres-local-file/file/2023/05/4237d7abe33d45a485a4b81c865e55bb_9344949001256.png' |
|
|
|
defaultImageUrl: 'http://36.138.125.206:8081/ceres-local-file/image/sku_defualt.png' |
|
|
|
} |
|
|
|
}, |
|
|
|
props: { |
|
|
@ -590,6 +543,10 @@ export default { |
|
|
|
aliAgingObj.agingMoneyList[2] = (parseInt((skuPrice / 12 * 100) / 100 + '')).toFixed(2) + "" |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
onImageError(e) { |
|
|
|
e.target.src = 'http://36.138.125.206:8081/ceres-local-file/image/sku_defualt.png'; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
@ -859,7 +816,7 @@ export default { |
|
|
|
height: 86rpx; |
|
|
|
border: 2px solid #252744; |
|
|
|
border-radius: 20rpx; |
|
|
|
margin-right: 30rpx; |
|
|
|
//margin-right: 30rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.sku-name{ |
|
|
@ -867,10 +824,17 @@ export default { |
|
|
|
color: #595B6B; |
|
|
|
margin-top: 8rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.sku-name-select{ |
|
|
|
font-size: 24rpx; |
|
|
|
color: #252744; |
|
|
|
margin-top: 8rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.scroll-view_H { |
|
|
|
white-space: nowrap; |
|
|
|
width: 100%; |
|
|
|
margin-top: 12rpx; |
|
|
|
} |
|
|
|
</style> |