Authored by 梁志锋

个人中心我的消息

  1 +{{#list}}
  2 +<div class="massage-list" data-id="{{id}}">
  3 + {{#if isNotReaded}}
  4 + <strong></strong>
  5 + {{/if}}
  6 + <p><a href="{{url}}">{{title}}</a></p>
  7 + <span>{{time}}</span>
  8 + <i class="iconfont del">&#xe621;</i>
  9 +</div>
  10 +{{/list}}
  1 +{{> layout/header}}
  2 +<div class="massage-page yoho-page">
  3 + <div class="massage-main">
  4 + <h6>{{title}}</h6>
  5 + <span>{{sender}} 发送于{{time}}</span>
  6 + </div>
  7 + {{#if text}}
  8 + <div class="massage-main">
  9 + {{# text}}
  10 + <!-- 文本消息 -->
  11 + <p>{{{content}}}</p>
  12 + {{/ text}}
  13 + </div>
  14 + {{/if}}
  15 +
  16 + {{#if coupons}}
  17 + {{# coupons}}
  18 + <!-- 优惠券消息 -->
  19 + <div class="coupon-item">
  20 + <div class="coupon-img">
  21 + <img src="http://static.yohobuy.com/images/v2/activity/default_coupon.jpg">
  22 + </div>
  23 + <div class="coupon-info">
  24 + <p>{{remark}}</p>
  25 + {{#if url}}
  26 + <p>面值:<span>{{price}}</span></p>
  27 + <p>有效期:{{useTime}}</p>
  28 + {{^}}
  29 + <p>使用时间:{{useTime}}</p>
  30 + <p>领取时间:{{pickTime}}</p>
  31 + {{/if}}
  32 + </div>
  33 + <div class="coupon-action">
  34 + {{#if url}}
  35 + <a href="{{url}}" class="view-coupon-btn">立即查看</a>
  36 + {{^}}
  37 + <a{{#if canPick}} class="pick-coupon-btn" data-id="{{id}}"{{/if}}>立即领取</a>
  38 + {{/if}}
  39 + </div>
  40 + </div>
  41 + {{/ coupons}}
  42 + {{/if}}
  43 + {{#if sale}}
  44 + {{# sale}}
  45 + <!-- 促销消息 -->
  46 + <div class="sale-img">
  47 + <img src="{{image}}">
  48 + </div>
  49 + <br />
  50 + <br />
  51 + <p>{{{content}}}</p>
  52 + <br />
  53 + <br />
  54 + <a href="{{btnLink}}" class="sale-btn">{{btnName}}</a>
  55 + {{/ sale}}
  56 + {{/if}}
  57 +</div>
  58 +{{> layout/footer}}
  1 +{{> layout/header}}
  2 +<div class="massage-page yoho-page">
  3 +
  4 +</div>
  5 +{{> layout/footer}}
@@ -340,4 +340,13 @@ @@ -340,4 +340,13 @@
340 seajs.use('js/me/currency-new'); 340 seajs.use('js/me/currency-new');
341 </script> 341 </script>
342 {{/if}} 342 {{/if}}
343 - 343 +{{#if messagePage}}
  344 +<script>
  345 + seajs.use('js/me/message');
  346 +</script>
  347 +{{/if}}
  348 +{{#if messageDetailPage}}
  349 +<script>
  350 + seajs.use('js/me/message-detail');
  351 +</script>
  352 +{{/if}}