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
ece095bb
Commit
ece095bb
authored
Jul 10, 2019
by
txy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'调整调用顺序'
parent
7ea73001
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
6 deletions
+27
-6
common.js
showPhotos/js/page/common.js
+15
-0
index.js
showPhotos/js/page/index.js
+6
-4
signup.js
showPhotos/js/page/signup.js
+0
-0
user.js
showPhotos/js/page/user.js
+6
-2
No files found.
showPhotos/js/page/common.js
View file @
ece095bb
data
.
htmlJson
=
JSON
.
parse
(
data
.
htmlJson
);
// 设置token
function
setToken
(){
if
(
user
.
token
!==
''
)
{
sessionStorage
.
setItem
(
'x-token'
,
user
.
token
);
}
else
{
sessionStorage
.
setItem
(
'x-token'
,
''
);
}
}
// 获取token
function
getToken
()
{
var
t
=
sessionStorage
.
getItem
(
'x-token'
);
return
t
}
// 页面跳转
function
transPage
(
_pageNumber
,
_activityCode
,
_token
,
_urlParam
)
{
var
url
=
''
...
...
showPhotos/js/page/index.js
View file @
ece095bb
// 公共变量
var
xtoken
=
"123123"
;
var
activityCode
=
rules
.
acActivity
.
code
;
var
pageNumber
=
"1"
;
var
baseUrl
=
"https://space-api.check.icaremgt.com"
;
...
...
@@ -14,7 +13,7 @@ var gb_rank_loaded = false
var
gb_token
=
'admin.725.fbbd4294a56047e7926b7ebab088ade4'
$
(
function
(){
setToken
();
btnBindClick
();
// 绑定点击事件
removeAttr
();
getAjaxListSearch
(
'player'
,
1
,
function
(
playerListData
){
...
...
@@ -131,7 +130,8 @@ function btnBindClick() {
$
(
"#act31527459124456"
).
off
(
"click"
).
on
(
"click"
,
function
(){
// window.location.href = '/signup.html'
transPage
(
activityCode
,
'2'
,
xtoken
);
var
_t
=
getToken
();
transPage
(
activityCode
,
'2'
,
_t
);
});
// 继续投票
...
...
@@ -369,5 +369,6 @@ function voteClickFn(){
function
playPageFn
()
{
var
id
=
$
(
this
).
attr
(
'id'
);
var
urlParam
=
'?UserId='
+
id
;
transPage
(
'3'
,
activityCode
,
xtoken
,
urlParam
);
var
_t
=
getToken
();
transPage
(
'3'
,
activityCode
,
_t
,
urlParam
);
}
\ No newline at end of file
showPhotos/js/page/signup.js
View file @
ece095bb
This diff is collapsed.
Click to expand it.
showPhotos/js/page/user.js
View file @
ece095bb
...
...
@@ -4,13 +4,17 @@ var baseUrl = "https://space-api.check.icaremgt.com";
var
gb_vote_loaded
=
false
// 微信鉴权
wxpermission
();
// 加载html结构
loadHtmlJson
();
$
(
function
(){
loadHtmlJso
n
();
setToke
n
();
btnBindClick
();
// 绑定点击事件
var
showTime
=
new
Date
(
rules
.
acActivity
.
endTime
).
getTime
()
-
new
Date
(
currentTime
)
userCountDown
(
showTime
/
1000
,
$
(
'#act31142119991744 span'
));
//倒计时
userTabInfo
();
wxpermission
();
});
// 微信鉴权
...
...
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