Fix(购物车):[#1837]秒杀商品加入购物车后,从购物车点击秒杀商品进入商品详情页显示为普通商品
This commit is contained in:
+13
-6
@@ -73,19 +73,19 @@
|
|||||||
:src="good['productInfo']['attrInfo']['image']"
|
:src="good['productInfo']['attrInfo']['image']"
|
||||||
class="good-cover flex-0"
|
class="good-cover flex-0"
|
||||||
mode="scaleToFill"
|
mode="scaleToFill"
|
||||||
@click="navToGood(good['productId'])"
|
@click="navToGood(good)"
|
||||||
/>
|
/>
|
||||||
<image
|
<image
|
||||||
v-else
|
v-else
|
||||||
:src="good['productInfo']['image']"
|
:src="good['productInfo']['image']"
|
||||||
mode="scaleToFill"
|
mode="scaleToFill"
|
||||||
class="good-cover flex-0"
|
class="good-cover flex-0"
|
||||||
@click="navToGood(good['productId'])"
|
@click="navToGood(good)"
|
||||||
/>
|
/>
|
||||||
<view style="width: 100%">
|
<view style="width: 100%">
|
||||||
<view
|
<view
|
||||||
class="one-t"
|
class="one-t"
|
||||||
@click="navToGood(good['productId'])"
|
@click="navToGood(good)"
|
||||||
>{{ good['productInfo']['storeName'] }}</view>
|
>{{ good['productInfo']['storeName'] }}</view>
|
||||||
<view
|
<view
|
||||||
class="sku ai-center"
|
class="sku ai-center"
|
||||||
@@ -99,7 +99,7 @@
|
|||||||
>
|
>
|
||||||
<view
|
<view
|
||||||
style="color:#E92727;font-size: 32rpx;"
|
style="color:#E92727;font-size: 32rpx;"
|
||||||
@click="navToGood(good['productId'])"
|
@click="navToGood(good)"
|
||||||
>
|
>
|
||||||
<text class="bold" style="font-size: 24rpx">¥</text>
|
<text class="bold" style="font-size: 24rpx">¥</text>
|
||||||
{{ good['truePrice'] }}
|
{{ good['truePrice'] }}
|
||||||
@@ -523,10 +523,17 @@ export default {
|
|||||||
this.currGood = {}
|
this.currGood = {}
|
||||||
this.showAttr = false
|
this.showAttr = false
|
||||||
},
|
},
|
||||||
navToGood(id) {
|
navToGood(good) {
|
||||||
|
const query = {
|
||||||
|
id: good.productId
|
||||||
|
}
|
||||||
|
if (good.seckillId) {
|
||||||
|
query.activityId = good.seckillId
|
||||||
|
query.from = 'kill'
|
||||||
|
}
|
||||||
this.$yrouter.push({
|
this.$yrouter.push({
|
||||||
path: '/pages/shop/GoodsCon/index',
|
path: '/pages/shop/GoodsCon/index',
|
||||||
query: { id }
|
query
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
submit() {
|
submit() {
|
||||||
|
|||||||
Reference in New Issue
Block a user