|
@@ -116,7 +116,7 @@
|
|
|
:scaleMultiple="0.82"
|
|
|
originRight
|
|
|
>
|
|
|
- {{ current + 1 }}/{{ productImage.length }}
|
|
|
+ {{ current + 1 }}/{{ productImage && productImage.length }}
|
|
|
</tui-tag>
|
|
|
</view>
|
|
|
</uni-swiper-dot>
|
|
@@ -143,7 +143,7 @@
|
|
|
<view class="">分享</view>
|
|
|
</button>
|
|
|
</view>
|
|
|
- <view class="wrap-label" v-if="product.tagsList.length > 0">
|
|
|
+ <view class="wrap-label" v-if="product.tagsList && product.tagsList.length > 0">
|
|
|
<view
|
|
|
class="label-a tui-skeleton-fillet"
|
|
|
v-for="(label, index) in product.tagsList"
|
|
@@ -566,7 +566,7 @@
|
|
|
:btnType="btnType"
|
|
|
:goodsData="goodsData"
|
|
|
@buyConfirm="handleBuyConfirm"
|
|
|
- @skuClick="handleSkuClick"
|
|
|
+ @skuClick="handleSkuClick"
|
|
|
></cm-unit-popup>
|
|
|
<!-- 弹窗提示 -->
|
|
|
<tui-modal
|
|
@@ -843,7 +843,10 @@ export default {
|
|
|
this.productImage = []
|
|
|
this.shop = response.data.shop
|
|
|
this.shopId = response.data.shopId
|
|
|
- this.product = this.skuProduct = response.data
|
|
|
+ const dataStr = JSON.stringify(response.data)
|
|
|
+ this.product = JSON.parse(dataStr)
|
|
|
+ this.skuProduct = JSON.parse(dataStr)
|
|
|
+ console.log('is same obj',this.product === this.skuProduct)
|
|
|
this.skusCount = this.product.skus.length
|
|
|
this.addParams.skuId = this.product.skuId
|
|
|
if (this.product.tinyTypeName) {
|