Commit 956d500a2831091415e7bb33027eb85a40e3f3f8

Authored by zouyang0921
1 parent 2be46a60

[年会抽奖]UI 调整

img/mobile/home_program.png

397 KB | W: | H:

397 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
mobile.html
... ... @@ -97,10 +97,12 @@
97 97 .stage {width: 6.3rem;height: 2.14rem;margin: 0 auto; background: #FFF8DD; box-sizing: border-box;border: 1px dashed rgba(255, 205, 0, .5);border-top: .16rem solid #FBCE07;font-size: .32rem;font-weight: 500;color: #FBCE07;display: flex;align-items: center;justify-content: center;}
98 98 .entrance {width: .4rem;height: .6rem;margin-top: .5rem;padding: .1rem;background: #E6F7EF;border: 1px dashed #64DCA1;border-left: none;font-size: .28rem;font-weight: 500;color: #64DCA1;display: flex;align-items: center;justify-content: center;}
99 99 .seat-list {padding: 0 .6rem;margin-top: .14rem;}
100   - .seat-list .list-item {float: left;width: 1rem;height: 1rem;margin-right: .32rem;margin-bottom: .4rem;border-radius: 50%;background: #EDEDED;line-height: 1rem;text-align: center;font-size: .4rem;color: #ccc;font-family: DINAlternate-Bold,DINAlternate;font-weight: bold;}
101   - .seat-list .list-item.active {position: relative;padding: .12rem;margin: -.12rem .2rem .2rem -.12rem;background: url('./img/mobile/seat_active.png') no-repeat;background-size: contain;color: #fff;}
  100 + .seat-list .list-item {position: relative;float: left;width: 1.24rem;height: 1.24rem;margin-right: .02rem;margin-bottom: .16rem;border-radius: 50%;}
  101 + .seat-list .list-item.active {background: url('./img/mobile/seat_active.png') no-repeat;background-size: contain;}
102 102 .seat-list .list-item:nth-child(5n) {margin-right: 0;}
  103 + .seat-list .list-item-inner {position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);width: 1rem;height: 1rem;border-radius: 50%;background: #EDEDED;line-height: 1rem;text-align: center;font-size: .4rem;color: #ccc;font-family: DINAlternate-Bold,DINAlternate;font-weight: bold;}
103 104 .seat-icon {position: absolute;right: -.38rem;top: -.52rem;width: .76rem;height: .76rem;background: url('./img/mobile/icon_seat.png') no-repeat;background-size: contain;}
  105 + .seat-list .list-item.active .list-item-inner {background: transparent;color: #fff;}
104 106 .bottom-btn {position: fixed;bottom: 0;left: 0;z-index: 1;width: 100%;height: 1.08rem;background: url('./img/mobile/btn_bg_red.png') no-repeat;background-size: 100% 100%;line-height: 1.08rem;text-align: center;font-size: .32rem;color: #fff;}
105 107  
106 108 .vote {min-height: 100vh;padding-bottom: 1.2rem;-webkit-overflow-scrolling: touch;}
... ... @@ -322,7 +324,7 @@
322 324 <script type="text/html" id="seatListTmpl">
323 325 {{each list as item}}
324 326 <div class="list-item {{if item.number == userSeat}}active{{/if}}">
325   - <span>{{item.number}}</span>
  327 + <div class="list-item-inner">{{item.number}}</div>
326 328 {{if item.number == userSeat}}
327 329 <i class="seat-icon"></i>
328 330 {{/if}}
... ...
mobile.js
... ... @@ -186,7 +186,8 @@ var action = {
186 186 var callback = function(data) {
187 187 var html = template('seatListTmpl', {
188 188 list: data.data,
189   - userSeat: action.userInfo.table_no
  189 + // userSeat: action.userInfo.table_no,
  190 + userSeat: '01'
190 191 });
191 192 $('.seat-list').html(html);
192 193 };
... ...