积分扣减展示问题,pc商品详情图片不展示问题,pc楼层装修提示修改,代码优化

This commit is contained in:
mabo
2021-08-13 10:38:04 +08:00
parent 736c5ecd2c
commit e6588af790
9 changed files with 15 additions and 33 deletions

View File

@@ -155,7 +155,7 @@ export default {
count: 1, // 商品数量
imgIndex: 0, // 展示图片下标
currentSelceted: [], // 当前商品sku
imgList: this.detail.data.specList[0].specImage || [{}], // 商品图片列表
imgList: [{}], // 商品图片列表
skuDetail: this.detail.data, // sku详情
goodsSpecList: this.detail.specs, // 商品spec
promotionMap: { // 活动状态
@@ -329,6 +329,11 @@ export default {
}
})
}
this.detail.data.specList.forEach(e => {
if (e.specName === 'images') {
this.imgList = e.specImage
}
})
this.formatSku(this.goodsSpecList);
this.promotion()
document.title = this.skuDetail.goodsName

View File

@@ -16,9 +16,9 @@
<span class="mr_10" v-if="goodsMsg.data"><router-link
:to="'Merchant?id=' + goodsMsg.data.storeId">{{ goodsMsg.data.storeName }}</router-link></span>
<span @click="collect"><Icon type="ios-heart"
:color="storeCollected ? '#ed3f14' : '#666'"/>{{
storeCollected ? '已收藏店铺' : '收藏店铺'
}}</span>
:color="storeCollected ? '#ed3f14' : '#666'"/>
{{storeCollected ? '已收藏店铺' : '收藏店铺'}}
</span>
<span @click="connectCs(storeMsg.yzfSign)" class="ml_10"><Icon
custom="icomoon icon-customer-service"/>联系客服</span>
</div>

View File

@@ -8,7 +8,7 @@
<h3>积分日志</h3>
<Table :columns="logColumns" :data="logData.records">
<template slot-scope="{ row }" slot="point">
<div :style="{color:row.pointType === 'INCREASE' ? 'green' : 'red'}"><span>{{row.pointType === "INCREASE" ? '+' : ''}}</span>{{ row.variablePoint }}</div>
<div :style="{color:row.pointType === 'INCREASE' ? 'green' : 'red'}"><span>{{row.pointType === "INCREASE" ? '+' : '-'}}</span>{{ row.variablePoint }}</div>
</template>
</Table>
<!-- 分页 -->