|
|
@@ -126,6 +126,8 @@ export default {
|
|
|
this.initializeOption(option);
|
|
|
// 如果是普通路由跳转,直接获取商品信息
|
|
|
this.getGoodsInfo();
|
|
|
+ this.hdId = this.option.hdId || 0;
|
|
|
+ this.account = this.option.account || 0;
|
|
|
}
|
|
|
|
|
|
const eventChannel = this.getOpenerEventChannel();
|
|
|
@@ -134,6 +136,8 @@ export default {
|
|
|
// 兼容
|
|
|
if (Object.keys(option).length == 0) {
|
|
|
this.option = {...data};
|
|
|
+ this.hdId = this.option.hdId || 0;
|
|
|
+ this.account = this.option.account || 0;
|
|
|
}
|
|
|
this.initializeChatPage(data);
|
|
|
// eventChannel 执行完成后,获取商品信息
|
|
|
@@ -367,7 +371,7 @@ export default {
|
|
|
goodsName: this.data.name,
|
|
|
goodsPriceType: this.data.priceType,
|
|
|
goodsPrice: this.data.price,
|
|
|
- goodsImg: this.data.cover,
|
|
|
+ goodsImg: this.data.smallCover, // smallCover, cover, bigCover。 取smallCover
|
|
|
account: this.shopInfo.account,
|
|
|
hdId: this.shopInfo.hdId,
|
|
|
categoryId: this.shopInfo.categoryId,
|