Showing
7 changed files
with
100 additions
and
0 deletions
@@ -28,6 +28,15 @@ | @@ -28,6 +28,15 @@ | ||
28 | </div> | 28 | </div> |
29 | </div> | 29 | </div> |
30 | </div> | 30 | </div> |
31 | + <div class="dia-c"> | ||
32 | + <div class="dia-bg"></div> | ||
33 | + <div class="dia-main"> | ||
34 | + <span class="close"></span> | ||
35 | + <img src="{{imgSrc 'img/activity/raffle/dia-succ.png'}}" /> | ||
36 | + <img class="hide" src="{{imgSrc 'img/activity/raffle/dia-err.png'}}" /> | ||
37 | + <a></a> | ||
38 | + </div> | ||
39 | + </div> | ||
31 | {{/ order}} | 40 | {{/ order}} |
32 | </div> | 41 | </div> |
33 | 42 |
1 | <div class="order" data-id="{{orderNum}}" data-href="{{detailUrl}}"> | 1 | <div class="order" data-id="{{orderNum}}" data-href="{{detailUrl}}"> |
2 | <header class="header"> | 2 | <header class="header"> |
3 | 订单编号:{{orderNum}} | 3 | 订单编号:{{orderNum}} |
4 | + <div class="raffle-btn">参与抽奖</div> | ||
5 | + <div class="disable-btn hide">已抽奖</div> | ||
4 | <span class="order-status">{{orderStatus}}</span> | 6 | <span class="order-status">{{orderStatus}}</span> |
5 | </header> | 7 | </header> |
6 | <section class="order-goods"> | 8 | <section class="order-goods"> |
public/img/activity/raffle/close.png
0 → 100644
1.06 KB
public/img/activity/raffle/dia-err.png
0 → 100644
29.8 KB
public/img/activity/raffle/dia-succ.png
0 → 100644
37.8 KB
@@ -123,6 +123,7 @@ function getOrders(option) { | @@ -123,6 +123,7 @@ function getOrders(option) { | ||
123 | data: opt, | 123 | data: opt, |
124 | success: function(data) { | 124 | success: function(data) { |
125 | var num; | 125 | var num; |
126 | + | ||
126 | if (data != '') { | 127 | if (data != '') { |
127 | 128 | ||
128 | order.page = opt.page; | 129 | order.page = opt.page; |
@@ -195,6 +196,13 @@ orderHammer.on('tap', function(e) { | @@ -195,6 +196,13 @@ orderHammer.on('tap', function(e) { | ||
195 | 196 | ||
196 | $reaMask.data('orderId', id); | 197 | $reaMask.data('orderId', id); |
197 | 198 | ||
199 | + if ($cur.closest('.raffle-btn').length > 0) { | ||
200 | + $('.dia-c').show(); | ||
201 | + var dia_h = $('.dia-main').height() / 2; | ||
202 | + | ||
203 | + $('.dia-main').css('margin-top', '-' + dia_h + 'px'); | ||
204 | + } | ||
205 | + | ||
198 | if ($cur.closest('.del').length > 0) { | 206 | if ($cur.closest('.del').length > 0) { |
199 | 207 | ||
200 | // Order delete | 208 | // Order delete |
@@ -342,3 +350,7 @@ $reaMask.on('touchend', function(event) { | @@ -342,3 +350,7 @@ $reaMask.on('touchend', function(event) { | ||
342 | $reaMask.css('visibility', 'hidden'); | 350 | $reaMask.css('visibility', 'hidden'); |
343 | event.stopPropagation(); | 351 | event.stopPropagation(); |
344 | }); | 352 | }); |
353 | + | ||
354 | +$('.dia-c .close').on('click', function() { | ||
355 | + $('.dia-c').hide(); | ||
356 | +}); |
@@ -102,3 +102,80 @@ | @@ -102,3 +102,80 @@ | ||
102 | } | 102 | } |
103 | } | 103 | } |
104 | } | 104 | } |
105 | + | ||
106 | +.order-page { | ||
107 | + .order { | ||
108 | + .header { | ||
109 | + border-bottom: 1px solid #e0e0e0; | ||
110 | + | ||
111 | + .raffle-btn { | ||
112 | + width: 140px; | ||
113 | + height: 60px; | ||
114 | + line-height: 60px; | ||
115 | + background-color: #e01; | ||
116 | + color: #fff; | ||
117 | + font-size: 24px; | ||
118 | + position: absolute; | ||
119 | + right: 30px; | ||
120 | + top: 15px; | ||
121 | + border-radius: 8px; | ||
122 | + text-align: center; | ||
123 | + } | ||
124 | + | ||
125 | + .disable-btn { | ||
126 | + width: 140px; | ||
127 | + height: 60px; | ||
128 | + line-height: 60px; | ||
129 | + background-color: #e0e0e0; | ||
130 | + color: #454545; | ||
131 | + font-size: 24px; | ||
132 | + position: absolute; | ||
133 | + right: 30px; | ||
134 | + top: 15px; | ||
135 | + border-radius: 8px; | ||
136 | + text-align: center; | ||
137 | + } | ||
138 | + } | ||
139 | + } | ||
140 | + | ||
141 | + .dia-c { | ||
142 | + display: none; | ||
143 | + width: 100%; | ||
144 | + height: 100%; | ||
145 | + position: fixed; | ||
146 | + top: 0; | ||
147 | + bottom: 0; | ||
148 | + right: 0; | ||
149 | + left: 0; | ||
150 | + | ||
151 | + .dia-bg { | ||
152 | + width: 100%; | ||
153 | + height: 100%; | ||
154 | + top: 0; | ||
155 | + bottom: 0; | ||
156 | + right: 0; | ||
157 | + left: 0; | ||
158 | + background-color: #000; | ||
159 | + opacity: 0.7; | ||
160 | + } | ||
161 | + | ||
162 | + .dia-main { | ||
163 | + width: 540px; | ||
164 | + position: absolute; | ||
165 | + top: 50%; | ||
166 | + left: 50%; | ||
167 | + margin-left: -270px; | ||
168 | + } | ||
169 | + | ||
170 | + .close { | ||
171 | + width: 40px; | ||
172 | + height: 40px; | ||
173 | + background-repeat: no-repeat; | ||
174 | + background-image: resolve("activity/raffle/close.png"); | ||
175 | + position: absolute; | ||
176 | + top: -20px; | ||
177 | + right: -20px; | ||
178 | + background-size: 100%; | ||
179 | + } | ||
180 | + } | ||
181 | +} |
-
Please register or login to post a comment