|
|
@ -66,7 +66,6 @@ export default { |
|
|
} |
|
|
} |
|
|
this.showPointList = this.pointList.filter(item => item.product) |
|
|
this.showPointList = this.pointList.filter(item => item.product) |
|
|
let productIdList = this.showPointList.map(item => item.product.productId) |
|
|
let productIdList = this.showPointList.map(item => item.product.productId) |
|
|
|
|
|
|
|
|
const getProductsResponse = await getProducts({ |
|
|
const getProductsResponse = await getProducts({ |
|
|
ids: productIdList, |
|
|
ids: productIdList, |
|
|
page: 1, |
|
|
page: 1, |
|
|
@ -91,21 +90,18 @@ export default { |
|
|
this.$message.error(res.message || '请求失败!') |
|
|
this.$message.error(res.message || '请求失败!') |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
clickProductDetail(prointData) { |
|
|
|
|
|
console.log(prointData) |
|
|
|
|
|
if (prointData.product) { |
|
|
|
|
|
let data = { |
|
|
|
|
|
productId: prointData.product.productId, |
|
|
|
|
|
skuId: prointData.product.skuId, |
|
|
|
|
|
shopId: prointData.product.shopId |
|
|
|
|
|
} |
|
|
|
|
|
this.$router.push({ |
|
|
|
|
|
path: "/productDetail", |
|
|
|
|
|
query: { |
|
|
|
|
|
proData: JSON.stringify(data) |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
clickProductDetail(product) { |
|
|
|
|
|
let data = { |
|
|
|
|
|
productId: product.productId, |
|
|
|
|
|
skuId: product.skuId, |
|
|
|
|
|
shopId: product.shopId |
|
|
} |
|
|
} |
|
|
|
|
|
this.$router.push({ |
|
|
|
|
|
path: "/productDetail", |
|
|
|
|
|
query: { |
|
|
|
|
|
proData: JSON.stringify(data) |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|