Merge remote-tracking branch 'origin/feature/2hand' into feature/2hand
Showing
2 changed files
with
21 additions
and
6 deletions
@@ -42,11 +42,20 @@ export default { | @@ -42,11 +42,20 @@ export default { | ||
42 | computed: { | 42 | computed: { |
43 | ...mapGetters(["goodsInfo"]), | 43 | ...mapGetters(["goodsInfo"]), |
44 | toLinkParam() { | 44 | toLinkParam() { |
45 | - const { productId, storageId } = this.goodsInfo; | ||
46 | - return { | ||
47 | - name: "ProductDetail", | ||
48 | - params: { productId } | ||
49 | - }; | 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 { | ||
53 | + const { productId, storageId } = this.goodsInfo; | ||
54 | + return { | ||
55 | + name: "ProductDetail", | ||
56 | + params: { productId } | ||
57 | + }; | ||
58 | + } | ||
50 | } | 59 | } |
51 | }, | 60 | }, |
52 | methods: { | 61 | methods: { |
@@ -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 { |
-
Please register or login to post a comment