Authored by 郭成尧

select-giftcard-style

@@ -5,24 +5,30 @@ @@ -5,24 +5,30 @@
5 <label>余额</label> 5 <label>余额</label>
6 <span>¥1100</span> 6 <span>¥1100</span>
7 </div> 7 </div>
8 - <div class="logo pull-right"></div> 8 + <div class="logo pull-right">
  9 + <i class="iconfont">&#xe60e;</i>
  10 + <i class="iconfont">&#xe60d;</i>
9 </div> 11 </div>
10 - <div class="card-body">  
11 - <div class="content">  
12 - <div class="face-value clearfix"> 12 + </div>
  13 + <div class="card-body clearfix">
  14 + <div class="content pull-left">
  15 + <div class="content-li clearfix">
13 <div class="left-label pull-left">面值</div> 16 <div class="left-label pull-left">面值</div>
14 - <div class="right-content pull-left"></div> 17 + <div class="right-content pull-left">¥2000.00</div>
15 </div> 18 </div>
16 - <div class="card-num clearfix"> 19 + <div class="content-li clearfix">
17 <div class="left-label pull-left">卡号</div> 20 <div class="left-label pull-left">卡号</div>
18 <div class="right-content pull-left">12345678909765</div> 21 <div class="right-content pull-left">12345678909765</div>
19 </div> 22 </div>
20 - <div class="valid-priod clearfix"> 23 + <div class="content-li clearfix">
21 <div class="left-label pull-left">有效期</div> 24 <div class="left-label pull-left">有效期</div>
22 - <div class="right-conten pull-left">2017.05.01-2017.07.31 <span class="tip">(即将过期)</span></div> 25 + <div class="right-content pull-left">2017.05.01-2017.07.31 <span class="tip">(即将过期)</span></div>
  26 + </div>
23 </div> 27 </div>
  28 + <div class="checkbox pull-right">
  29 + <i class="iconfont">&#xe647;</i>
  30 + <i class="iconfont hide">&#xe617;</i>
24 </div> 31 </div>
25 - <div class="checkbox"></div>  
26 </div> 32 </div>
27 </div> 33 </div>
28 </div> 34 </div>
@@ -16,7 +16,7 @@ class SelectGiftCard extends Page { @@ -16,7 +16,7 @@ class SelectGiftCard extends Page {
16 16
17 init() { 17 init() {
18 this.selector.page.css('min-height', () => { 18 this.selector.page.css('min-height', () => {
19 - return $(window).height(); 19 + return $(window).height() - $('#yoho-header').height();
20 }); 20 });
21 } 21 }
22 22
@@ -12,6 +12,10 @@ $title-font-color: #fff; @@ -12,6 +12,10 @@ $title-font-color: #fff;
12 12
13 background-color: #f0f0f0; 13 background-color: #f0f0f0;
14 14
  15 + .hide {
  16 + display: none;
  17 + }
  18 +
15 .pull-left { 19 .pull-left {
16 float: left; 20 float: left;
17 } 21 }
@@ -25,8 +29,6 @@ $title-font-color: #fff; @@ -25,8 +29,6 @@ $title-font-color: #fff;
25 } 29 }
26 30
27 .giftcard { 31 .giftcard {
28 - height: 200px;  
29 -  
30 > .card-title { 32 > .card-title {
31 height: 88px; 33 height: 88px;
32 line-height: 88px; 34 line-height: 88px;
@@ -36,7 +38,8 @@ $title-font-color: #fff; @@ -36,7 +38,8 @@ $title-font-color: #fff;
36 border-top-right-radius: 12.5px; 38 border-top-right-radius: 12.5px;
37 39
38 .balance > label { 40 .balance > label {
39 - font-size: 26px; 41 + margin-left: 80px;
  42 + font-size: 28px;
40 } 43 }
41 44
42 .balance > span { 45 .balance > span {
@@ -44,16 +47,43 @@ $title-font-color: #fff; @@ -44,16 +47,43 @@ $title-font-color: #fff;
44 } 47 }
45 48
46 .logo { 49 .logo {
  50 + font-size: 40px;
  51 + margin-right: 20px;
47 float: right; 52 float: right;
48 } 53 }
49 } 54 }
50 55
51 > .card-body { 56 > .card-body {
52 - height: 168px; 57 + padding: 10px 30px;
  58 + height: 188px;
53 background-color: #fff; 59 background-color: #fff;
54 border-bottom-left-radius: 12.5px; 60 border-bottom-left-radius: 12.5px;
55 border-bottom-right-radius: 12.5px; 61 border-bottom-right-radius: 12.5px;
56 font-size: 11px; 62 font-size: 11px;
  63 +
  64 + > .content {
  65 + width: 590px;
  66 + color: #444;
  67 + }
  68 +
  69 + > .content > .content-li {
  70 + line-height: 54px;
  71 +
  72 + > .left-label {
  73 + width: 90px;
  74 + font-weight: 600;
  75 + }
  76 + }
  77 +
  78 + > .checkbox {
  79 + width: 40px;
  80 + height: 188px;
  81 + padding-top: 54px;
  82 + }
  83 +
  84 + > .checkbox > .iconfont {
  85 + font-size: 40px;
  86 + }
57 } 87 }
58 } 88 }
59 } 89 }