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
e591a61e
Commit
e591a61e
authored
Jul 16, 2019
by
txy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'调整页面跳转'
parent
a6a6d72a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
common.js
showPhotos/js/page/common.js
+12
-11
No files found.
showPhotos/js/page/common.js
View file @
e591a61e
...
...
@@ -56,17 +56,18 @@ function transPage(_pageNumber, _activityCode, _token, _addParam) {
url
=
_base
+
"/ACTIVITY/view/"
+
_activityCode
+
"/"
+
_pageNumber
+
(
_addParam
!==
undefined
?
(
'?'
+
_addParam
)
:
''
);
}
var
_form
=
document
.
createElement
(
'form'
);
_form
.
action
=
url
;
_form
.
method
=
"post"
;
_form
.
style
.
display
=
"none"
;
var
inputToken
=
document
.
createElement
(
'input'
);
inputToken
.
value
=
_token
;
inputToken
.
name
=
'x-token'
;
_form
.
appendChild
(
inputToken
);
document
.
body
.
appendChild
(
_form
);
_form
.
submit
();
// var _form = document.createElement('form');
// _form.action = url;
// _form.method = "post";
// _form.style.display = "none";
// var inputToken = document.createElement('input');
// inputToken.value = _token;
// inputToken.name = 'x-token';
// _form.appendChild(inputToken);
// document.body.appendChild(_form);
// _form.submit();
window
.
location
.
href
=
url
;
}
// 获取URL中指定参数
...
...
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