Showing
4 changed files
with
16 additions
and
8 deletions
@@ -344,7 +344,9 @@ exports.selectGiftcard = (req, res, next) => { | @@ -344,7 +344,9 @@ exports.selectGiftcard = (req, res, next) => { | ||
344 | module: 'cart', | 344 | module: 'cart', |
345 | page: 'select-giftcard', | 345 | page: 'select-giftcard', |
346 | title: '礼品卡', | 346 | title: '礼品卡', |
347 | - pageHeader: headerData, | 347 | + pageHeader: _.assign(headerData, { |
348 | + useGiftCard: true | ||
349 | + }), | ||
348 | pageFooter: false, | 350 | pageFooter: false, |
349 | localCss: true, | 351 | localCss: true, |
350 | width750: true, | 352 | width750: true, |
1 | <div class="yoho-page select-giftcard-page"> | 1 | <div class="yoho-page select-giftcard-page"> |
2 | {{# usable_giftCards}} | 2 | {{# usable_giftCards}} |
3 | - <div class="giftcard" data-code={{code}}> | 3 | + <div class="giftcard" data-code={{cardCode}}> |
4 | <div class="card-title clearfix"> | 4 | <div class="card-title clearfix"> |
5 | <div class="balance pull-left"> | 5 | <div class="balance pull-left"> |
6 | <label>余额</label> | 6 | <label>余额</label> |
7 | - <i> ¥</i><span>{{balance}}</span> | 7 | + <i> ¥</i><span>{{remainAmount}}</span> |
8 | </div> | 8 | </div> |
9 | <div class="logo pull-right"> | 9 | <div class="logo pull-right"> |
10 | <i class="iconfont"></i> | 10 | <i class="iconfont"></i> |
@@ -15,15 +15,15 @@ | @@ -15,15 +15,15 @@ | ||
15 | <div class="content pull-left"> | 15 | <div class="content pull-left"> |
16 | <div class="content-li clearfix"> | 16 | <div class="content-li clearfix"> |
17 | <div class="left-label pull-left">面值</div> | 17 | <div class="left-label pull-left">面值</div> |
18 | - <div class="pull-left">¥{{value}}</div> | 18 | + <div class="pull-left">¥{{amount}}</div> |
19 | </div> | 19 | </div> |
20 | <div class="content-li clearfix"> | 20 | <div class="content-li clearfix"> |
21 | <div class="left-label pull-left">卡号</div> | 21 | <div class="left-label pull-left">卡号</div> |
22 | - <div class="pull-left">12345678909765</div> | 22 | + <div class="pull-left">{{cardCode}}</div> |
23 | </div> | 23 | </div> |
24 | <div class="content-li clearfix"> | 24 | <div class="content-li clearfix"> |
25 | <div class="left-label pull-left">有效期</div> | 25 | <div class="left-label pull-left">有效期</div> |
26 | - <div class="pull-left">{{validity}} <span class="tip">(即将过期)</span></div> | 26 | + <div class="pull-left">{{validity}}{{#if willExpireDesc}} <span class="tip">(即将过期)</span>{{/if}}</div> |
27 | </div> | 27 | </div> |
28 | </div> | 28 | </div> |
29 | <div class="checkbox pull-right"> | 29 | <div class="checkbox pull-right"> |
@@ -47,14 +47,15 @@ | @@ -47,14 +47,15 @@ | ||
47 | {{#myReward}} | 47 | {{#myReward}} |
48 | <a href="/activity/my-reward" class="nav-home my-reward">我的奖励</a> | 48 | <a href="/activity/my-reward" class="nav-home my-reward">我的奖励</a> |
49 | {{/myReward}} | 49 | {{/myReward}} |
50 | - | ||
51 | {{#save}} | 50 | {{#save}} |
52 | <span class="nav-home save">保存</span> | 51 | <span class="nav-home save">保存</span> |
53 | {{/save}} | 52 | {{/save}} |
54 | - | ||
55 | {{#invoiceNotice}} | 53 | {{#invoiceNotice}} |
56 | <span class="invoice-btn">{{.}}</span> | 54 | <span class="invoice-btn">{{.}}</span> |
57 | {{/invoiceNotice}} | 55 | {{/invoiceNotice}} |
56 | + {{#useGiftCard}} | ||
57 | + <span class="nav-rule-right">使用规则 <i class="iconfont"></i></a> | ||
58 | + {{/useGiftCard}} | ||
58 | </header> | 59 | </header> |
59 | {{#if saleNav.list}} | 60 | {{#if saleNav.list}} |
60 | <div class="sale-nav-select"> | 61 | <div class="sale-nav-select"> |
@@ -7,6 +7,11 @@ | @@ -7,6 +7,11 @@ | ||
7 | $title-bg-color: #d0021b; | 7 | $title-bg-color: #d0021b; |
8 | $title-font-color: #fff; | 8 | $title-font-color: #fff; |
9 | 9 | ||
10 | +.nav-rule-right { | ||
11 | + float: right; | ||
12 | + margin-right: 30px; | ||
13 | +} | ||
14 | + | ||
10 | .select-giftcard-page { | 15 | .select-giftcard-page { |
11 | @extend padding-30; | 16 | @extend padding-30; |
12 | 17 |
-
Please register or login to post a comment