-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
135 lines (134 loc) · 5.22 KB
/
index.html
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<!DOCTYPE html>
<html ng-app="lottoryApp">
<head>
<title></title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="stylesheet" type="text/css" href="public/css/amazeui.min.css">
<link rel="stylesheet" type="text/css" href="public/css/index.css">
<style type="text/css">
.ng-cloak {
display: none;
}
</style>
</head>
<body ng-cloak ng-controller="mainController">
<div class='title'>
<div style="float:left;margin:7px 0 0 10px">
<a href="javascript:void(0)" data-am-offcanvas="{target: '#menubar'}">
<span class="am-icon-list"></span>
</a>
</div>
<div class="menupanel">
<a href="#" ng-click="minimize()" title="minimize">
<span class="am-icon-minus"></span>
</a>
<a href="#" ng-click="close()" title="close">
<span class="am-icon-close"></span>
</a>
</div>
</div>
<div class="am-container">
<div class="am-g">
<div class="am-u-lg-12" style="position:relative">
<h1 class="center" style="font-size:80px;margin-bottom:0px"> <strong show-award-class="current">一等奖</strong>
</h1>
</div>
</div>
<div class="am-g">
<div class="am-u-lg-6">
<h1 style="font-size:36px"> <strong>奖品:</strong>
<strong ng-bind="awards[current-1][turn].name"></strong>
<a style="font-size:12px" href="javascript:void(0)" ng-click="nextTurn()">下一轮奖品</a>
</h1>
<p>
<img ng-src="{{awards[current-1][turn].path}}" style="height:400px" class="am-img-thumbnail am-radius"></p>
</div>
<div class="am-u-lg-6 right">
<h2 class="center lottory-name">
<strong show-name="isbegin" ng-model="winner">XXX</strong>
</h2>
</div>
</div>
<div class="am-g">
<div class="am-u-lg-12">
<p class="center" style="margin-bottom:5px">
<button type="button" class="am-btn am-btn-danger am-btn-xs" ng-click="begin()"
ng-init="text='开始抽奖'" ng-disabled="!startEnable"
ng-bind="text"></button>
</p>
</div>
</div>
<div class="am-g">
<div class="am-u-lg-12 awardsbox">
<h1 style="margin-bottom:5px">
<strong><span show-award-class="current"></span>
获奖人名单:</strong>
</h1>
<div class="winners">
<div class="winner-box" ng-cloak ng-repeat="name in winners">
<span ng-bind="name"></span>
</div>
</div>
</div>
</div>
</div>
<div id="menubar" class="am-offcanvas">
<div class="amz-sidebar am-offcanvas-bar ">
<form class="am-form">
<fieldset>
<!-- <legend>
<small>导入抽奖名单</small>
</legend>
<div class="am-form-group">
<input id="fileDialog" type="file" style="font-size:12px"/>
<p class="am-form-help">请选择抽奖人名单</p>
<button type="button" class="am-btn am-btn-danger am-btn-xs" ng-click="import()">导入</button>
</div>
-->
<legend>
<small>选择抽奖轮次</small>
</legend>
<div class="am-form-group">
<input id="award0" type="radio" class="ainput hidden" ng-model="current" value="1" ng-click="change()"/>
<label for="award0" class="alabel">特等奖</label>
<input id="award1" type="radio" class="ainput hidden" ng-model="current" value="2" ng-click="change()"/>
<label for="award1" class="alabel">一等奖</label>
<input id="award2" type="radio" class="ainput hidden" ng-model="current" value="3" ng-click="change()"/>
<label for="award2" class="alabel">二等奖</label>
<input id="award3" type="radio" class="ainput hidden" ng-model="current" value="4" ng-click="change()"/>
<label for="award3" class="alabel">三等奖</label>
<input id="award4" type="radio" class="ainput hidden" ng-model="current" value="5" ng-click="change()"/>
<label for="award4" class="alabel">四等奖</label>
<input id="award5" type="radio" class="ainput hidden" ng-model="current" value="6" ng-click="change()"/>
<label for="award5" class="alabel">五等奖</label>
<input id="award6" type="radio" class="ainput hidden" ng-model="current" value="7" ng-click="change()"/>
<label for="award6" class="alabel">六等奖</label>
<input id="award7" type="radio" class="ainput hidden" ng-model="current" value="8" ng-click="change()"/>
<label for="award7" class="alabel">七等奖</label>
<div style="clear:both"></div>
</div>
</fieldset>
</form>
</div>
</div>
<div class="am-modal am-modal-alert" tabindex="-1" id="messagebox">
<div class="am-modal-dialog">
<div class="am-modal-hd">提示</div>
<div class="am-modal-bd" ng-bind="message"></div>
<div class="am-modal-footer">
<span class="am-modal-btn">确定</span>
</div>
</div>
</div>
<script type="text/javascript" src="public/js/jquery.min.js"></script>
<script type="text/javascript" src="public/js/amazeui.min.js"></script>
<script type="text/javascript" src="public/js/angular.min.js"></script>
<script type="text/javascript" src="apps/js/app.js"></script>
<script type="text/javascript" src="apps/js/service.js"></script>
<script type="text/javascript" src="apps/js/controller.js"></script>
</body>
</html>