Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
h5
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
02c5a272
authored
Jun 11, 2020
by
施宇
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
1
parent
385e7182
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
src/views/common/wxShare.vue
view/3.js
src/views/common/wxShare.vue
View file @
02c5a272
...
...
@@ -66,24 +66,29 @@
}
}
},
beforeCreate
(){
console
.
log
(
11111111
)
let
href
=
window
.
location
.
href
;
if
(
href
.
indexOf
(
'groupmessage'
)
>
-
1
||
href
.
indexOf
(
'singlemessage'
)
>
-
1
||
href
.
indexOf
(
'timeline'
)
>
-
1
){
console
.
log
(
111
)
href
=
href
.
replace
(
/
\?
from=
(
groupmessage|singlemessage|timeline
)(\S
*
)
#/
,
'#'
);
window
.
location
.
replace
(
href
);
}
},
created
()
{
//无需登录的情况下
// let href = window.location.href;
// if(href.indexOf('groupmessage') > -1 || href.indexOf('singlemessage') > -1 || href.indexOf('timeline') > -1){
// href = href.replace(/\?from=(groupmessage|singlemessage|timeline)(\S*)#/, '#');
// }
if
(
!
this
.
isLogin
)
{
this
.
$store
.
dispatch
({
type
:
"wxShare"
,
current_url
:
'https://szm.ichunt.com/h5/view/'
current_url
:
location
.
href
});
}
else
{
if
(
util
.
getCookie
(
"Yo4teW_uid"
))
{
this
.
$store
.
dispatch
({
type
:
"wxShare"
,
current_url
:
'https://szm.ichunt.com/h5/view/'
current_url
:
location
.
href
});
}
}
...
...
view/3.js
View file @
02c5a272
This diff is collapsed.
Click to expand it.
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