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
2ce78d9f
Commit
2ce78d9f
authored
Sep 25, 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
3af60d28
a5592cdb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
14 deletions
+24
-14
groupShare.vue
src/components/groupShare.vue
+4
-4
sharePic.vue
src/components/sharePic.vue
+6
-2
index.vue
src/views/goodsDetail/index.vue
+7
-4
smallPic.vue
src/views/goodsDetail/smallPic.vue
+7
-4
No files found.
src/components/groupShare.vue
View file @
2ce78d9f
...
@@ -59,10 +59,10 @@ export default {
...
@@ -59,10 +59,10 @@ export default {
},
},
mounted
()
{
mounted
()
{
EventBus
.
$on
(
'
goods_share_info
'
,
({
shareInfo
,
type
})
=>
{
EventBus
.
$on
(
'
goods_share_info
'
,
({
shareInfo
,
type
})
=>
{
//
if (!isApp && !isWxMp) {
if
(
!
isApp
&&
!
isWxMp
)
{
//
this.tipDialogMessage();
this
.
tipDialogMessage
();
//
return;
return
;
//
}
}
this
.
type
=
type
;
this
.
type
=
type
;
if
(
typeof
shareInfo
===
'
object
'
)
{
if
(
typeof
shareInfo
===
'
object
'
)
{
this
.
sharePicData
=
shareInfo
;
this
.
sharePicData
=
shareInfo
;
...
...
src/components/sharePic.vue
View file @
2ce78d9f
...
@@ -32,7 +32,9 @@
...
@@ -32,7 +32,9 @@
</div>
</div>
<div
class=
"groupProcess"
>
<div
class=
"groupProcess"
>
<div
class=
"desc"
>
<div
class=
"desc"
>
还差
<span>
{{ sharePicData.needGuys }}人
</span>
成团,参团截止时间5月3日
还差
<span>
{{ sharePicData.needGuys }}人
</span>
成团,
<
template
v-if=
"endTime != ''"
>
参团截止时间
{{
endTime
}}
</
template
>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -82,7 +84,8 @@ export default {
...
@@ -82,7 +84,8 @@ export default {
avatorList
:
[],
avatorList
:
[],
openGroupCnt
:
7
,
openGroupCnt
:
7
,
maxCount
:
0
,
maxCount
:
0
,
sharePicData
:
{}
sharePicData
:
{},
endTime
:
''
};
};
},
},
methods
:
{
methods
:
{
...
@@ -95,6 +98,7 @@ export default {
...
@@ -95,6 +98,7 @@ export default {
},
},
async
createAndUploadPic
(
sharePicData
)
{
async
createAndUploadPic
(
sharePicData
)
{
this
.
sharePicData
=
sharePicData
;
this
.
sharePicData
=
sharePicData
;
this
.
endTime
=
sharePicData
.
endTime
?
sharePicData
.
endTime
.
split
(
'
'
)[
0
]
:
''
;
this
.
handleAvator
(
sharePicData
);
this
.
handleAvator
(
sharePicData
);
const
_this
=
this
;
const
_this
=
this
;
const
[
qrcodeUrl
]
=
await
groupBuyApi
.
getQrcodeUrl
(
sharePicData
);
const
[
qrcodeUrl
]
=
await
groupBuyApi
.
getQrcodeUrl
(
sharePicData
);
...
...
src/views/goodsDetail/index.vue
View file @
2ce78d9f
...
@@ -295,9 +295,11 @@ export default {
...
@@ -295,9 +295,11 @@ export default {
methods
:
{
methods
:
{
setShareData
()
{
setShareData
()
{
const
avatorList
=
[];
const
avatorList
=
[];
this
.
detailInfo
.
groupBuyInfo
.
groupBuyValidUserInfoList
.
map
(
v
=>
{
if
(
this
.
detailInfo
.
groupBuyInfo
.
groupBuyValidUserInfoList
)
{
avatorList
.
push
(
v
.
avatar
);
this
.
detailInfo
.
groupBuyInfo
.
groupBuyValidUserInfoList
.
map
(
v
=>
{
});
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
,
// y
...
@@ -312,7 +314,8 @@ export default {
...
@@ -312,7 +314,8 @@ export default {
skuImg
:
this
.
detailInfo
.
thumbImageUrl
,
// y,
skuImg
:
this
.
detailInfo
.
thumbImageUrl
,
// y,
activityPrice
:
this
.
detailInfo
.
activityPrice
,
// y
activityPrice
:
this
.
detailInfo
.
activityPrice
,
// y
skuNo
:
this
.
detailParam
.
skuNo
,
skuNo
:
this
.
detailParam
.
skuNo
,
peoplePhotoList
:
avatorList
peoplePhotoList
:
avatorList
,
endTime
:
this
.
detailInfo
.
endTime
||
''
};
};
EventBus
.
$emit
(
'
goods_share_info
'
,
{
EventBus
.
$emit
(
'
goods_share_info
'
,
{
shareInfo
:
sharePicData
,
shareInfo
:
sharePicData
,
...
...
src/views/goodsDetail/smallPic.vue
View file @
2ce78d9f
...
@@ -163,9 +163,11 @@ export default {
...
@@ -163,9 +163,11 @@ export default {
methods
:
{
methods
:
{
setShareData
()
{
setShareData
()
{
const
avatorList
=
[];
const
avatorList
=
[];
this
.
detailInfo
.
groupBuyInfo
.
groupBuyValidUserInfoList
.
map
(
v
=>
{
if
(
this
.
detailInfo
.
groupBuyInfo
.
groupBuyValidUserInfoList
)
{
avatorList
.
push
(
v
.
avatar
);
this
.
detailInfo
.
groupBuyInfo
.
groupBuyValidUserInfoList
.
map
(
v
=>
{
});
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
,
// y
...
@@ -180,7 +182,8 @@ export default {
...
@@ -180,7 +182,8 @@ export default {
skuImg
:
this
.
detailInfo
.
thumbImageUrl
,
// y,
skuImg
:
this
.
detailInfo
.
thumbImageUrl
,
// y,
activityPrice
:
this
.
detailInfo
.
activityPrice
,
// y
activityPrice
:
this
.
detailInfo
.
activityPrice
,
// y
skuNo
:
this
.
detailParam
.
skuNo
,
skuNo
:
this
.
detailParam
.
skuNo
,
peoplePhotoList
:
avatorList
peoplePhotoList
:
avatorList
,
endTime
:
this
.
detailInfo
.
endTime
||
''
};
};
EventBus
.
$emit
(
'
goods_share_info
'
,
{
EventBus
.
$emit
(
'
goods_share_info
'
,
{
shareInfo
:
sharePicData
,
shareInfo
:
sharePicData
,
...
...
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