|
|
|
@ -35,7 +35,7 @@
|
|
|
|
|
<view class="attribute acea-row row-between-wrapper" @click="selecAttrTap"> |
|
|
|
|
<view>选规格</view> |
|
|
|
|
<view class="acea-row attr-content"> |
|
|
|
|
<image v-if="item.image" :src="item.image" v-for="(item,index) in productValue" :key="index" mode="aspectFill"></image> |
|
|
|
|
<image v-if="item.image" :src="item.image" v-for="(item,index) in attrImages" :key="index" mode="aspectFill"></image> |
|
|
|
|
<view class="attrs">共{{attr.productAttr[0].attrValueArr.length}}个{{attr.productAttr.length == 1?attr.productAttr[0].attrName:attr.productAttr[0].attrValueArr.length == 1?attr.productAttr[1].attrName:attr.productAttr[0].attrName}}可选</view> |
|
|
|
|
<!-- <text>{{ attrTxt }}:</text> |
|
|
|
|
<text class="atterTxt">{{ attrValue }}</text> --> |
|
|
|
@ -151,6 +151,7 @@ export default {
|
|
|
|
|
}, |
|
|
|
|
isOpen: false, //是否打开属性组件 |
|
|
|
|
productValue: [], |
|
|
|
|
attrImages: [], |
|
|
|
|
id: 0, |
|
|
|
|
storeInfo: {}, |
|
|
|
|
couponList: [], |
|
|
|
@ -347,6 +348,10 @@ export default {
|
|
|
|
|
that.updateTitle() |
|
|
|
|
that.DefaultSelect() |
|
|
|
|
that.getCartCount() |
|
|
|
|
for(let i in that.productValue) { |
|
|
|
|
that.attrImages.push(that.productValue[i]); |
|
|
|
|
if(that.attrImages.length == 2) return |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
.catch(err => { |
|
|
|
|
uni.showToast({ |
|
|
|
|