...
|
...
|
@@ -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: {
|
...
|
...
|
|