Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
group-buy-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
group-buy-ui
Commits
be4e24f7
Commit
be4e24f7
authored
Oct 02, 2021
by
beisir
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat/group-buy' of git.quantgroup.cn:ui/group-buy-ui into feat/group-buy
parents
2c0ed44d
ae0d6319
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
index.vue
src/views/goodsDetail/index.vue
+12
-12
No files found.
src/views/goodsDetail/index.vue
View file @
be4e24f7
...
@@ -290,27 +290,27 @@ export default {
...
@@ -290,27 +290,27 @@ export default {
},
},
methods
:
{
methods
:
{
setShareData
()
{
setShareData
()
{
const
avatorList
=
[];
//
const avatorList = [];
if
(
this
.
detailInfo
.
groupBuyInfo
.
groupBuyValidUserInfoList
)
{
//
if (this.detailInfo.groupBuyInfo.groupBuyValidUserInfoList) {
this
.
detailInfo
.
groupBuyInfo
.
groupBuyValidUserInfoList
.
map
(
v
=>
{
//
this.detailInfo.groupBuyInfo.groupBuyValidUserInfoList.map(v => {
avatorList
.
push
(
v
.
avatar
);
//
avatorList.push(v.avatar);
});
//
});
}
//
}
const
sharePicData
=
{
const
sharePicData
=
{
groupBuySuccessGuys
:
this
.
detailInfo
?.
groupBuyInfo
.
groupBuySuccessPersonCount
,
groupBuySuccessGuys
:
this
.
detailInfo
?.
groupBuyInfo
.
groupBuySuccessPersonCount
,
salePrice
:
this
.
detailInfo
.
price
,
// y
salePrice
:
this
.
detailInfo
.
price
,
groupBuyGroupId
:
this
.
groupId
,
// groupBuyGroupId: this.groupId, // 分享出去不携带团id,故注释掉
goodsSpecialId
:
this
.
detailParam
.
goodsSpecialId
,
goodsSpecialId
:
this
.
detailParam
.
goodsSpecialId
,
openGroupCnt
:
this
.
detailInfo
?.
groupBuyInfo
.
groupBuyLimitUserCount
,
openGroupCnt
:
this
.
detailInfo
?.
groupBuyInfo
.
groupBuyLimitUserCount
,
templateId
:
this
.
detailParam
.
templateId
,
templateId
:
this
.
detailParam
.
templateId
,
templateDetailId
:
this
.
detailParam
.
templateDetailId
,
templateDetailId
:
this
.
detailParam
.
templateDetailId
,
needGuys
:
this
.
detailInfo
?.
groupBuyInfo
.
groupBuyNeedUserCount
,
needGuys
:
this
.
detailInfo
?.
groupBuyInfo
.
groupBuyNeedUserCount
,
skuName
:
this
.
detailInfo
.
goodsName
,
// y
skuName
:
this
.
detailInfo
.
goodsName
,
activityId
:
this
.
detailParam
.
activityId
,
activityId
:
this
.
detailParam
.
activityId
,
skuImg
:
this
.
detailInfo
.
thumbImageUrl
,
// y,
skuImg
:
this
.
detailInfo
.
thumbImageUrl
,
activityPrice
:
this
.
detailInfo
.
activityPrice
,
// y
activityPrice
:
this
.
detailInfo
.
activityPrice
,
skuNo
:
this
.
detailParam
.
skuNo
,
skuNo
:
this
.
detailParam
.
skuNo
,
peoplePhotoList
:
avatorList
,
peoplePhotoList
:
[],
// 原本是avatorList,如上方注释,因与产品确认过商品详情页分享出去不携带团id,故头像传递空数组即可
endTime
:
this
.
detailInfo
?.
groupBuyInfo
.
currentGroupEndTime
||
this
.
detailInfo
?.
endTime
||
''
endTime
:
this
.
detailInfo
?.
groupBuyInfo
.
currentGroupEndTime
||
this
.
detailInfo
?.
endTime
||
''
};
};
EventBus
.
$emit
(
'
goods_share_info
'
,
{
EventBus
.
$emit
(
'
goods_share_info
'
,
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment