Authored by TaoHuang

Merge remote-tracking branch 'origin/feature/2hand' into feature/2hand

... ... @@ -42,11 +42,20 @@ export default {
computed: {
...mapGetters(["goodsInfo"]),
toLinkParam() {
const { productId, storageId } = this.goodsInfo;
return {
name: "ProductDetail",
params: { productId }
};
if (this.goodsInfo.typeTag && this.goodsInfo.typeTag === '二手') {
const { skup } = this.goodsInfo;
return {
name: "SecondProductDetail",
params: { skup }
};
} else {
const { productId, storageId } = this.goodsInfo;
return {
name: "ProductDetail",
params: { productId }
};
}
}
},
methods: {
... ...
... ... @@ -22,7 +22,7 @@
<div v-else class="price-status">
<span class="price">¥{{ goodsInfo.goodPrice }}</span>
</div>
<p class="item-name">
<p class="item-name"><span v-if="goodsInfo.typeTag"> 「{{goodsInfo.typeTag}}」 </span>
{{ goodsInfo.productName }}
</p>
</div>
... ... @@ -140,6 +140,12 @@ export default {
color: #999;
letter-spacing: 0;
line-height: 36px;
span {
color: #000;
line-height: 40px;
font-weight: bold;
}
}
.item-spec {
... ...