Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
broadcast_cloud
/
web-live
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
2
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
5d02e14e
authored
May 28, 2021
by
MichaelJier
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into test
parents
38f35110
cd91a926
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletions
+14
-1
components/modules/shareBox/index.vue
+14
-1
No files found.
components/modules/shareBox/index.vue
View file @
5d02e14e
...
...
@@ -24,7 +24,7 @@ export default {
return
{
title
:
this
.
channelInfo
.
shareTitle
||
this
.
channelInfo
.
channelName
,
desc
:
this
.
channelInfo
.
shareSubTitle
||
window
.
location
.
href
,
link
:
window
.
location
.
href
,
link
:
this
.
updateQueryStringParameter
(
window
.
location
.
href
,
'refererId'
,
this
.
userInfo
.
id
||
0
)
,
imgUrl
:
this
.
channelInfo
.
shareImgUrl
||
this
.
channelInfo
.
mpsBackgroundUrl
,
success
()
{
self
.
shareSuccessBack
();
...
...
@@ -45,6 +45,19 @@ export default {
}
},
methods
:
{
updateQueryStringParameter
(
uri
,
key
,
value
)
{
if
(
!
value
)
{
return
uri
;
}
const
re
=
new
RegExp
(
"([?&])"
+
key
+
"=.*?(&|$)"
,
"i"
);
const
separator
=
uri
.
indexOf
(
'?'
)
!==
-
1
?
"&"
:
"?"
;
if
(
uri
.
match
(
re
))
{
return
uri
.
replace
(
re
,
'$1'
+
key
+
"="
+
value
+
'$2'
);
}
else
{
return
uri
+
separator
+
key
+
"="
+
value
;
}
},
_toggleShare
(
bol
)
{
if
(
UserAgent
.
isWx
())
{
this
.
isShow
=
bol
;
...
...
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