Authored by TaoHuang

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

@@ -42,12 +42,21 @@ export default { @@ -42,12 +42,21 @@ export default {
42 computed: { 42 computed: {
43 ...mapGetters(["goodsInfo"]), 43 ...mapGetters(["goodsInfo"]),
44 toLinkParam() { 44 toLinkParam() {
  45 + if (this.goodsInfo.typeTag && this.goodsInfo.typeTag === '二手') {
  46 + const { skup } = this.goodsInfo;
  47 + return {
  48 + name: "SecondProductDetail",
  49 + params: { skup }
  50 + };
  51 +
  52 + } else {
45 const { productId, storageId } = this.goodsInfo; 53 const { productId, storageId } = this.goodsInfo;
46 return { 54 return {
47 name: "ProductDetail", 55 name: "ProductDetail",
48 params: { productId } 56 params: { productId }
49 }; 57 };
50 } 58 }
  59 + }
51 }, 60 },
52 methods: { 61 methods: {
53 onClickHandler() { 62 onClickHandler() {
@@ -22,7 +22,7 @@ @@ -22,7 +22,7 @@
22 <div v-else class="price-status"> 22 <div v-else class="price-status">
23 <span class="price">¥{{ goodsInfo.goodPrice }}</span> 23 <span class="price">¥{{ goodsInfo.goodPrice }}</span>
24 </div> 24 </div>
25 - <p class="item-name"> 25 + <p class="item-name"><span v-if="goodsInfo.typeTag"> 「{{goodsInfo.typeTag}}」 </span>
26 {{ goodsInfo.productName }} 26 {{ goodsInfo.productName }}
27 </p> 27 </p>
28 </div> 28 </div>
@@ -140,6 +140,12 @@ export default { @@ -140,6 +140,12 @@ export default {
140 color: #999; 140 color: #999;
141 letter-spacing: 0; 141 letter-spacing: 0;
142 line-height: 36px; 142 line-height: 36px;
  143 +
  144 + span {
  145 + color: #000;
  146 + line-height: 40px;
  147 + font-weight: bold;
  148 + }
143 } 149 }
144 150
145 .item-spec { 151 .item-spec {