setting.html
3.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<html>
<head>
<meta charset='UTF-8'>
<style>
html,body{top:0;left:0;padding: 0;margin: 0;border: 0;width:100%}
body{background-color: rgb(115, 20, 20);background-size:1024px 768px;background-repeat: no-repeat;color:white;}
.header{text-align: center;height: 80px;font-size: 30px;line-height: 80px;}
li>span{color:white;text-decoration: none;border:1px solid #ccc;height: 30px;line-height: 30px;width: 160px;padding: 3px;display: block;margin:3px;float:left;text-align: center;}
a{font-size: 20px;color: white;}
ul li{list-style: none;}
img{width:100px;height: auto;float: left;}
li{height: 50px;line-height: 50px;padding: 10px;}
.user-item{width:150px;height: 200px;float: left;border: 1px solid #fff;overflow: hidden;}
th,td{border: 1px solid #ffffff;font-size: 30px}
</style>
<script src="axios.js"></script>
<script src="jquery.min.js"></script>
<script src="usercache.js"></script>
<script src="lottery.js"></script>
</head>
<body>
<div class="header">年会抽奖后台</div>
<ul class="main">
<!--<li>
<input id = "pwd" type="password" />
<button onclick="setting.login()">登录</button>
<button onclick="setting.loginOut()">退出</button>
</li>-->
<!--<li>
<a href="http://t.dev/party/generateUserCache.php" target="_blank">用户数据拉取到本地</a>
</li>-->
<li>
<span onclick="setting.startSign()">开始微信H5签到</span>
<span onclick="setting.stopSign()">关闭微信H5签到</span>
</li>
<li>
<span onclick="setting.startVote()">开启投票通道</span>
<span onclick="setting.stopVote()">关闭投票通道</span>
</li>
<!--<li>
<input id = "user-id" />
<span onclick="setting.resetUser()">重置用户信息</span>(抽奖码,可以重新提交信息)
</li>-->
<li>
<span onclick="setting.userList()">用户管理</span>
</li>
</ul>
<div style="overflow: hidden">
<div class="user-list" z-for-container = "user-bind">
<div z-for-item = "user" class="user-item">
<img z-for-data = "headimg">
<div z-for-data = "id"></div>
<div z-for-data = "realname"></div>
<div z-for-data = "status"></div>
<span z-for-click="setting.delUser" style="border:1px solid #fff">删除</span>
<!--<span z-for-click="setting.editDep" style="border:1px solid #fff">嘉宾</span>-->
</div>
</div>
</div>
<ul class="main" style="margin-top: 50px;">
<li>
<span onclick="setting.itemVoteList()">查看投票结果</span>
</li>
</ul>
<div style="margin-left: 15px;">
<table z-for-container = "item_vote">
<tr>
<th>名次</th>
<th>节目名称</th>
<th>投票数量</th>
</tr>
<tr z-for-item = "item_vote_list">
<td z-for-data = "id"></td>
<td z-for-data = "item_name"></td>
<td z-for-data = "vote_no"></td>
</tr>
</table>
</div>
</body>
<script>
</script>
</html>