Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
h5_activity
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
谭新宇
h5_activity
Commits
6ff80b70
Commit
6ff80b70
authored
Jul 15, 2019
by
txy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'调整页面跳转'
parent
35e96c06
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
10 deletions
+13
-10
common.js
showPhotos/js/page/common.js
+13
-10
No files found.
showPhotos/js/page/common.js
View file @
6ff80b70
...
...
@@ -37,19 +37,22 @@ function getToken() {
// 页面跳转
function
transPage
(
_pageNumber
,
_activityCode
,
_token
,
_addParam
)
{
var
url
=
''
// if (typeof _urlParam !== 'undefined' && _urlParam !== '') {
// url = baseUrl + "/ACTIVITY/view/" + _activityCode + "/" + _pageNumber + '?' + _urlParam;
// } else {
// url = baseUrl + "/ACTIVITY/view/" + _activityCode + "/" + _pageNumber;
// }
var
_urlParam
=
location
.
search
;
var
url
=
''
;
var
_base
=
''
;
var
pathname
=
window
.
location
.
pathname
;
var
_urlParam
=
window
.
location
.
search
;
var
index
=
pathname
.
indexOf
(
'/ACTIVITY'
);
var
secondFolder
=
''
;
if
(
index
!==
0
){
secondFolder
=
pathname
.
slice
(
0
,
index
);
}
_base
=
pathname
+
secondFolder
;
if
(
typeof
_urlParam
!==
'undefined'
&&
_urlParam
!==
''
)
{
url
=
"/ACTIVITY/view/"
+
_activityCode
+
"/"
+
_pageNumber
+
_urlParam
+
(
_addParam
!==
undefined
?
(
'&'
+
_addParam
)
:
''
);
url
=
_base
+
"/ACTIVITY/view/"
+
_activityCode
+
"/"
+
_pageNumber
+
_urlParam
+
(
_addParam
!==
undefined
?
(
'&'
+
_addParam
)
:
''
);
}
else
{
url
=
"/ACTIVITY/view/"
+
_activityCode
+
"/"
+
_pageNumber
+
(
_addParam
!==
undefined
?
(
'?'
+
_addParam
)
:
''
);
url
=
_base
+
"/ACTIVITY/view/"
+
_activityCode
+
"/"
+
_pageNumber
+
(
_addParam
!==
undefined
?
(
'?'
+
_addParam
)
:
''
);
}
var
_form
=
document
.
createElement
(
'form'
);
...
...
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