|
|
|
@ -34,8 +34,8 @@
|
|
|
|
|
<!-- 规格 --> |
|
|
|
|
<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> |
|
|
|
|
<view class="acea-row attr-content"> |
|
|
|
|
<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> --> |
|
|
|
@ -150,7 +150,8 @@ export default {
|
|
|
|
|
productSelect: {}, |
|
|
|
|
}, |
|
|
|
|
isOpen: false, //是否打开属性组件 |
|
|
|
|
productValue: [], |
|
|
|
|
productValue: [], |
|
|
|
|
attrImages: [], |
|
|
|
|
id: 0, |
|
|
|
|
storeInfo: {}, |
|
|
|
|
couponList: [], |
|
|
|
@ -346,7 +347,11 @@ export default {
|
|
|
|
|
that.$set(that, 'goodList', goodArray) |
|
|
|
|
that.updateTitle() |
|
|
|
|
that.DefaultSelect() |
|
|
|
|
that.getCartCount() |
|
|
|
|
that.getCartCount() |
|
|
|
|
for(let i in that.productValue) { |
|
|
|
|
that.attrImages.push(that.productValue[i]); |
|
|
|
|
if(that.attrImages.length == 2) return |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
.catch(err => { |
|
|
|
|
uni.showToast({ |
|
|
|
|