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
f1eaf31a
Commit
f1eaf31a
authored
Sep 24, 2021
by
Xuguangxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 处理参团后按钮展示问题
parent
75121f0a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
9 deletions
+13
-9
smallPic.vue
src/views/goodsDetail/smallPic.vue
+1
-3
payResult.vue
src/views/pay/payResult.vue
+12
-6
No files found.
src/views/goodsDetail/smallPic.vue
View file @
f1eaf31a
...
...
@@ -63,7 +63,7 @@
<group-desc-info
:group-info=
"detailInfo.groupBuyInfo ||
{}"
:timestemp="groupTimestemp"
:show-button-group="
showShareButton
"
:show-button-group="
true
"
@changeButtonVisible="changeButtonVisible"
/>
<successInfo
:group-info=
"detailInfo.groupBuyInfo ||
{}" />
...
...
@@ -119,7 +119,6 @@ export default {
showInfo
:
false
,
inProgress
:
false
,
// 活动是否已经开始
countDownText
:
''
,
showShareButton
:
false
,
// 是否显示分享按钮
stockPercentage
:
0
,
// 以下是原有的data
detailParam
:
{
...
...
@@ -188,7 +187,6 @@ export default {
}
console
.
log
(
this
.
stockPercentage
);
}
this
.
showShareButton
=
res
.
groupBuyInfo
.
groupBuyStatus
==
1
?
true
:
false
;
this
.
imgList
=
res
.
imageUrl
||
[];
this
.
detailInfo
=
res
;
this
.
setStartStatus
(
res
);
...
...
src/views/pay/payResult.vue
View file @
f1eaf31a
...
...
@@ -94,7 +94,8 @@ export default {
payStatusName
:
''
,
payMethodName
:
''
,
payType
:
''
,
sharePicData
:
{}
sharePicData
:
{},
picUrl
:
''
};
},
created
()
{
...
...
@@ -111,9 +112,14 @@ export default {
this
.
getCouponList
();
},
mounted
()
{
EventBus
.
$on
(
'
shareClickItem
'
,
({
ev
})
=>
{
const
_this
=
this
;
EventBus
.
$on
(
'
shareClickItem
'
,
async
function
({
ev
,
nativeBridge
})
{
if
(
ev
===
'
pic
'
)
{
// 处理图片url
nativeBridge
.
openNewUrl
({
newUrl
:
`/pages/goodshare/index?url=
${
encodeURIComponent
(
JSON
.
stringify
(
_this
.
picUrl
))}
`
});
_this
.
$store
.
dispatch
(
'
goods_share_close
'
);
}
});
},
...
...
@@ -123,12 +129,12 @@ export default {
methods
:
{
outputPicUrl
(
res
)
{
console
.
log
(
res
);
this
.
$store
.
dispatch
(
'
goods_share_open
'
,
{
res
});
this
.
picUrl
=
res
;
this
.
$store
.
dispatch
(
'
goods_share_open
'
);
console
.
log
(
this
.
picUrl
);
},
async
setShareData
()
{
const
[
res
]
=
await
groupBuyApi
.
getGroupShareInfo
({
orderNo
:
this
.
orderNo
});
const
[
res
]
=
await
groupBuyApi
.
getGroupShareInfo
(
this
.
orderNo
);
this
.
sharePicData
=
res
;
this
.
$refs
.
sharePic
.
createAndUploadPic
();
},
...
...
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