Commit be4e24f7 authored by beisir's avatar beisir

Merge branch 'feat/group-buy' of git.quantgroup.cn:ui/group-buy-ui into feat/group-buy

parents 2c0ed44d ae0d6319
......@@ -290,27 +290,27 @@ export default {
},
methods: {
setShareData() {
const avatorList = [];
if (this.detailInfo.groupBuyInfo.groupBuyValidUserInfoList) {
this.detailInfo.groupBuyInfo.groupBuyValidUserInfoList.map(v => {
avatorList.push(v.avatar);
});
}
// const avatorList = [];
// if (this.detailInfo.groupBuyInfo.groupBuyValidUserInfoList) {
// this.detailInfo.groupBuyInfo.groupBuyValidUserInfoList.map(v => {
// avatorList.push(v.avatar);
// });
// }
const sharePicData = {
groupBuySuccessGuys: this.detailInfo?.groupBuyInfo.groupBuySuccessPersonCount,
salePrice: this.detailInfo.price, // y
groupBuyGroupId: this.groupId,
salePrice: this.detailInfo.price,
// groupBuyGroupId: this.groupId, // 分享出去不携带团id,故注释掉
goodsSpecialId: this.detailParam.goodsSpecialId,
openGroupCnt: this.detailInfo?.groupBuyInfo.groupBuyLimitUserCount,
templateId: this.detailParam.templateId,
templateDetailId: this.detailParam.templateDetailId,
needGuys: this.detailInfo?.groupBuyInfo.groupBuyNeedUserCount,
skuName: this.detailInfo.goodsName, // y
skuName: this.detailInfo.goodsName,
activityId: this.detailParam.activityId,
skuImg: this.detailInfo.thumbImageUrl, // y,
activityPrice: this.detailInfo.activityPrice, // y
skuImg: this.detailInfo.thumbImageUrl,
activityPrice: this.detailInfo.activityPrice,
skuNo: this.detailParam.skuNo,
peoplePhotoList: avatorList,
peoplePhotoList: [], // 原本是avatorList,如上方注释,因与产品确认过商品详情页分享出去不携带团id,故头像传递空数组即可
endTime: this.detailInfo?.groupBuyInfo.currentGroupEndTime || this.detailInfo?.endTime || ''
};
EventBus.$emit('goods_share_info', {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment