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
46b55c3c
Commit
46b55c3c
authored
Jul 10, 2019
by
txy
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of gitlab.icaremgt.com:tanxinyu/h5_activity into develop
parents
6c15dc57
87a38a97
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1677 additions
and
250 deletions
+1677
-250
index.html
showPhotos/index.html
+16
-6
signup.html
showPhotos/signup.html
+992
-212
user.html
showPhotos/user.html
+669
-32
No files found.
showPhotos/index.html
View file @
46b55c3c
...
...
@@ -7,9 +7,10 @@
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1,user-scalable=no"
>
<meta
name=
"format-detection"
content=
"telephone=no"
>
<title>
宝贝,因“喂”爱你
</title>
<link
rel=
"stylesheet"
href=
"https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/css/activity.css"
>
<link
rel=
"stylesheet"
href=
"https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/css/toast.css"
>
<link
rel=
"stylesheet"
href=
"css/activity.css"
>
<link
rel=
"stylesheet"
href=
"css/toast.css"
>
<!-- <link rel="stylesheet" href="https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/css/activity.css">
<link rel="stylesheet" href="https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/css/toast.css"> -->
<script
type=
"text/javascript"
src=
"https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/js/jquery-3.4.1.min.js"
></script>
<script
type=
"text/javascript"
src=
"https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/js/toast.js"
></script>
<script
type=
"text/javascript"
src=
"https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/js/html2Json.js"
></script>
...
...
@@ -250,6 +251,7 @@
}
}
var
params
=
{
reviewStatus
:
1
,
// 审核状态
descs
:
descs
,
// 降序排列
curPage
:
page
?
page
:
1
,
pageSize
:
10
,
...
...
@@ -280,6 +282,13 @@
gb_rank_loaded
=
false
}
}
},
error
:
function
()
{
if
(
type
==
'player'
||
type
==
'search'
)
{
gb_player_loaded
=
false
}
else
if
(
type
==
'rank'
)
{
gb_rank_loaded
=
false
}
}
})
}
...
...
@@ -295,13 +304,13 @@
if
(
playerListData
.
records
.
length
)
{
for
(;
i
<
playerListData
.
records
.
length
;
i
++
){
// 序号替换
$
(
'.number-icon'
,
item
).
text
(
i
+
1
);
$
(
'.number-icon'
,
item
).
text
(
playerListData
.
records
[
i
].
userNumber
);
// 图片url替换
$
(
'img'
,
item
).
attr
(
'src'
,
playerListData
.
records
[
i
].
imageUrl
);
// 名称替换
$
(
'.user-name'
,
item
).
text
(
playerListData
.
records
[
i
].
name
);
// 机构名称替换
$
(
'.vote-struct'
,
item
).
text
(
'贵阳市乌当区新天社区卫生服务中心测试'
);
$
(
'.vote-struct'
,
item
).
text
(
playerListData
.
records
[
i
].
orgName
);
// 票数替换
$
(
'.vote-num'
,
item
).
text
(
playerListData
.
records
[
i
].
voteNum
+
'票'
);
...
...
@@ -345,6 +354,7 @@
// 替换名字,图片
$
(
'.table-info img'
,
tr
).
attr
(
'src'
,
rankListData
.
records
[
i
].
imageUrl
);
$
(
'.cell-info h4'
,
tr
).
text
(
rankListData
.
records
[
i
].
name
);
// $('.cell-info small', tr).text(rankListData.records[i].userNumber);
// 票数
$
(
'.ticket-total .text-red'
,
tr
).
text
(
rankListData
.
records
[
i
].
voteNum
);
...
...
@@ -402,7 +412,7 @@
// 选手主页
function
playPageFn
()
{
var
id
=
$
(
this
).
attr
(
'id'
);
var
urlParam
=
'?
i
d='
+
id
;
var
urlParam
=
'?
UserI
d='
+
id
;
transPage
(
'3'
,
activityCode
,
xtoken
,
urlParam
);
}
...
...
showPhotos/signup.html
View file @
46b55c3c
<html>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge,chrome=1"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1,user-scalable=no"
>
<meta
name=
"format-detection"
content=
"telephone=no"
>
<title>
宝贝,因“喂”爱你
</title>
<link
rel=
"stylesheet"
href=
"https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/css/activity.css"
>
<link
rel=
"stylesheet"
href=
"https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/css/toast.css"
>
<script
type=
"text/javascript"
src=
"https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/js/jquery-3.4.1.min.js"
></script>
<script
type=
"text/javascript"
src=
"https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/js/toast.js"
></script>
<script
type=
"text/javascript"
src=
"https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/js/exif.js"
></script>
<script
type=
"text/javascript"
src=
"https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/js/html2Json.js"
></script>
<script
type=
"text/javascript"
src=
"https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/js/pageJson/signupJson.js"
></script>
<script
type=
"text/javascript"
src=
"https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/js/modalJson/shareModal.js"
></script>
<script
type=
"text/javascript"
src=
"https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/js/removeAttr.js"
></script>
<script
type=
"text/javascript"
src=
"https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/js/autoFontsize.min.js"
></script>
<script
type=
"text/javascript"
src=
"http://res.wx.qq.com/open/js/jweixin-1.4.0.js"
></script>
<script
type=
"text/javascript"
>
wx
.
config
({
debug
:
false
,
// 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
appId
:
'${appId!}'
,
// 必填,公众号的唯一标识
timestamp
:
'${timestamp!}'
,
// 必填,生成签名的时间戳
nonceStr
:
'${noncestr!}'
,
// 必填,生成签名的随机串
signature
:
'${signature!}'
,
// 必填,签名,见附录1
jsApiList
:
[
'onMenuShareTimeline'
,
'onMenuShareAppMessage'
,
'startRecord'
,
'stopRecord'
,
'onVoiceRecordEnd'
,
'playVoice'
,
'pauseVoice'
,
'stopVoice'
,
'onVoicePlayEnd'
,
'uploadVoice'
,
'downloadVoice'
,
'chooseImage'
,
'previewImage'
,
'uploadImage'
,
'downloadImage'
,
'translateVoice'
,
'openLocation'
,
'getLocation'
,
'hideOptionMenu'
,
'showOptionMenu'
,
'hideMenuItems'
,
'showMenuItems'
,
'scanQRCode'
,
'chooseWXPay'
,
'addCard'
,
'chooseCard'
,
'openCard'
]
// 必填,需要使用的JS接口列表,所有JS接口列表见附录2
});
</script>
</head>
<body>
<!-- <img class="test1" style="width: 100%" src="images/test.jpeg" /> -->
</body>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge,chrome=1"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1,user-scalable=no"
>
<meta
name=
"format-detection"
content=
"telephone=no"
>
<title>
宝贝,因“喂”爱你
</title>
<link
rel=
"stylesheet"
href=
"https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/css/activity.css"
>
<link
rel=
"stylesheet"
href=
"https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/css/toast.css"
>
<script
type=
"text/javascript"
src=
"https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/js/jquery-3.4.1.min.js"
></script>
<script
type=
"text/javascript"
src=
"https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/js/toast.js"
></script>
<script
type=
"text/javascript"
src=
"js/exif.js"
></script>
<script
type=
"text/javascript"
src=
"https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/js/html2Json.js"
></script>
<script
type=
"text/javascript"
src=
"https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/js/pageJson/signupJson.js"
></script>
<script
type=
"text/javascript"
src=
"https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/js/modalJson/shareModal.js"
></script>
<script
type=
"text/javascript"
src=
"https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/js/removeAttr.js"
></script>
<script
type=
"text/javascript"
src=
"https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/js/autoFontsize.min.js"
></script>
<script
type=
"text/javascript"
src=
"http://res.wx.qq.com/open/js/jweixin-1.4.0.js"
></script>
<script
type=
"text/javascript"
>
var
data
=
{
"id"
:
"17"
,
"pageNumber"
:
"1"
,
"backgroundColor"
:
""
,
"htmlJson"
:{
"node"
:
"root"
,
"child"
:
[
{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:
{
"id"
:
"html-template-2"
,
"class"
:
"container"
},
"child"
:
[
{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:
{
"class"
:
"full-width"
},
"child"
:
[
{
"node"
:
"element"
,
"tag"
:
"img"
,
"attr"
:
{
"id"
:
"act11533271231743"
,
"c_type"
:
"image"
,
"c_typename"
:
"logo"
,
"c_width"
:
"135"
,
"c_height"
:
"50"
,
"c_desc"
:
"建议上传135x50的图片"
,
"src"
:
"http://qnfile.icareyou.net/f6ec1cb23c0740d0995c91de7a9964c21560411548597.jpg"
,
"class"
:
"act-logo"
}
},
{
"node"
:
"text"
,
"text"
:
" "
},
{
"node"
:
"element"
,
"tag"
:
"img"
,
"attr"
:
{
"id"
:
"act11534392314548"
,
"c_type"
:
"image"
,
"c_typename"
:
"mainBanner"
,
"c_width"
:
"375"
,
"c_height"
:
"450"
,
"c_desc"
:
"建议上传750x750的图片"
,
"src"
:
"http://qnfile.icareyou.net/e1e347fa1d3a4eb79839e40c6ba312531560307520219.jpg"
,
"class"
:
"full-width"
}
},
{
"node"
:
"text"
,
"text"
:
" "
},
{
"node"
:
"element"
,
"tag"
:
"img"
,
"attr"
:
{
"id"
:
"act11534485971254"
,
"c_type"
:
"image"
,
"c_typename"
:
"returnBack"
,
"c_width"
:
"375"
,
"c_height"
:
"450"
,
"c_desc"
:
"建议上传750x750的图片"
,
"src"
:
"http://qnfile.icareyou.net/1b38000b991e432a9e1726557694044e1560915885635.jpg"
,
"class"
:
"return-back"
}
}
]
},
{
"node"
:
"text"
,
"text"
:
" "
},
{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:
{
"class"
:
"content"
},
"child"
:
[
{
"node"
:
"element"
,
"tag"
:
"form"
,
"attr"
:
{
"class"
:
"sign-form"
},
"child"
:
[
{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:
{
"class"
:
[
"form-row"
,
"m-b"
]
},
"child"
:
[
{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:
{
"class"
:
"form-input-group"
},
"child"
:
[
{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:
{
"class"
:
"form-input-group-inner"
},
"child"
:
[
{
"node"
:
"element"
,
"tag"
:
"input"
,
"attr"
:
{
"id"
:
"act11738585285947"
,
"type"
:
"text"
,
"c_typename"
:
"input"
,
"name"
:
"name"
,
"placeholder"
:
"请输入参与者姓名"
,
"c_validateempty"
:
"yes"
,
"c_validate"
:
""
,
"c_len"
:
"15"
,
"c_name"
:
"姓名"
,
"c_remove"
:
"readonly"
,
"readonly"
:
"readonly"
}
}
]
}
]
}
]
},
{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:
{
"class"
:
[
"form-row"
,
"m-b"
]
},
"child"
:
[
{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:
{
"class"
:
"form-input-group"
},
"child"
:
[
{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:
{
"class"
:
"form-input-group-inner"
},
"child"
:
[
{
"node"
:
"element"
,
"tag"
:
"input"
,
"attr"
:
{
"id"
:
"act11739141518360"
,
"type"
:
"number"
,
"c_typename"
:
"input"
,
"name"
:
"phoneNumber"
,
"placeholder"
:
"请输入参与者手机号码"
,
"c_validateempty"
:
"yes"
,
"c_validate"
:
""
,
"c_len"
:
"15"
,
"c_name"
:
"手机号"
,
"c_remove"
:
"readonly"
,
"readonly"
:
"readonly"
}
}
]
}
]
}
]
},
{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:
{
"class"
:
[
"form-row"
,
"m-b"
]
},
"child"
:
[
{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:
{
"class"
:
"form-input-group"
},
"child"
:
[
{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:
{
"class"
:
"form-input-group-inner"
},
"child"
:
[
{
"node"
:
"element"
,
"tag"
:
"input"
,
"attr"
:
{
"id"
:
"act11739232574395"
,
"type"
:
"text"
,
"c_typename"
:
"input"
,
"name"
:
"orgName"
,
"placeholder"
:
"请选择区域/社区卫生服务中心"
,
"c_validateempty"
:
"yes"
,
"c_validate"
:
""
,
"c_len"
:
"50"
,
"c_name"
:
"社区名称"
,
"c_remove"
:
"readonly"
,
"readonly"
:
"readonly"
}
}
]
}
]
}
]
},
{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:
{
"class"
:
[
"form-row"
,
"m-b"
]
},
"child"
:
[
{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:
{
"class"
:
"form-input-group"
},
"child"
:
[
{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:
{
"class"
:
"form-input-group-inner"
},
"child"
:
[
{
"node"
:
"element"
,
"tag"
:
"input"
,
"attr"
:
{
"id"
:
"act11739381874636"
,
"type"
:
"text"
,
"c_typename"
:
"input"
,
"name"
:
"note"
,
"placeholder"
:
"请输入介绍/拉票宣言等,仅限50字数"
,
"c_validateempty"
:
"yes"
,
"c_validate"
:
""
,
"c_len"
:
"50"
,
"c_name"
:
"拉票宣言"
,
"c_remove"
:
"readonly"
,
"readonly"
:
"readonly"
}
}
]
}
]
}
]
},
{
"node"
:
"text"
,
"text"
:
" "
},
{
"node"
:
"element"
,
"tag"
:
"div"
,
"child"
:
[
{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:
{
"class"
:
[
"form-row"
,
"m-b"
]
},
"child"
:
[
{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:
{
"class"
:
"form-input-group"
},
"child"
:
[
{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:
{
"class"
:
"form-input-group-inner"
},
"child"
:
[
{
"node"
:
"element"
,
"tag"
:
"input"
,
"attr"
:
{
"id"
:
"act31438116191870"
,
"type"
:
"text"
,
"c_typename"
:
"input"
,
"name"
:
"act31438116191870_name"
,
"placeholder"
:
"hello"
,
"c_validateempty"
:
"no"
,
"c_validate"
:
""
,
"c_len"
:
""
,
"c_name"
:
""
,
"c_remove"
:
"readonly"
,
"c_deletebtn"
:
"true"
,
"readonly"
:
"readonly"
}
}
]
}
]
}
]
},
{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:
{
"class"
:
[
"form-row"
,
"m-b"
]
},
"child"
:
[
{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:
{
"class"
:
"form-input-group"
},
"child"
:
[
{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:
{
"class"
:
"form-input-group-inner"
},
"child"
:
[
{
"node"
:
"element"
,
"tag"
:
"input"
,
"attr"
:
{
"id"
:
"act3143823658403"
,
"type"
:
"text"
,
"c_typename"
:
"input"
,
"name"
:
"act3143823658403_name"
,
"placeholder"
:
"world"
,
"c_validateempty"
:
"no"
,
"c_validate"
:
""
,
"c_len"
:
""
,
"c_name"
:
""
,
"c_remove"
:
"readonly"
,
"c_deletebtn"
:
"true"
,
"readonly"
:
"readonly"
}
}
]
}
]
}
]
}
]
},
{
"node"
:
"text"
,
"text"
:
" "
},
{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:
{
"class"
:
"add-input-btn"
},
"child"
:
[
{
"node"
:
"element"
,
"tag"
:
"button"
,
"attr"
:
{
"type"
:
"button"
,
"class"
:
[
"el-button"
,
"el-button--info"
,
"el-button--mini"
,
"is-circle"
]
},
"child"
:
[
{
"node"
:
"comment"
,
"text"
:
""
},
{
"node"
:
"element"
,
"tag"
:
"i"
,
"attr"
:
{
"class"
:
"el-icon-plus"
}
},
{
"node"
:
"comment"
,
"text"
:
""
}
]
}
]
},
{
"node"
:
"text"
,
"text"
:
" "
},
{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:
{
"class"
:
[
"form-row"
,
"text-center"
,
"m-b"
]
},
"child"
:
[
{
"node"
:
"element"
,
"tag"
:
"label"
,
"attr"
:
{
"class"
:
[
"btn-upload"
,
"c-read-only"
]
},
"child"
:
[
{
"node"
:
"element"
,
"tag"
:
"input"
,
"attr"
:
{
"type"
:
"file"
,
"id"
:
"uploadImage"
,
"accept"
:
"image/*"
,
"name"
:
"photo"
,
"class"
:
"c-read-only"
,
"style"
:
[
"display:"
,
"none;"
]
}
},
{
"node"
:
"text"
,
"text"
:
" "
},
{
"node"
:
"element"
,
"tag"
:
"img"
,
"attr"
:
{
"src"
:
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAF4AAABeCAYAAACq0qNuAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA+tpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxOCAoV2luZG93cykiIHhtcDpDcmVhdGVEYXRlPSIyMDE5LTA2LTEwVDEwOjExOjE0KzA4OjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAxOS0wNi0xMFQxMDoxNzozMiswODowMCIgeG1wOk1ldGFkYXRhRGF0ZT0iMjAxOS0wNi0xMFQxMDoxNzozMiswODowMCIgZGM6Zm9ybWF0PSJpbWFnZS9wbmciIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6RTc2MEVBOTM4QjI1MTFFOUI2OERDQzlBNTg5NjMwMUMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6RTc2MEVBOTQ4QjI1MTFFOUI2OERDQzlBNTg5NjMwMUMiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpFNzYwRUE5MThCMjUxMUU5QjY4RENDOUE1ODk2MzAxQyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpFNzYwRUE5MjhCMjUxMUU5QjY4RENDOUE1ODk2MzAxQyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PoCT9eEAAAZQSURBVHja7FxpjBRFFK7ZnUV0db1AEQ0aUAH9oRFQroAnGuMPZVWiEaKoiKgIRiVeLayJR9R4EV016AqC8Y4SV2MUNCweEbwVL9Z4bxRFEIOKMH7PeuhsTc307M50VU/P+5Ivs93bM939ddWr91696lQmk1EC96gRCUR4EV4gwovwAhFehBeI8CK8QIQX4QUivAgvwgtE+GpCutQfaGpqCjvkAHA42FAhmvwGrgTfA0MnK4Ig8CN8AYwFbwIPq9BGuQq8Cny6kkzNueDSChadMBh8CryiUoQ/BrwHTCXEHF8PTo278H3BRWBtwsbCu8DRcRb+XrBXQp2QBWB9HIU/FjwhwR7gPuDMOAofqORjWrnMaKrUuhr24/cHP62S2OdQ8C3+ewdwWcjxN8PXXxiVHz+uioLO/bKEp9Z/UMjxvQu2eLTcPfAxtJtdaRq7kdWAOzlGUTzYPhxy/APgYvBvcAVaf8d/wkP0RnYDeyhBlPgDbIT4rVsH17kiuhP0BO/I9mr6iCbOsG/Y4Loe/LKIH6KHtrvo2cmcrGa/v75QRGbDNzRawxatLcKdrMNHK3i0oxv7E9zMg1WaTWQ6JqI/Qo4GdPsVumyLv28Ep3clgHq/GNEZm8DlEbYeSsteBA5hv7knt6Qd+bOOe91R4BzwDU+ifw5OItH/jSaDYCM+ZoBted1JPB0zitrMX3oN3BJywoFKJ5F6l/EmKBi7FXwMXNdNO0qp6fP4ATlxMyH2xRaLcLnS8xL/h/hBkMrXRWtZTNcgH5cudGERD7wQvgBngTcoPZkxw4E52jnP/p2iztWUihbuPQtKFD0b1O0vAw8GP4z4+sejdfc3WjtZgcldGVxdgsaIKSx8IdNxHDgSHKR06rmBzdBPSk/T0TjzPPiV5fsfgcPA+8EzIroPGm/aIPYcTinQXHOQz+PzLTwNQCeCL+bpjePBS8AReb5P9rsfD7xbBX0VvAV8TnWerKaBehKbs0sjuh9KuzQXc2CN55bemEf0Q8A3wccLiJ4PYzk3soxbXTYybHrm+u7mPoWfzqbBtp9cwqEl/v4opcs0bDaWvI8XqlH4Ry1dkibHb+dcRl0ZcyPz2L/PBg3eE8Hvq0n4tRwQmbiOW2IUCCx2fU2E54ul8AF7Itk4if3tKEFBjDln8AQPxokXvoO7fjZ6sZvn4l4f5LRDNmZXg/DN7EJ2ijPAXR2df0+VWxn2itJ1kokWfr6x3SdfZBchLrTkb1qSLPwHKje/TwHNNo7vmUzNBGPf4iQLv8Sy72RPTsUpxvbqPKmGRAj/jqXlDfEk/ChLrPBuUoX/zNge7DGAo9mh/iHXlxjhO4ztvZVf9Au5vsQIv8HYrvcsfH3I9SVGeNOmxu1laD2SKrwZMa7xLLSZttg+qcKbNr3ds/DtITY/McIPsngR6z2J/h34g8XLSqTwI41tKiF52ZPwLxnbNAU6LKnCH2E53yJPwpsLBUa49rJcCr8beLix71mlywVdYpWlp53q+sm7jhzPNrb/UrnTclHjGtW5boei2NOSLvwEi/dAKyaWOzo/Ta4/aew7R7mbD/AmfK2lhVMgdbrSc7FRgryYMy2++ywfg4yPJBXdvLlK+mul18hujOic5LYeD/5o7J+t9KxUVQhPeEjlzgJRZTItUl5X5nNRhHqkyk37UuHTTE/37014Ssm2qNwVhlT9RTn6t8t0Hho7qCptpbF/L6Vre2qqTXgC1UzebdlPs0H0uhWqmfy5m79NKd7zwTHgt8b/qIKXyga9Lh/yXaZNVcLzLC2fltncpvQ6oguUrqMMy2Zu4R4zhXtUs8ot96aWvtR1esCGOJRpT2ZBJloGvw3cK4i7KP2KrYHcarcDf+fvfKJ0vWWh8WE0m5e+Mbjn2CzaGseD31SOZm34RelFbq1d/G0KkK5Uup4mNu/RidOKEKotf4aDnOFlalTUiz4Gr1Yxe3lRHF9/SCs/Xle6pvEs1fXFYwPAa5VeBzWfx4nYIa3iizFMqqtcwX4+rQZsZ9tPwVYDPxh6bcuBfPwAVQFIV8A11rJ7Wclv9KsIU1MVEOHdY1O28G2ihzMsybbxNBFwn9JTYCnRJhJkuIHTUv/SXwYnEBsvwgtEeBFeIMKL8CK8QIQX4QUivAgvEOFFeIEIL8ILRPi44h8BBgCOBDMsM04zbgAAAABJRU5ErkJggg=="
}
},
{
"node"
:
"text"
,
"text"
:
" "
},
{
"node"
:
"element"
,
"tag"
:
"span"
,
"child"
:
[
{
"node"
:
"text"
,
"text"
:
"上传图片,仅限XX以内"
}
]
}
]
},
{
"node"
:
"text"
,
"text"
:
" "
},
{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:
{
"id"
:
"act31419345204861"
,
"class"
:
[
"upload-pic"
,
"global-none"
]
},
"child"
:
[
{
"node"
:
"element"
,
"tag"
:
"img"
,
"attr"
:
{
"src"
:
""
}
}
]
}
]
},
{
"node"
:
"text"
,
"text"
:
" "
},
{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:
{
"id"
:
"act21359468086634"
,
"class"
:
[
"confirm-btn"
,
"text-center"
]
},
"child"
:
[
{
"node"
:
"element"
,
"tag"
:
"img"
,
"attr"
:
{
"id"
:
"act31023318459940"
,
"c_typename"
:
"submitBtn"
,
"c_type"
:
"image"
,
"c_width"
:
"364"
,
"c_height"
:
"104"
,
"c_desc"
:
"建议上传364x104的图片"
,
"src"
:
"http://qnfile.icareyou.net/51716f7726094423b45758cd14759e7f1560915244483"
}
}
]
}
]
}
]
},
{
"node"
:
"text"
,
"text"
:
" "
},
{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:
{
"class"
:
"index-bottom"
},
"child"
:
[
{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:
{
"class"
:
"btn-group-info"
},
"child"
:
[
{
"node"
:
"element"
,
"tag"
:
"img"
,
"attr"
:
{
"id"
:
"act41612547506702"
,
"c_typename"
:
"rangeListBtn"
,
"c_type"
:
"image"
,
"c_width"
:
"154"
,
"c_height"
:
"64"
,
"c_desc"
:
"建议上传154x64的图片"
,
"src"
:
"http://qnfile.icareyou.net/1b560d6dfe2d4e8e8a05fe90336cc5f61560411872708.jpg"
}
}
]
},
{
"node"
:
"text"
,
"text"
:
" "
},
{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:
{
"class"
:
"btn-group-info"
},
"child"
:
[
{
"node"
:
"element"
,
"tag"
:
"img"
,
"attr"
:
{
"id"
:
"act4161336684689"
,
"c_typename"
:
"playerIndexBtn"
,
"c_type"
:
"image"
,
"c_width"
:
"154"
,
"c_height"
:
"64"
,
"c_desc"
:
"建议上传154x64的图片"
,
"src"
:
"http://qnfile.icareyou.net/1c24d979349f482aafd737c2d5acb8e11560411839686.jpg"
}
}
]
},
{
"node"
:
"text"
,
"text"
:
" "
},
{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:
{
"class"
:
"btn-group-info"
},
"child"
:
[
{
"node"
:
"element"
,
"tag"
:
"img"
,
"attr"
:
{
"id"
:
"act41613113951133"
,
"c_typename"
:
"ruleBtn"
,
"c_type"
:
"image"
,
"c_width"
:
"154"
,
"c_height"
:
"64"
,
"c_desc"
:
"建议上传154x64的图片"
,
"src"
:
"http://qnfile.icareyou.net/c5f549aeb74749ac9529b28cc78c715f1560411823738.jpg"
}
}
]
}
]
}
]
}
]
},
"dataJson"
:
{
"page"
:{
"id"
:
"html-template-2"
,
"style"
:
""
},
"logo"
:{
"id"
:
"act11533271231743"
,
"c_typename"
:
"logo"
,
"c_type"
:
"image"
,
"c_width"
:
"135"
,
"c_height"
:
"50"
,
"c_desc"
:
"建议上传135x50的图片"
,
"src"
:
"http://qnfile.icareyou.net/f6ec1cb23c0740d0995c91de7a9964c21560411548597.jpg"
},
"mainBanner"
:{
"id"
:
"act11534392314548"
,
"c_typename"
:
"mainBanner"
,
"c_type"
:
"image"
,
"c_width"
:
"375"
,
"c_height"
:
"450"
,
"c_desc"
:
"建议上传750x750的图片"
,
"src"
:
"http://qnfile.icareyou.net/e1e347fa1d3a4eb79839e40c6ba312531560307520219.jpg"
},
"backBtn"
:{
"id"
:
"act11534485971254"
,
"c_typename"
:
"returnBack"
,
"c_type"
:
"image"
,
"c_width"
:
"375"
,
"c_height"
:
"450"
,
"c_desc"
:
"建议上传750x750的图片"
,
"src"
:
"http://qnfile.icareyou.net/1b38000b991e432a9e1726557694044e1560915885635.jpg"
},
"defaultInputGroup"
:[{
"id"
:
"act11738585285947"
,
"type"
:
"text"
,
"name"
:
"name"
,
"placeholder"
:
"请输入参与者姓名"
,
"readonly"
:
"readonly"
,
"c_validateempty"
:
"yes"
,
"c_validate"
:
""
,
"c_len"
:
"15"
,
"c_name"
:
"姓名"
,
"c_remove"
:
"readonly"
,
"c_deletebtn"
:
false
,
"c_typename"
:
"input"
,
"c_type"
:
"input"
},{
"id"
:
"act11739141518360"
,
"type"
:
"number"
,
"name"
:
"phoneNumber"
,
"placeholder"
:
"请输入参与者手机号码"
,
"readonly"
:
"readonly"
,
"c_validateempty"
:
"yes"
,
"c_validate"
:
""
,
"c_len"
:
"15"
,
"c_name"
:
"手机号"
,
"c_remove"
:
"readonly"
,
"c_deletebtn"
:
false
,
"c_typename"
:
"input"
,
"c_type"
:
"input"
},{
"id"
:
"act11739232574395"
,
"type"
:
"text"
,
"name"
:
"orgName"
,
"placeholder"
:
"请选择区域/社区卫生服务中心"
,
"readonly"
:
"readonly"
,
"c_validateempty"
:
"yes"
,
"c_validate"
:
""
,
"c_len"
:
"50"
,
"c_name"
:
"社区名称"
,
"c_remove"
:
"readonly"
,
"c_deletebtn"
:
false
,
"c_typename"
:
"input"
,
"c_type"
:
"input"
},{
"id"
:
"act11739381874636"
,
"type"
:
"text"
,
"name"
:
"note"
,
"placeholder"
:
"请输入介绍/拉票宣言等,仅限50字数"
,
"readonly"
:
"readonly"
,
"c_validateempty"
:
"yes"
,
"c_validate"
:
""
,
"c_len"
:
"50"
,
"c_name"
:
"拉票宣言"
,
"c_remove"
:
"readonly"
,
"c_deletebtn"
:
false
,
"c_typename"
:
"input"
,
"c_type"
:
"input"
}],
"addGroup"
:[{
"id"
:
"act31438116191870"
,
"type"
:
"text"
,
"name"
:
"act31438116191870_name"
,
"placeholder"
:
"hello"
,
"readonly"
:
"readonly"
,
"c_validateempty"
:
"no"
,
"c_validate"
:
""
,
"c_len"
:
""
,
"c_name"
:
""
,
"c_remove"
:
"readonly"
,
"c_deletebtn"
:
true
,
"c_typename"
:
"input"
,
"c_type"
:
"input"
},{
"id"
:
"act3143823658403"
,
"type"
:
"text"
,
"name"
:
"act3143823658403_name"
,
"placeholder"
:
"world"
,
"readonly"
:
"readonly"
,
"c_validateempty"
:
"no"
,
"c_validate"
:
""
,
"c_len"
:
""
,
"c_name"
:
""
,
"c_remove"
:
"readonly"
,
"c_deletebtn"
:
true
,
"c_typename"
:
"input"
,
"c_type"
:
"input"
}],
"submitBtn"
:{
"id"
:
"act31023318459940"
,
"c_typename"
:
"submitBtn"
,
"c_type"
:
"image"
,
"src"
:
"http://qnfile.icareyou.net/51716f7726094423b45758cd14759e7f1560915244483"
,
"c_width"
:
"364"
,
"c_height"
:
"104"
,
"c_desc"
:
"建议上传364x104的图片"
},
"rangeListBtn"
:{
"id"
:
"act41612547506702"
,
"c_typename"
:
"rangeListBtn"
,
"c_type"
:
"image"
,
"src"
:
"http://qnfile.icareyou.net/1b560d6dfe2d4e8e8a05fe90336cc5f61560411872708.jpg"
,
"c_width"
:
"154"
,
"c_height"
:
"64"
,
"c_desc"
:
"建议上传154x64的图片"
},
"playerIndexBtn"
:{
"id"
:
"act4161336684689"
,
"c_typename"
:
"playerIndexBtn"
,
"c_type"
:
"image"
,
"src"
:
"http://qnfile.icareyou.net/1c24d979349f482aafd737c2d5acb8e11560411839686.jpg"
,
"c_width"
:
"154"
,
"c_height"
:
"64"
,
"c_desc"
:
"建议上传154x64的图片"
},
"ruleBtn"
:{
"id"
:
"act41613113951133"
,
"c_typename"
:
"ruleBtn"
,
"c_type"
:
"image"
,
"src"
:
"http://qnfile.icareyou.net/c5f549aeb74749ac9529b28cc78c715f1560411823738.jpg"
,
"c_width"
:
"154"
,
"c_height"
:
"64"
,
"c_desc"
:
"建议上传154x64的图片"
}},
// "dataJson": "",
"relationship"
:
""
,
// 弹框
"createTime"
:
"2019-07-02 15:46:09"
,
"updateTime"
:
"2019-07-09 17:15:13"
,
"playerVote1"
:
{
"id"
:
"17"
,
"pageNumber"
:
"1"
,
"backgroundColor"
:
""
,
"htmlJson"
:
""
,
//页面
"dataJson"
:
""
,
}
}
var
rules
=
{
"acActivity"
:
{
"id"
:
"5"
,
"createTime"
:
"2019-06-11 15:48:59"
,
"updateTime"
:
"2019-07-02 23:24:51"
,
"createUserId"
:
"1"
,
"updateUserId"
:
"1"
,
"organizerOrgId"
:
"5235"
,
"activityStatus"
:
2
,
"name"
:
"活动通版晒照测试1"
,
"code"
:
"hdtbsztest1"
,
"startTime"
:
"2019-06-11 15:44:45"
,
"endTime"
:
"2019-09-12 15:44:50"
,
"lcTimeType"
:
3
,
"bindOrg"
:
true
,
"kgMpId"
:
"0"
,
"qrCodeMessage"
:
""
,
"kgAcActivityTypeId"
:
"1"
},
"acActivityOrgs"
:
[],
"acActivityRegistrationAudit"
:
""
,
"settings"
:
{
"szText"
:
{
"id"
:
"7"
,
"kgAcActivityId"
:
"5"
,
"shareTitile"
:
"share title"
,
"shareSubtitle"
:
"share cotentn"
,
"shareIcon"
:
""
,
"pullTitile"
:
"sha"
,
"pullSubtitle"
:
"hhhh"
,
"h5Title"
:
""
,
"createTime"
:
"2019-06-23 03:04:27"
,
"updateTime"
:
"2019-07-05 16:29:38"
},
"szRule"
:
{
"id"
:
"9"
,
"kgAcActivityId"
:
"5"
,
"registeringWx"
:
true
,
"registeringOrg"
:
false
,
"voteWx"
:
false
,
"voteOrg"
:
false
,
"voteNumDay"
:
50
,
"voteNumPeople"
:
9999
,
"createTime"
:
"2019-06-23 03:04:21"
,
"updateTime"
:
"2019-07-06 03:25:17"
}
}
}
var
user
=
{
id
:
''
,
token
:
'admin.725.b9d085900b8546fcb26e1683e8f4e7bb'
,
status
:
''
// 报名状态
}
</script>
<script
type=
"text/javascript"
>
wx
.
config
({
debug
:
false
,
// 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
appId
:
'${appId!}'
,
// 必填,公众号的唯一标识
timestamp
:
'${timestamp!}'
,
// 必填,生成签名的时间戳
nonceStr
:
'${noncestr!}'
,
// 必填,生成签名的随机串
signature
:
'${signature!}'
,
// 必填,签名,见附录1
jsApiList
:
[
'onMenuShareTimeline'
,
'onMenuShareAppMessage'
,
'startRecord'
,
'stopRecord'
,
'onVoiceRecordEnd'
,
'playVoice'
,
'pauseVoice'
,
'stopVoice'
,
'onVoicePlayEnd'
,
'uploadVoice'
,
'downloadVoice'
,
'chooseImage'
,
'previewImage'
,
'uploadImage'
,
'downloadImage'
,
'translateVoice'
,
'openLocation'
,
'getLocation'
,
'hideOptionMenu'
,
'showOptionMenu'
,
'hideMenuItems'
,
'showMenuItems'
,
'scanQRCode'
,
'chooseWXPay'
,
'addCard'
,
'chooseCard'
,
'openCard'
]
// 必填,需要使用的JS接口列表,所有JS接口列表见附录2
});
</script>
</head>
<body>
</body>
</html>
<script
type=
"text/javascript"
>
// 公共变量
var
xtoken
=
"123123"
;
var
activityCode
=
"hdtbsztest1"
;
var
pageNumber
=
"1"
;
var
baseUrl
=
"http://space-api.check.icaremgt.com"
;
var
baseUrl
=
"http
s
://space-api.check.icaremgt.com"
;
$
(
'body'
).
prepend
(
json2html
(
signupObj
));
$
(
'body'
).
prepend
(
json2html
(
data
.
htmlJson
));
$
(
'body'
).
prepend
(
json2html
(
shareModal
));
$
(
'#html-template-8'
).
addClass
(
'global-none'
)
$
(
function
()
{
$
(
function
()
{
removeAttr
();
btnBindClick
();
// 绑定点击事件
$
(
'#act11739232574395'
).
attr
({
'readonly'
:
'readonly'
});
$
(
'#act11739232574395'
).
attr
({
'readonly'
:
'readonly'
});
wxpermission
();
// selectFileImage()
getOrgNameFn
();
})
// 微信鉴权
function
wxpermission
()
{
wx
.
ready
(
function
()
{
wx
.
ready
(
function
()
{
var
shareData
=
{
title
:
""
,
imgUrl
:
""
,
...
...
@@ -97,260 +825,311 @@
// 元素点击事件绑定
function
btnBindClick
()
{
// 返回首页
$
(
"#act11534485971254"
).
off
(
"click"
).
on
(
"click"
,
function
()
{
$
(
"#act11534485971254"
).
off
(
"click"
).
on
(
"click"
,
function
()
{
window
.
location
.
href
=
'/index.html'
});
// 排行榜
$
(
"#act41612547506702"
).
off
(
'click'
).
on
(
"click"
,
function
()
{
$
(
"#act41612547506702"
).
off
(
'click'
).
on
(
"click"
,
function
()
{
window
.
location
.
href
=
'/index.html'
});
// 选手主页
$
(
"#act4161336684689"
).
off
(
"click"
).
on
(
"click"
,
function
()
{
$
(
"#act4161336684689"
).
off
(
"click"
).
on
(
"click"
,
function
()
{
window
.
location
.
href
=
'/user.html'
});
// 活动秘籍
$
(
"#act41613113951133"
).
off
(
"click"
).
on
(
"click"
,
function
()
{
$
(
"#act41613113951133"
).
off
(
"click"
).
on
(
"click"
,
function
()
{
$
(
'#html-template-8'
).
removeClass
(
'global-none'
)
});
// 分享弹框关闭
$
(
document
).
on
(
'click'
,
'#html-template-8 .modal-close'
,
function
()
{
$
(
document
).
on
(
'click'
,
'#html-template-8 .modal-close'
,
function
()
{
$
(
'#html-template-8'
).
addClass
(
'global-none'
)
});
// 上传图片
$
(
"#uploadImage"
).
on
(
'change'
,
function
()
{
$
(
"#uploadImage"
).
on
(
'change'
,
function
()
{
var
formData
=
new
FormData
()
formData
.
append
(
'file'
,
this
.
files
[
0
])
formData
.
append
(
'file'
,
this
.
files
[
0
])
selectFileImage
(
this
)
$
.
ajax
({
type
:
'POST'
,
url
:
'http://api-admin-manage.check.icaremgt.com/system/components/upload'
,
headers
:
{
'x-token'
:
'admin.725.b9d085900b8546fcb26e1683e8f4e7bb'
},
data
:
formData
,
contentType
:
false
,
processData
:
false
,
success
:
function
(
data
)
{
type
:
'POST'
,
url
:
'http://api-admin-manage.check.icaremgt.com/system/components/upload'
,
headers
:
{
'x-token'
:
user
.
token
},
data
:
formData
,
contentType
:
false
,
processData
:
false
,
success
:
function
(
data
)
{
$
(
"#act31419345204861"
).
removeClass
(
'global-none'
)
},
error
:
function
()
{
showMessage
(
'上传失败!'
,
3000
,
true
);
error
:
function
()
{
showMessage
(
'上传失败!'
,
3000
,
true
);
}
})
})
// 确认提交
$
(
"#act21359468086634"
).
off
(
"click"
).
on
(
"click"
,
function
()
{
$
(
"#act21359468086634"
).
off
(
"click"
).
on
(
"click"
,
function
()
{
var
userName
=
$
(
'#act11738585285947'
)
var
phonenum
=
$
(
'#act11739141518360'
)
var
introDuce
=
$
(
'#act11739381874636'
)
var
signInput
=
$
(
'.sign-form .form-input-group input[c_validate="idcard"]'
)
var
addInput
=
data
.
dataJson
.
addGroup
var
uploadImg
=
$
(
'#act31419345204861 img'
)
// 验证用户名
if
(
userName
.
attr
(
'c_validateempty'
)
==
'yes'
)
{
if
(
userName
.
attr
(
'c_validateempty'
)
==
'yes'
)
{
var
userNameVal
=
userName
.
val
()
var
userNameLen
=
userName
.
attr
(
'c_len'
)
if
(
userNameVal
==
''
)
{
showMessage
(
'请输入参与者姓名'
,
3000
,
true
);
if
(
userNameVal
==
''
)
{
showMessage
(
'请输入参与者姓名'
,
3000
,
true
);
return
false
}
else
if
(
userNameVal
.
length
>
userNameLen
)
{
showMessage
(
'参与者姓名不能超过'
+
userNameLen
+
'个字'
,
3000
,
true
);
}
else
if
(
userNameVal
.
length
>
userNameLen
)
{
showMessage
(
'参与者姓名不能超过'
+
userNameLen
+
'个字'
,
3000
,
true
);
return
false
}
}
// 验证手机号
if
(
phonenum
.
attr
(
'c_validateempty'
)
==
'yes'
)
{
if
(
phonenum
.
attr
(
'c_validateempty'
)
==
'yes'
)
{
var
reg
=
/^1
[
3456789
]\d{9}
$/
var
phonenumVal
=
phonenum
.
val
()
var
phonenumLen
=
phonenum
.
attr
(
'c_len'
)
if
(
phonenumVal
==
''
)
{
showMessage
(
'请输入参与者手机号码'
,
3000
,
true
);
if
(
phonenumVal
==
''
)
{
showMessage
(
'请输入参与者手机号码'
,
3000
,
true
);
return
false
}
else
if
(
phonenumVal
.
length
>
phonenumLen
)
{
showMessage
(
'参与者手机号码不能超过'
+
phonenumLen
+
'个字'
,
3000
,
true
);
}
else
if
(
phonenumVal
.
length
>
phonenumLen
)
{
showMessage
(
'参与者手机号码不能超过'
+
phonenumLen
+
'个字'
,
3000
,
true
);
return
false
}
else
if
(
!
reg
.
test
(
phonenumVal
))
{
showMessage
(
'请输入正确的参与者手机号码'
,
3000
,
true
);
}
else
if
(
!
reg
.
test
(
phonenumVal
))
{
showMessage
(
'请输入正确的参与者手机号码'
,
3000
,
true
);
return
false
}
}
// 验证活动宣言
if
(
introDuce
.
attr
(
'c_validateempty'
)
==
'yes'
)
{
if
(
introDuce
.
attr
(
'c_validateempty'
)
==
'yes'
)
{
var
introDuceVal
=
introDuce
.
val
()
var
introDuceLen
=
introDuce
.
attr
(
'c_len'
)
var
introDuceName
=
introDuce
.
attr
(
'c_name'
)
if
(
introDuceVal
==
''
)
{
showMessage
(
'请输入'
+
introDuceName
,
3000
,
true
);
if
(
introDuceVal
==
''
)
{
showMessage
(
'请输入'
+
introDuceName
,
3000
,
true
);
return
false
}
else
if
(
introDuceVal
.
length
>
introDuceLen
)
{
showMessage
(
introDuceName
+
'不能超过'
+
introDuceLen
+
'个字'
,
3000
,
true
);
}
else
if
(
introDuceVal
.
length
>
introDuceLen
)
{
showMessage
(
introDuceName
+
'不能超过'
+
introDuceLen
+
'个字'
,
3000
,
true
);
return
false
}
}
// 验证身份证
if
(
signInput
.
attr
(
'c_validateempty'
)
==
'yes'
)
{
if
(
signInput
.
attr
(
'c_validateempty'
)
==
'yes'
)
{
var
signInputVal
=
signInput
.
val
()
var
signInputName
=
signInput
.
attr
(
'c_name'
)
var
signInputLen
=
signInput
.
attr
(
'c_len'
)
if
(
signInputVal
==
''
)
{
showMessage
(
'请输入'
+
signInputName
,
3000
,
true
);
if
(
signInputVal
==
''
)
{
showMessage
(
'请输入'
+
signInputName
,
3000
,
true
);
return
false
}
else
if
(
signInputVal
.
length
>
signInputLen
)
{
showMessage
(
signInputName
+
'不能超过'
+
signInputLen
+
'个字'
,
3000
,
true
);
}
else
if
(
signInputVal
.
length
>
signInputLen
)
{
showMessage
(
signInputName
+
'不能超过'
+
signInputLen
+
'个字'
,
3000
,
true
);
return
false
}
else
if
(
!
validateIDNumber
(
signInputVal
))
{
showMessage
(
'请输入正确的'
+
signInputName
,
3000
,
true
);
}
else
if
(
!
validateIDNumber
(
signInputVal
))
{
showMessage
(
'请输入正确的'
+
signInputName
,
3000
,
true
);
return
false
}
}
// 验证上传图片
if
(
uploadImg
.
attr
(
'src'
)
==
''
)
{
showMessage
(
'请上传一张照片'
,
3000
,
true
);
if
(
uploadImg
.
attr
(
'src'
)
==
''
)
{
showMessage
(
'请上传一张照片'
,
3000
,
true
);
return
false
}
var
params
=
{
kgAcActivityOrgId
:
getQueryString
(
'orgId'
),
//模板变量中获取,机构id
declaration
:
introDuce
.
val
(),
//参赛宣言
imageUrl
:
uploadImg
.
attr
(
'src'
),
//上传图片地址
name
:
userName
.
val
(),
// 姓名
userPhone
:
phonenum
.
val
(),
//用户填写的手机号
}
if
(
addInput
.
length
)
{
for
(
var
i
=
0
;
i
<
addInput
.
length
;
i
++
)
{
params
[
'x'
+
(
i
+
1
)]
=
$
(
'#'
+
addInput
[
i
].
id
).
val
()
}
}
var
activityCode
=
rules
.
acActivity
.
code
$
.
ajax
({
type
:
'POST'
,
headers
:
{
'content-type'
:
'application/json'
},
url
:
baseUrl
+
'/ACTIVITY/sz/sign-up/'
+
activityCode
,
data
:
JSON
.
stringify
(
params
),
success
:
function
(
data
)
{
showMessage
(
'提交成功'
,
3000
,
true
);
}
})
});
}
function
selectFileImage
(
fileObj
)
{
var
file
=
fileObj
.
files
[
'0'
];
// 获取机构名称
function
getOrgNameFn
()
{
$
.
ajax
({
type
:
'GET'
,
url
:
baseUrl
+
'/ORG/hospital/community/hospitalInfo/'
+
getQueryString
(
'orgId'
),
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
$
(
'#act11739232574395'
).
val
(
data
.
records
.
orgName
)
}
},
error
:
function
()
{
showMessage
(
'找不到此机构'
,
3000
,
true
);
}
})
}
// 获取URL中指定参数
function
getQueryString
(
name
)
{
var
reg
=
new
RegExp
(
'(^|&)'
+
name
+
'=([^&]*)(&|$)'
,
'i'
);
var
r
=
window
.
location
.
search
.
substr
(
1
).
match
(
reg
);
if
(
r
!=
null
)
{
return
unescape
(
r
[
2
]);
}
return
null
;
}
function
selectFileImage
(
fileObj
)
{
var
file
=
fileObj
.
files
[
'0'
];
//图片方向角 added by lzk
var
Orientation
=
null
;
if
(
file
)
{
console
.
log
(
"正在上传,请稍后..."
);
var
Orientation
=
null
;
if
(
file
)
{
console
.
log
(
"正在上传,请稍后..."
);
var
rFilter
=
/^
(
image
\/
jpeg|image
\/
png|image
\/
jpg|image
\/
gif
)
$/i
;
// 检查图片格式
if
(
!
rFilter
.
test
(
file
.
type
))
{
showMessage
(
'请选择jpeg/jpg/gif/png格式的图片'
,
3000
,
true
);
return
;
}
if
(
!
rFilter
.
test
(
file
.
type
))
{
showMessage
(
'请选择jpeg/jpg/gif/png格式的图片'
,
3000
,
true
);
return
;
}
//获取照片方向角属性,用户旋转控制
EXIF
.
getData
(
file
,
function
()
{
EXIF
.
getAllTags
(
this
);
Orientation
=
EXIF
.
getTag
(
this
,
'Orientation'
);
EXIF
.
getData
(
file
,
function
()
{
EXIF
.
getAllTags
(
this
);
Orientation
=
EXIF
.
getTag
(
this
,
'Orientation'
);
//return;
});
var
oReader
=
new
FileReader
();
oReader
.
onload
=
function
(
e
)
{
});
var
oReader
=
new
FileReader
();
oReader
.
onload
=
function
(
e
)
{
//var blob = URL.createObjectURL(file);
//_compress(blob, file, basePath);
var
image
=
new
Image
();
image
.
src
=
e
.
target
.
result
;
image
.
onload
=
function
()
{
var
expectWidth
=
this
.
naturalWidth
;
var
expectHeight
=
this
.
naturalHeight
;
if
(
this
.
naturalWidth
>
this
.
naturalHeight
&&
this
.
naturalWidth
>
800
)
{
expectWidth
=
800
;
expectHeight
=
expectWidth
*
this
.
naturalHeight
/
this
.
naturalWidth
;
}
else
if
(
this
.
naturalHeight
>
this
.
naturalWidth
&&
this
.
naturalHeight
>
1200
)
{
expectHeight
=
1200
;
expectWidth
=
expectHeight
*
this
.
naturalWidth
/
this
.
naturalHeight
;
}
var
canvas
=
document
.
createElement
(
"canvas"
);
var
ctx
=
canvas
.
getContext
(
"2d"
);
canvas
.
width
=
expectWidth
;
canvas
.
height
=
expectHeight
;
ctx
.
drawImage
(
this
,
0
,
0
,
expectWidth
,
expectHeight
);
var
base64
=
null
;
var
image
=
new
Image
();
image
.
src
=
e
.
target
.
result
;
image
.
onload
=
function
()
{
var
expectWidth
=
this
.
naturalWidth
;
var
expectHeight
=
this
.
naturalHeight
;
if
(
this
.
naturalWidth
>
this
.
naturalHeight
&&
this
.
naturalWidth
>
800
)
{
expectWidth
=
800
;
expectHeight
=
expectWidth
*
this
.
naturalHeight
/
this
.
naturalWidth
;
}
else
if
(
this
.
naturalHeight
>
this
.
naturalWidth
&&
this
.
naturalHeight
>
1200
)
{
expectHeight
=
1200
;
expectWidth
=
expectHeight
*
this
.
naturalWidth
/
this
.
naturalHeight
;
}
var
canvas
=
document
.
createElement
(
"canvas"
);
var
ctx
=
canvas
.
getContext
(
"2d"
);
canvas
.
width
=
expectWidth
;
canvas
.
height
=
expectHeight
;
ctx
.
drawImage
(
this
,
0
,
0
,
expectWidth
,
expectHeight
);
var
base64
=
null
;
//修复ios
if
(
navigator
.
userAgent
.
match
(
/iphone/i
))
{
if
(
navigator
.
userAgent
.
match
(
/iphone/i
))
{
//如果方向角不为1,都需要进行旋转
if
(
Orientation
!=
""
&&
Orientation
!=
1
){
switch
(
Orientation
){
if
(
Orientation
!=
""
&&
Orientation
!=
1
)
{
switch
(
Orientation
)
{
case
6
:
//需要顺时针(向左)90度旋转
rotateImg
(
this
,
'left'
,
canvas
);
break
;
rotateImg
(
this
,
'left'
,
canvas
);
break
;
case
8
:
//需要逆时针(向右)90度旋转
rotateImg
(
this
,
'right'
,
canvas
);
break
;
rotateImg
(
this
,
'right'
,
canvas
);
break
;
case
3
:
//需要180度旋转
rotateImg
(
this
,
'right'
,
canvas
);
//转两次
rotateImg
(
this
,
'right'
,
canvas
);
break
;
}
}
base64
=
canvas
.
toDataURL
(
"image/jpeg"
,
0.8
);
}
else
if
(
navigator
.
userAgent
.
match
(
/Android/i
))
{
// 修复android
var
encoder
=
new
JPEGEncoder
();
base64
=
encoder
.
encode
(
ctx
.
getImageData
(
0
,
0
,
expectWidth
,
expectHeight
),
80
);
}
else
{
if
(
Orientation
!=
""
&&
Orientation
!=
1
){
switch
(
Orientation
){
rotateImg
(
this
,
'right'
,
canvas
);
//转两次
rotateImg
(
this
,
'right'
,
canvas
);
break
;
}
}
base64
=
canvas
.
toDataURL
(
"image/jpeg"
,
0.8
);
}
else
if
(
navigator
.
userAgent
.
match
(
/Android/i
))
{
// 修复android
var
encoder
=
new
JPEGEncoder
();
base64
=
encoder
.
encode
(
ctx
.
getImageData
(
0
,
0
,
expectWidth
,
expectHeight
),
80
);
}
else
{
if
(
Orientation
!=
""
&&
Orientation
!=
1
)
{
switch
(
Orientation
)
{
case
6
:
//需要顺时针(向左)90度旋转
rotateImg
(
this
,
'left'
,
canvas
);
break
;
rotateImg
(
this
,
'left'
,
canvas
);
break
;
case
8
:
//需要逆时针(向右)90度旋转
rotateImg
(
this
,
'right'
,
canvas
);
break
;
rotateImg
(
this
,
'right'
,
canvas
);
break
;
case
3
:
//需要180度旋转
rotateImg
(
this
,
'right'
,
canvas
);
//转两次
rotateImg
(
this
,
'right'
,
canvas
);
break
;
}
}
base64
=
canvas
.
toDataURL
(
"image/jpeg"
,
0.8
);
}
$
(
"#act31419345204861 img"
).
attr
(
"src"
,
base64
);
};
};
oReader
.
readAsDataURL
(
file
);
}
}
rotateImg
(
this
,
'right'
,
canvas
);
//转两次
rotateImg
(
this
,
'right'
,
canvas
);
break
;
}
}
base64
=
canvas
.
toDataURL
(
"image/jpeg"
,
0.8
);
}
$
(
"#act31419345204861 img"
).
attr
(
"src"
,
base64
);
};
};
oReader
.
readAsDataURL
(
file
);
}
}
//对图片旋转处理
function
rotateImg
(
img
,
direction
,
canvas
)
{
function
rotateImg
(
img
,
direction
,
canvas
)
{
//最小与最大旋转方向,图片旋转4次后回到原方向
var
min_step
=
0
;
var
max_step
=
3
;
var
min_step
=
0
;
var
max_step
=
3
;
//var img = document.getElementById(pid);
if
(
img
==
null
)
return
;
if
(
img
==
null
)
return
;
//img的高度和宽度不能在img元素隐藏后获取,否则会出错
var
height
=
img
.
height
;
var
width
=
img
.
width
;
var
height
=
img
.
height
;
var
width
=
img
.
width
;
//var step = img.getAttribute('step');
var
step
=
2
;
if
(
step
==
null
)
{
step
=
min_step
;
}
if
(
direction
==
'right'
)
{
step
++
;
var
step
=
2
;
if
(
step
==
null
)
{
step
=
min_step
;
}
if
(
direction
==
'right'
)
{
step
++
;
//旋转到原位置,即超过最大值
step
>
max_step
&&
(
step
=
min_step
);
}
else
{
step
--
;
step
<
min_step
&&
(
step
=
max_step
);
step
>
max_step
&&
(
step
=
min_step
);
}
else
{
step
--
;
step
<
min_step
&&
(
step
=
max_step
);
}
//旋转角度以弧度值为参数
var
degree
=
step
*
90
*
Math
.
PI
/
180
;
var
ctx
=
canvas
.
getContext
(
'2d'
);
switch
(
step
)
{
case
0
:
canvas
.
width
=
width
;
canvas
.
height
=
height
;
ctx
.
drawImage
(
img
,
0
,
0
);
break
;
case
1
:
canvas
.
width
=
height
;
canvas
.
height
=
width
;
ctx
.
rotate
(
degree
);
ctx
.
drawImage
(
img
,
0
,
-
height
);
break
;
case
2
:
canvas
.
width
=
width
;
canvas
.
height
=
height
;
ctx
.
rotate
(
degree
);
ctx
.
drawImage
(
img
,
-
width
,
-
height
);
break
;
case
3
:
canvas
.
width
=
height
;
canvas
.
height
=
width
;
ctx
.
rotate
(
degree
);
ctx
.
drawImage
(
img
,
-
width
,
0
);
break
;
}
var
degree
=
step
*
90
*
Math
.
PI
/
180
;
var
ctx
=
canvas
.
getContext
(
'2d'
);
switch
(
step
)
{
case
0
:
canvas
.
width
=
width
;
canvas
.
height
=
height
;
ctx
.
drawImage
(
img
,
0
,
0
);
break
;
case
1
:
canvas
.
width
=
height
;
canvas
.
height
=
width
;
ctx
.
rotate
(
degree
);
ctx
.
drawImage
(
img
,
0
,
-
height
);
break
;
case
2
:
canvas
.
width
=
width
;
canvas
.
height
=
height
;
ctx
.
rotate
(
degree
);
ctx
.
drawImage
(
img
,
-
width
,
-
height
);
break
;
case
3
:
canvas
.
width
=
height
;
canvas
.
height
=
width
;
ctx
.
rotate
(
degree
);
ctx
.
drawImage
(
img
,
-
width
,
0
);
break
;
}
}
// 验证身份证
...
...
@@ -415,7 +1194,7 @@
// 判断年份的范围(0岁到130岁之间)
var
time
=
now_year
-
year
if
(
time
>=
0
&&
time
<=
130
)
{
return
true
return
true
}
return
false
}
...
...
@@ -431,11 +1210,11 @@
var
arrCh
=
new
Array
(
'1'
,
'0'
,
'X'
,
'9'
,
'8'
,
'7'
,
'6'
,
'5'
,
'4'
,
'3'
,
'2'
)
var
cardTemp
=
0
,
i
,
valnum
for
(
i
=
0
;
i
<
17
;
i
++
)
{
cardTemp
+=
card
.
substr
(
i
,
1
)
*
arrInt
[
i
]
cardTemp
+=
card
.
substr
(
i
,
1
)
*
arrInt
[
i
]
}
valnum
=
arrCh
[
cardTemp
%
11
]
if
(
valnum
==
card
.
substr
(
17
,
1
).
toUpperCase
())
{
return
true
return
true
}
return
false
}
...
...
@@ -449,7 +1228,7 @@
var
cardTemp
=
0
,
i
card
=
card
.
substr
(
0
,
6
)
+
'19'
+
card
.
substr
(
6
,
card
.
length
-
6
)
for
(
i
=
0
;
i
<
17
;
i
++
)
{
cardTemp
+=
card
.
substr
(
i
,
1
)
*
arrInt
[
i
]
cardTemp
+=
card
.
substr
(
i
,
1
)
*
arrInt
[
i
]
}
card
+=
arrCh
[
cardTemp
%
11
]
return
card
...
...
@@ -485,19 +1264,19 @@
}
// 页面跳转
function
transPage
(
_pageNumber
,
_activityCode
,
_token
,
_urlParam
)
{
function
transPage
(
_pageNumber
,
_activityCode
,
_token
,
_urlParam
)
{
var
url
=
''
if
(
typeof
_urlParam
!==
'undefined'
&&
_urlParam
!==
''
)
{
url
=
baseUrl
+
"/ACTIVITY/view/"
+
_activityCode
+
"/"
+
_pageNumber
+
'?'
+
_urlParam
;
}
else
{
url
=
baseUrl
+
"/ACTIVITY/view/"
+
_activityCode
+
"/"
+
_pageNumber
;
if
(
typeof
_urlParam
!==
'undefined'
&&
_urlParam
!==
''
)
{
url
=
baseUrl
+
"/ACTIVITY/view/"
+
_activityCode
+
"/"
+
_pageNumber
+
'?'
+
_urlParam
;
}
else
{
url
=
baseUrl
+
"/ACTIVITY/view/"
+
_activityCode
+
"/"
+
_pageNumber
;
}
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'
;
...
...
@@ -505,4 +1284,4 @@
document
.
body
.
appendChild
(
_form
);
_form
.
submit
();
}
</script>
</script>
\ No newline at end of file
showPhotos/user.html
View file @
46b55c3c
...
...
@@ -5,16 +5,598 @@
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1,user-scalable=no"
>
<meta
name=
"format-detection"
content=
"telephone=no"
>
<title>
宝贝,因“喂”爱你
</title>
<link
rel=
"stylesheet"
href=
"https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/css/activity.css"
>
<link
rel=
"stylesheet"
href=
"https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/css/toast.css"
>
<script
type=
"text/javascript"
src=
"https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotosjs/js/jquery-3.4.1.min.js"
></script>
<link
rel=
"stylesheet"
href=
"css/activity.css"
>
<link
rel=
"stylesheet"
href=
"css/toast.css"
>
<!-- <link rel="stylesheet" href="https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/css/activity.css">
<link rel="stylesheet" href="https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/css/toast.css"> -->
<!-- <script type="text/javascript" src="https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotosjs/js/jquery-3.4.1.min.js"></script>
<script type="text/javascript" src="https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/js/html2Json.js"></script>
<script type="text/javascript" src="https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/js/pageJson/userJson.js"></script>
<script type="text/javascript" src="https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/js/modalJson/shareModal.js"></script>
<script type="text/javascript" src="https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/js/modalJson/voteModal.js"></script>
<script type="text/javascript" src="https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/js/autoFontsize.min.js"></script>
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.4.0.js"></script> -->
<script
type=
"text/javascript"
src=
"https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/js/jquery-3.4.1.min.js"
></script>
<script
type=
"text/javascript"
src=
"https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/js/toast.js"
></script>
<script
type=
"text/javascript"
src=
"https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/js/html2Json.js"
></script>
<script
type=
"text/javascript"
src=
"https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/js/pageJson/userJson.js"
></script>
<script
type=
"text/javascript"
src=
"https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/js/modalJson/shareModal.js"
></script>
<script
type=
"text/javascript"
src=
"https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/js/modalJson/voteModal.js"
></script>
<script
type=
"text/javascript"
src=
"https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/js/removeAttr.js"
></script>
<script
type=
"text/javascript"
src=
"https://space-api.check.icaremgt.com/ACTIVITY/gitlab-static?url=http://gitlab.icaremgt.com/tanxinyu/h5_activity/raw/master/showPhotos/js/autoFontsize.min.js"
></script>
<script
type=
"text/javascript"
src=
"http://res.wx.qq.com/open/js/jweixin-1.4.0.js"
></script>
<script
type=
"text/javascript"
>
var
data
=
{
"id"
:
"17"
,
"pageNumber"
:
"1"
,
"backgroundColor"
:
""
,
"htmlJson"
:
{
"node"
:
"root"
,
"child"
:
[
{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:
{
"id"
:
"html-template-3"
,
"class"
:
"container"
},
"child"
:
[
{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:
{
"class"
:
"full-width"
},
"child"
:
[
{
"node"
:
"element"
,
"tag"
:
"img"
,
"attr"
:
{
"id"
:
"act31044562973012"
,
"c_typename"
:
"logo"
,
"c_type"
:
"image"
,
"c_width"
:
"135"
,
"c_height"
:
"50"
,
"c_desc"
:
"建议上传135X50的图片"
,
"src"
:
"http://qnfile.icareyou.net/f6ec1cb23c0740d0995c91de7a9964c21560411548597.jpg"
,
"class"
:
"act-logo"
}
},
{
"node"
:
"text"
,
"text"
:
" "
},
{
"node"
:
"element"
,
"tag"
:
"img"
,
"attr"
:
{
"id"
:
"act3105344332423"
,
"c_typename"
:
"mainBanner"
,
"c_type"
:
"image"
,
"c_width"
:
"375"
,
"c_height"
:
"367"
,
"c_desc"
:
"建议上传375X367的图片"
,
"src"
:
"http://qnfile.icareyou.net/e1e347fa1d3a4eb79839e40c6ba312531560307520219.jpg"
,
"class"
:
"full-width"
}
},
{
"node"
:
"text"
,
"text"
:
" "
},
{
"node"
:
"element"
,
"tag"
:
"img"
,
"attr"
:
{
"id"
:
"act3110143885264"
,
"c_typename"
:
"returnBack"
,
"c_type"
:
"image"
,
"c_width"
:
"154"
,
"c_height"
:
"64"
,
"c_desc"
:
"建议上传154X64的图片"
,
"src"
:
"http://qnfile.icareyou.net/fa5b58b475bf40b9968804c3496845631560913467100"
,
"class"
:
"return-back"
}
}
]
},
{
"node"
:
"text"
,
"text"
:
" "
},
{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:
{
"class"
:
"content"
},
"child"
:
[
{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:
{
"id"
:
"act31142119991744"
,
"class"
:
"countdown"
},
"child"
:
[
{
"node"
:
"text"
,
"text"
:
" 投票结束倒计时:"
},
{
"node"
:
"element"
,
"tag"
:
"span"
,
"child"
:
[
{
"node"
:
"text"
,
"text"
:
"0天00时00分"
}
]
}
]
},
{
"node"
:
"text"
,
"text"
:
" "
},
{
"node"
:
"element"
,
"tag"
:
"ul"
,
"attr"
:
{
"class"
:
[
"tab-list"
,
"m-b"
]
},
"child"
:
[
{
"node"
:
"element"
,
"tag"
:
"li"
,
"child"
:
[
{
"node"
:
"element"
,
"tag"
:
"img"
,
"attr"
:
{
"id"
:
"act31119351441050"
,
"c_typename"
:
"playerVotingBtn"
,
"c_type"
:
"image"
,
"c_width"
:
"184"
,
"c_height"
:
"82"
,
"c_desc"
:
"建议上传184X82的图片"
,
"src"
:
"http://qnfile.icareyou.net/2706845413b541fcbcaaaea37a8a5a061560914799693"
}
}
]
},
{
"node"
:
"text"
,
"text"
:
" "
},
{
"node"
:
"element"
,
"tag"
:
"li"
,
"child"
:
[
{
"node"
:
"element"
,
"tag"
:
"img"
,
"attr"
:
{
"id"
:
"act31119414834381"
,
"c_typename"
:
"playerVotedBtn"
,
"c_type"
:
"image"
,
"c_width"
:
"184"
,
"c_height"
:
"82"
,
"c_desc"
:
"建议上传184X82的图片"
,
"src"
:
"http://qnfile.icareyou.net/fcec94d65cb145518fd1b701465796f21560914835104"
}
}
]
}
]
},
{
"node"
:
"text"
,
"text"
:
" "
},
{
"node"
:
"element"
,
"tag"
:
"form"
,
"attr"
:
{
"id"
:
"act3932189955"
,
"class"
:
"sign-form"
},
"child"
:
[
{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:
{
"class"
:
[
"user-info"
,
"m-b"
]
},
"child"
:
[
{
"node"
:
"element"
,
"tag"
:
"img"
,
"attr"
:
{
"src"
:
"http://qnfile.icareyou.net/e1e347fa1d3a4eb79839e40c6ba312531560307520219.jpg"
,
"class"
:
"inner-pic"
}
},
{
"node"
:
"text"
,
"text"
:
" "
},
{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:
{
"class"
:
"inner-info"
},
"child"
:
[
{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:
{
"class"
:
"userName"
},
"child"
:
[
{
"node"
:
"text"
,
"text"
:
" 姓名:"
},
{
"node"
:
"element"
,
"tag"
:
"span"
,
"child"
:
[
{
"node"
:
"text"
,
"text"
:
"hehe"
}
]
}
]
},
{
"node"
:
"text"
,
"text"
:
" "
},
{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:
{
"class"
:
"userNo"
},
"child"
:
[
{
"node"
:
"text"
,
"text"
:
" 编号:"
},
{
"node"
:
"element"
,
"tag"
:
"span"
,
"child"
:
[
{
"node"
:
"text"
,
"text"
:
"hehe"
}
]
}
]
},
{
"node"
:
"text"
,
"text"
:
" "
},
{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:
{
"class"
:
"userRank"
},
"child"
:
[
{
"node"
:
"text"
,
"text"
:
" 排名:"
},
{
"node"
:
"element"
,
"tag"
:
"span"
,
"child"
:
[
{
"node"
:
"text"
,
"text"
:
"hehe"
}
]
}
]
},
{
"node"
:
"text"
,
"text"
:
" "
},
{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:
{
"class"
:
"userVoteNum"
},
"child"
:
[
{
"node"
:
"text"
,
"text"
:
" 票数:"
},
{
"node"
:
"element"
,
"tag"
:
"span"
,
"child"
:
[
{
"node"
:
"text"
,
"text"
:
"hehe"
}
]
}
]
}
]
}
]
},
{
"node"
:
"text"
,
"text"
:
" "
},
{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:
{
"class"
:
[
"form-row"
,
"m-b"
]
},
"child"
:
[
{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:
{
"class"
:
"form-input-group"
},
"child"
:
[
{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:
{
"class"
:
"form-input-group-inner"
},
"child"
:
[
{
"node"
:
"element"
,
"tag"
:
"input"
,
"attr"
:
{
"type"
:
"text"
,
"name"
:
"note"
,
"c_remove"
:
"readonly"
,
"placeholder"
:
"请输入介绍/拉票宣言等,字数仅限XXX"
,
"class"
:
"userState"
}
}
]
}
]
}
]
},
{
"node"
:
"text"
,
"text"
:
" "
},
{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:
{
"class"
:
[
"form-row"
,
"text-center"
,
"m-b"
]
},
"child"
:
[
{
"node"
:
"element"
,
"tag"
:
"img"
,
"attr"
:
{
"src"
:
"http://qnfile.icareyou.net/728ba828fe094d4c8dac41828561bdd61560926221478"
,
"class"
:
"show-pic"
}
}
]
}
]
}
]
},
{
"node"
:
"text"
,
"text"
:
" "
},
{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:
{
"class"
:
"index-bottom"
},
"child"
:
[
{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:
{
"class"
:
"btn-group-info"
},
"child"
:
[
{
"node"
:
"element"
,
"tag"
:
"img"
,
"attr"
:
{
"id"
:
"act41612547506702"
,
"c_typename"
:
"rangeListBtn"
,
"c_type"
:
"image"
,
"c_width"
:
"154"
,
"c_height"
:
"64"
,
"c_desc"
:
"建议上传154x64的图片"
,
"src"
:
"http://qnfile.icareyou.net/1b560d6dfe2d4e8e8a05fe90336cc5f61560411872708.jpg"
}
}
]
},
{
"node"
:
"text"
,
"text"
:
" "
},
{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:
{
"class"
:
"btn-group-info"
},
"child"
:
[
{
"node"
:
"element"
,
"tag"
:
"img"
,
"attr"
:
{
"id"
:
"act4161336684689"
,
"c_typename"
:
"playerIndexBtn"
,
"c_type"
:
"image"
,
"c_width"
:
"154"
,
"c_height"
:
"64"
,
"c_desc"
:
"建议上传154x64的图片"
,
"src"
:
"http://qnfile.icareyou.net/1c24d979349f482aafd737c2d5acb8e11560411839686.jpg"
}
}
]
},
{
"node"
:
"text"
,
"text"
:
" "
},
{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:
{
"class"
:
"btn-group-info"
},
"child"
:
[
{
"node"
:
"element"
,
"tag"
:
"img"
,
"attr"
:
{
"id"
:
"act41613113951133"
,
"c_typename"
:
"ruleBtn"
,
"c_type"
:
"image"
,
"c_width"
:
"154"
,
"c_height"
:
"64"
,
"c_desc"
:
"建议上传154x64的图片"
,
"src"
:
"http://qnfile.icareyou.net/c5f549aeb74749ac9529b28cc78c715f1560411823738.jpg"
}
}
]
}
]
}
]
}
]
},
//页面
"dataJson"
:
""
,
"relationship"
:
""
,
// 弹框
"createTime"
:
"2019-07-02 15:46:09"
,
"updateTime"
:
"2019-07-09 17:15:13"
,
"playerVote1"
:
{
"id"
:
"17"
,
"pageNumber"
:
"1"
,
"backgroundColor"
:
""
,
"htmlJson"
:
{
"node"
:
"root"
,
"child"
:[{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:{
"id"
:
"html-template-4"
},
"child"
:[{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:{
"id"
:
"act21721403452449"
,
"class"
:
"c-modal-wrap"
},
"child"
:[{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:{
"class"
:
"mshe-mask"
}},{
"node"
:
"text"
,
"text"
:
" "
},{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:{
"class"
:
"c-modal"
},
"child"
:[{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:{
"class"
:
"modal-dialog"
},
"child"
:[{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:{
"id"
:
"act1174937205684"
,
"c_desc"
:
"投票成功<br/>今天还可投<span>{{数量}}</span>票"
,
"c_type"
:
"dialog"
,
"c_typename"
:
"dialog_playerVote1"
,
"c_onesrc"
:
"http://qnfile.icareyou.net/b495c42fc4f94a25a9c681f06b984e131561343752810.jpg"
,
"c_twosrc"
:
"http://qnfile.icareyou.net/ac0cc587263c4656b535c1c8801a94be1561343770180.jpg"
,
"class"
:
"modal-content"
},
"child"
:[{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:{
"class"
:
"modal-header"
},
"child"
:[{
"node"
:
"element"
,
"tag"
:
"img"
,
"attr"
:{
"src"
:
"http://qnfile.icareyou.net/363a344aa7424d219a5fc86eff7265751561343712294.jpg"
,
"class"
:
"header-pic"
}}]},{
"node"
:
"text"
,
"text"
:
" "
},{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:{
"class"
:
"modal-body"
},
"child"
:[{
"node"
:
"element"
,
"tag"
:
"p"
,
"attr"
:{
"id"
:
"act1185354268270"
,
"class"
:
"struct"
},
"child"
:[{
"node"
:
"text"
,
"text"
:
"投票成功"
},{
"node"
:
"element"
,
"tag"
:
"br"
},{
"node"
:
"text"
,
"text"
:
"今天还可投"
},{
"node"
:
"element"
,
"tag"
:
"span"
,
"child"
:[{
"node"
:
"text"
,
"text"
:
"{{数量}}"
}]},{
"node"
:
"text"
,
"text"
:
"票"
}]},{
"node"
:
"text"
,
"text"
:
" "
},{
"node"
:
"element"
,
"tag"
:
"a"
,
"attr"
:{
"href"
:
"javascript:;"
,
"id"
:
"act21728433893489"
,
"class"
:
"goon-vote"
},
"child"
:[{
"node"
:
"element"
,
"tag"
:
"img"
,
"attr"
:{
"src"
:
"http://qnfile.icareyou.net/b495c42fc4f94a25a9c681f06b984e131561343752810.jpg"
}}]},{
"node"
:
"text"
,
"text"
:
" "
},{
"node"
:
"element"
,
"tag"
:
"a"
,
"attr"
:{
"href"
:
"javascript:;"
,
"id"
:
"act2172989331265"
,
"class"
:
"goon-vote"
},
"child"
:[{
"node"
:
"element"
,
"tag"
:
"img"
,
"attr"
:{
"src"
:
"http://qnfile.icareyou.net/ac0cc587263c4656b535c1c8801a94be1561343770180.jpg"
}}]}]},{
"node"
:
"text"
,
"text"
:
" "
},{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:{
"class"
:
"modal-close"
},
"child"
:[{
"node"
:
"element"
,
"tag"
:
"img"
,
"attr"
:{
"src"
:
"http://qnfile.icareyou.net/ddae57885c424abdb13d37c78038c6a01561343787282.jpg"
}}]}]}]}]}]}]}]},
//页面
"dataJson"
:
""
,
},
"playerVote1"
:
{
"id"
:
"17"
,
"pageNumber"
:
"1"
,
"backgroundColor"
:
""
,
"htmlJson"
:
{
"node"
:
"root"
,
"child"
:[{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:{
"id"
:
"html-template-4"
},
"child"
:[{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:{
"id"
:
"act21721403452449"
,
"class"
:
"c-modal-wrap"
},
"child"
:[{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:{
"class"
:
"mshe-mask"
}},{
"node"
:
"text"
,
"text"
:
" "
},{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:{
"class"
:
"c-modal"
},
"child"
:[{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:{
"class"
:
"modal-dialog"
},
"child"
:[{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:{
"id"
:
"act1174937205684"
,
"c_desc"
:
"投票成功<br/>今天还可投<span>{{数量}}</span>票"
,
"c_type"
:
"dialog"
,
"c_typename"
:
"dialog_playerVote1"
,
"c_onesrc"
:
"http://qnfile.icareyou.net/b495c42fc4f94a25a9c681f06b984e131561343752810.jpg"
,
"c_twosrc"
:
"http://qnfile.icareyou.net/ac0cc587263c4656b535c1c8801a94be1561343770180.jpg"
,
"class"
:
"modal-content"
},
"child"
:[{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:{
"class"
:
"modal-header"
},
"child"
:[{
"node"
:
"element"
,
"tag"
:
"img"
,
"attr"
:{
"src"
:
"http://qnfile.icareyou.net/363a344aa7424d219a5fc86eff7265751561343712294.jpg"
,
"class"
:
"header-pic"
}}]},{
"node"
:
"text"
,
"text"
:
" "
},{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:{
"class"
:
"modal-body"
},
"child"
:[{
"node"
:
"element"
,
"tag"
:
"p"
,
"attr"
:{
"id"
:
"act1185354268270"
,
"class"
:
"struct"
},
"child"
:[{
"node"
:
"text"
,
"text"
:
"投票成功"
},{
"node"
:
"element"
,
"tag"
:
"br"
},{
"node"
:
"text"
,
"text"
:
"今天还可投"
},{
"node"
:
"element"
,
"tag"
:
"span"
,
"child"
:[{
"node"
:
"text"
,
"text"
:
"{{数量}}"
}]},{
"node"
:
"text"
,
"text"
:
"票"
}]},{
"node"
:
"text"
,
"text"
:
" "
},{
"node"
:
"element"
,
"tag"
:
"a"
,
"attr"
:{
"href"
:
"javascript:;"
,
"id"
:
"act21728433893489"
,
"class"
:
"goon-vote"
},
"child"
:[{
"node"
:
"element"
,
"tag"
:
"img"
,
"attr"
:{
"src"
:
"http://qnfile.icareyou.net/b495c42fc4f94a25a9c681f06b984e131561343752810.jpg"
}}]},{
"node"
:
"text"
,
"text"
:
" "
},{
"node"
:
"element"
,
"tag"
:
"a"
,
"attr"
:{
"href"
:
"javascript:;"
,
"id"
:
"act2172989331265"
,
"class"
:
"goon-vote"
},
"child"
:[{
"node"
:
"element"
,
"tag"
:
"img"
,
"attr"
:{
"src"
:
"http://qnfile.icareyou.net/ac0cc587263c4656b535c1c8801a94be1561343770180.jpg"
}}]}]},{
"node"
:
"text"
,
"text"
:
" "
},{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:{
"class"
:
"modal-close"
},
"child"
:[{
"node"
:
"element"
,
"tag"
:
"img"
,
"attr"
:{
"src"
:
"http://qnfile.icareyou.net/ddae57885c424abdb13d37c78038c6a01561343787282.jpg"
}}]}]}]}]}]}]}]},
//页面
"dataJson"
:
""
,
},
"playerVote1"
:
{
"id"
:
"17"
,
"pageNumber"
:
"1"
,
"backgroundColor"
:
""
,
"htmlJson"
:
{
"node"
:
"root"
,
"child"
:[{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:{
"id"
:
"html-template-4"
},
"child"
:[{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:{
"id"
:
"act21721403452449"
,
"class"
:
"c-modal-wrap"
},
"child"
:[{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:{
"class"
:
"mshe-mask"
}},{
"node"
:
"text"
,
"text"
:
" "
},{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:{
"class"
:
"c-modal"
},
"child"
:[{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:{
"class"
:
"modal-dialog"
},
"child"
:[{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:{
"id"
:
"act1174937205684"
,
"c_desc"
:
"投票成功<br/>今天还可投<span>{{数量}}</span>票"
,
"c_type"
:
"dialog"
,
"c_typename"
:
"dialog_playerVote1"
,
"c_onesrc"
:
"http://qnfile.icareyou.net/b495c42fc4f94a25a9c681f06b984e131561343752810.jpg"
,
"c_twosrc"
:
"http://qnfile.icareyou.net/ac0cc587263c4656b535c1c8801a94be1561343770180.jpg"
,
"class"
:
"modal-content"
},
"child"
:[{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:{
"class"
:
"modal-header"
},
"child"
:[{
"node"
:
"element"
,
"tag"
:
"img"
,
"attr"
:{
"src"
:
"http://qnfile.icareyou.net/363a344aa7424d219a5fc86eff7265751561343712294.jpg"
,
"class"
:
"header-pic"
}}]},{
"node"
:
"text"
,
"text"
:
" "
},{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:{
"class"
:
"modal-body"
},
"child"
:[{
"node"
:
"element"
,
"tag"
:
"p"
,
"attr"
:{
"id"
:
"act1185354268270"
,
"class"
:
"struct"
},
"child"
:[{
"node"
:
"text"
,
"text"
:
"投票成功"
},{
"node"
:
"element"
,
"tag"
:
"br"
},{
"node"
:
"text"
,
"text"
:
"今天还可投"
},{
"node"
:
"element"
,
"tag"
:
"span"
,
"child"
:[{
"node"
:
"text"
,
"text"
:
"{{数量}}"
}]},{
"node"
:
"text"
,
"text"
:
"票"
}]},{
"node"
:
"text"
,
"text"
:
" "
},{
"node"
:
"element"
,
"tag"
:
"a"
,
"attr"
:{
"href"
:
"javascript:;"
,
"id"
:
"act21728433893489"
,
"class"
:
"goon-vote"
},
"child"
:[{
"node"
:
"element"
,
"tag"
:
"img"
,
"attr"
:{
"src"
:
"http://qnfile.icareyou.net/b495c42fc4f94a25a9c681f06b984e131561343752810.jpg"
}}]},{
"node"
:
"text"
,
"text"
:
" "
},{
"node"
:
"element"
,
"tag"
:
"a"
,
"attr"
:{
"href"
:
"javascript:;"
,
"id"
:
"act2172989331265"
,
"class"
:
"goon-vote"
},
"child"
:[{
"node"
:
"element"
,
"tag"
:
"img"
,
"attr"
:{
"src"
:
"http://qnfile.icareyou.net/ac0cc587263c4656b535c1c8801a94be1561343770180.jpg"
}}]}]},{
"node"
:
"text"
,
"text"
:
" "
},{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:{
"class"
:
"modal-close"
},
"child"
:[{
"node"
:
"element"
,
"tag"
:
"img"
,
"attr"
:{
"src"
:
"http://qnfile.icareyou.net/ddae57885c424abdb13d37c78038c6a01561343787282.jpg"
}}]}]}]}]}]}]}]},
//页面
"dataJson"
:
""
,
},
"playerVote1"
:
{
"id"
:
"17"
,
"pageNumber"
:
"1"
,
"backgroundColor"
:
""
,
"htmlJson"
:
{
"node"
:
"root"
,
"child"
:[{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:{
"id"
:
"html-template-4"
},
"child"
:[{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:{
"id"
:
"act21721403452449"
,
"class"
:
"c-modal-wrap"
},
"child"
:[{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:{
"class"
:
"mshe-mask"
}},{
"node"
:
"text"
,
"text"
:
" "
},{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:{
"class"
:
"c-modal"
},
"child"
:[{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:{
"class"
:
"modal-dialog"
},
"child"
:[{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:{
"id"
:
"act1174937205684"
,
"c_desc"
:
"投票成功<br/>今天还可投<span>{{数量}}</span>票"
,
"c_type"
:
"dialog"
,
"c_typename"
:
"dialog_playerVote1"
,
"c_onesrc"
:
"http://qnfile.icareyou.net/b495c42fc4f94a25a9c681f06b984e131561343752810.jpg"
,
"c_twosrc"
:
"http://qnfile.icareyou.net/ac0cc587263c4656b535c1c8801a94be1561343770180.jpg"
,
"class"
:
"modal-content"
},
"child"
:[{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:{
"class"
:
"modal-header"
},
"child"
:[{
"node"
:
"element"
,
"tag"
:
"img"
,
"attr"
:{
"src"
:
"http://qnfile.icareyou.net/363a344aa7424d219a5fc86eff7265751561343712294.jpg"
,
"class"
:
"header-pic"
}}]},{
"node"
:
"text"
,
"text"
:
" "
},{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:{
"class"
:
"modal-body"
},
"child"
:[{
"node"
:
"element"
,
"tag"
:
"p"
,
"attr"
:{
"id"
:
"act1185354268270"
,
"class"
:
"struct"
},
"child"
:[{
"node"
:
"text"
,
"text"
:
"投票成功"
},{
"node"
:
"element"
,
"tag"
:
"br"
},{
"node"
:
"text"
,
"text"
:
"今天还可投"
},{
"node"
:
"element"
,
"tag"
:
"span"
,
"child"
:[{
"node"
:
"text"
,
"text"
:
"{{数量}}"
}]},{
"node"
:
"text"
,
"text"
:
"票"
}]},{
"node"
:
"text"
,
"text"
:
" "
},{
"node"
:
"element"
,
"tag"
:
"a"
,
"attr"
:{
"href"
:
"javascript:;"
,
"id"
:
"act21728433893489"
,
"class"
:
"goon-vote"
},
"child"
:[{
"node"
:
"element"
,
"tag"
:
"img"
,
"attr"
:{
"src"
:
"http://qnfile.icareyou.net/b495c42fc4f94a25a9c681f06b984e131561343752810.jpg"
}}]},{
"node"
:
"text"
,
"text"
:
" "
},{
"node"
:
"element"
,
"tag"
:
"a"
,
"attr"
:{
"href"
:
"javascript:;"
,
"id"
:
"act2172989331265"
,
"class"
:
"goon-vote"
},
"child"
:[{
"node"
:
"element"
,
"tag"
:
"img"
,
"attr"
:{
"src"
:
"http://qnfile.icareyou.net/ac0cc587263c4656b535c1c8801a94be1561343770180.jpg"
}}]}]},{
"node"
:
"text"
,
"text"
:
" "
},{
"node"
:
"element"
,
"tag"
:
"div"
,
"attr"
:{
"class"
:
"modal-close"
},
"child"
:[{
"node"
:
"element"
,
"tag"
:
"img"
,
"attr"
:{
"src"
:
"http://qnfile.icareyou.net/ddae57885c424abdb13d37c78038c6a01561343787282.jpg"
}}]}]}]}]}]}]}]},
//页面
"dataJson"
:
""
,
}
}
var
rules
=
{
"acActivity"
:
{
"id"
:
"5"
,
"createTime"
:
"2019-06-11 15:48:59"
,
"updateTime"
:
"2019-07-02 23:24:51"
,
"createUserId"
:
"1"
,
"updateUserId"
:
"1"
,
"organizerOrgId"
:
"5235"
,
"activityStatus"
:
2
,
"name"
:
"活动通版晒照测试1"
,
"code"
:
"hdtbsztest1"
,
"startTime"
:
"2019-06-11 15:44:45"
,
"endTime"
:
"2019-09-12 15:44:50"
,
"lcTimeType"
:
3
,
"bindOrg"
:
true
,
"kgMpId"
:
"0"
,
"qrCodeMessage"
:
""
,
"kgAcActivityTypeId"
:
"1"
},
"acActivityOrgs"
:
[],
"acActivityRegistrationAudit"
:
""
,
"settings"
:
{
"szText"
:
{
"id"
:
"7"
,
"kgAcActivityId"
:
"5"
,
"shareTitile"
:
"share title"
,
"shareSubtitle"
:
"share cotentn"
,
"shareIcon"
:
""
,
"pullTitile"
:
"sha"
,
"pullSubtitle"
:
"hhhh"
,
"h5Title"
:
""
,
"createTime"
:
"2019-06-23 03:04:27"
,
"updateTime"
:
"2019-07-05 16:29:38"
},
"szRule"
:
{
"id"
:
"9"
,
"kgAcActivityId"
:
"5"
,
"registeringWx"
:
true
,
"registeringOrg"
:
false
,
"voteWx"
:
false
,
"voteOrg"
:
false
,
"voteNumDay"
:
50
,
"voteNumPeople"
:
9999
,
"createTime"
:
"2019-06-23 03:04:21"
,
"updateTime"
:
"2019-07-06 03:25:17"
}
}
}
var
user
=
{
id
:
''
,
token
:
'admin.725.b9d085900b8546fcb26e1683e8f4e7bb'
,
status
:
''
// 报名状态
}
</script>
<script
type=
"text/javascript"
>
wx
.
config
({
debug
:
false
,
// 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
appId
:
'${appId!}'
,
// 必填,公众号的唯一标识
...
...
@@ -34,19 +616,19 @@
<script
type=
"text/javascript"
>
// 公共变量
var
xtoken
=
"123123"
;
var
activityCode
=
"hdtbsztest1"
;
var
pageNumber
=
"1"
;
var
baseUrl
=
"http://space-api.check.icaremgt.com"
;
var
baseUrl
=
"http
s
://space-api.check.icaremgt.com"
;
$
(
'body'
).
prepend
(
json2html
(
userObj
));
$
(
'body'
).
prepend
(
json2html
(
shareModal
));
$
(
'body'
).
prepend
(
json2html
(
voteModal
));
$
(
'body'
).
prepend
(
json2html
(
voteEmptyModal
));
$
(
'#html-template-4'
).
addClass
(
'global-none'
);
$
(
'#html-template-5'
).
addClass
(
'global-none'
)
$
(
'#html-template-8'
).
addClass
(
'global-none'
);
var
gb_vote_loaded
=
false
$
(
function
(){
btnBindClick
();
// 绑定点击事件
userCountDown
(
10
,
$
(
'#act31142119991744 span'
));
//倒计时
userTabInfo
();
...
...
@@ -104,27 +686,27 @@
});
// 拉票
$
(
'#act31119351441050'
).
off
(
"click"
).
on
(
"click"
,
function
(){
$
(
'#html-template-8'
).
removeClass
(
'global-none'
)
$
(
'#html-template-8'
).
fadeIn
(
)
});
// 分享弹框关闭
$
(
document
).
on
(
'click'
,
'#html-template-8 .modal-close'
,
function
(){
$
(
'#html-template-8'
).
addClass
(
'global-none'
)
$
(
'#html-template-8'
).
fadeOut
(
)
});
// 投票
$
(
'#act31119414834381'
).
off
(
"click"
).
on
(
"click"
,
function
(){
$
(
'#html-template-4'
).
removeClass
(
'global-none'
)
voteClickFn
(
)
});
// 我要拉票
$
(
'#act2172989331265'
).
off
(
"click"
).
on
(
"click"
,
function
(){
$
(
'#html-template-8'
).
removeClass
(
'global-none'
)
$
(
'#html-template-8'
).
fadeIn
(
)
});
// 继续投票
$
(
'#act21728433893489'
).
off
(
"click"
).
on
(
"click"
,
function
(){
voteClickFn
()
});
// 投票弹框关闭
$
(
document
).
on
(
'click'
,
'#html-template-4 .modal-close'
,
function
(){
$
(
'#html-template-4'
).
addClass
(
'global-none'
)
$
(
'#html-template-4'
).
fadeOut
(
)
});
// 排行榜
...
...
@@ -139,7 +721,7 @@
// 活动秘籍
$
(
"#act41613113951133"
).
off
(
"click"
).
on
(
"click"
,
function
(){
$
(
'#html-template-8'
).
removeClass
(
'global-none'
)
$
(
'#html-template-8'
).
fadeIn
(
)
});
}
// 倒计时
...
...
@@ -171,26 +753,81 @@
},
1000
);
}
// 个人信息展示
function
userTabInfo
()
{
var
userInfoObj
=
{
userImg
:
'http://qnfile.icareyou.net/e1e347fa1d3a4eb79839e40c6ba312531560307520219.jpg'
,
userName
:
'小米'
,
userNo
:
'2939393'
,
userRank
:
'29'
,
userVoteNum
:
'200'
,
userState
:
'拉票宣言'
,
showImg
:
'http://qnfile.icareyou.net/e1e347fa1d3a4eb79839e40c6ba312531560307520219.jpg'
var
activityCode
=
rules
.
acActivity
.
code
var
id
=
getQueryString
(
'UserId'
)?
getQueryString
(
'UserId'
):
user
.
id
;
var
params
=
{
id
:
id
,
reviewStatus
:
1
// 审核状态
}
$
.
ajax
({
type
:
'GET'
,
url
:
baseUrl
+
'/ACTIVITY/sz/search/'
+
activityCode
,
data
:
params
,
success
:
function
(
data
)
{
if
(
data
.
status
==
200
)
{
var
userInfoObj
=
data
.
result
&&
data
.
result
.
records
&&
data
.
result
.
records
[
0
]
$
(
'#act3932189955 .user-info .inner-pic'
).
attr
(
'src'
,
userInfoObj
.
wechatAvatarUrl
);
var
innerInfo
=
$
(
'#act3932189955 .user-info .inner-info'
)
innerInfo
.
find
(
'.userName span'
).
text
(
userInfoObj
.
name
)
innerInfo
.
find
(
'.userNo span'
).
text
(
userInfoObj
.
userNumber
)
innerInfo
.
find
(
'.userRank span'
).
text
(
userInfoObj
.
userRank
)
// 排名
innerInfo
.
find
(
'.userVoteNum span'
).
text
(
userInfoObj
.
voteNum
)
$
(
'#act3932189955 .userState'
).
val
(
userInfoObj
.
declaration
)
$
(
'#act3932189955 .userState'
).
attr
(
'readOnly'
,
'readOnly'
)
$
(
'#act3932189955 .show-pic'
).
attr
(
'src'
,
userInfoObj
.
imageUrl
);
}
},
error
:
function
()
{
showMessage
(
'请求超时,请尝试刷新页面!'
,
3000
,
true
);
}
})
}
// 投票按钮
function
voteClickFn
(){
var
id
=
getQueryString
(
'UserId'
)?
getQueryString
(
'UserId'
):
user
.
id
;
var
_this
=
$
(
this
)
var
params
=
{
userId
:
id
}
var
activityCode
=
rules
.
acActivity
.
code
;
if
(
gb_vote_loaded
)
{
return
}
gb_vote_loaded
=
true
$
.
ajax
({
type
:
'PUT'
,
url
:
baseUrl
+
'/ACTIVITY/sz/vote/'
+
activityCode
,
data
:
params
,
success
:
function
(
data
)
{
gb_vote_loaded
=
false
if
(
data
.
status
==
200
)
{
$
(
'#act1185354268270 span'
).
text
(
data
.
result
.
voteNumDay
)
$
(
'#act3932189955 .user-info .inner-info'
).
find
(
'.userVoteNum span'
).
text
(
data
.
result
.
voteNum
)
$
(
'#html-template-4'
).
fadeIn
()
}
else
if
(
data
.
status
==
201
)
{
$
(
'#act51626389412499 span'
).
text
(
rules
.
szRule
.
voteNumDay
)
// 模板参数中获取
$
(
'#html-template-5'
).
fadeIn
()
}
},
error
:
function
()
{
gb_vote_loaded
=
false
}
$
(
'#act3932189955 .user-info .inner-pic'
).
attr
(
'src'
,
userInfoObj
.
userImg
);
var
innerInfo
=
$
(
'#act3932189955 .user-info .inner-info'
)
innerInfo
.
find
(
'.userName span'
).
text
(
userInfoObj
.
userName
)
innerInfo
.
find
(
'.userNo span'
).
text
(
userInfoObj
.
userNo
)
innerInfo
.
find
(
'.userRank span'
).
text
(
userInfoObj
.
userRank
)
innerInfo
.
find
(
'.userVoteNum span'
).
text
(
userInfoObj
.
userVoteNum
)
$
(
'#act3932189955 .userState'
).
val
(
userInfoObj
.
userState
)
$
(
'#act3932189955 .user-info .inner-pic'
).
attr
(
'src'
,
userInfoObj
.
userImg
);
$
(
'#act3932189955 .show-pic'
).
attr
(
'src'
,
userInfoObj
.
showImg
);
}
})
}
// 获取URL中指定参数
function
getQueryString
(
name
)
{
var
reg
=
new
RegExp
(
'(^|&)'
+
name
+
'=([^&]*)(&|$)'
,
'i'
);
var
r
=
window
.
location
.
search
.
substr
(
1
).
match
(
reg
);
if
(
r
!=
null
)
{
return
unescape
(
r
[
2
]);
}
return
null
;
}
// 页面跳转
function
transPage
(
_pageNumber
,
_activityCode
,
_token
,
_urlParam
){
var
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