message-detail.hbs
3.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<div class="massage-page yoho-page">
{{#info}}
{{#if birthType}}
<div class="birth-type-c">
<div class="title">以下优惠券任选其一</span></div>
<div class="ticket-list">
{{#ticket}}
<div class="ticket">
<div class="left">
<span>¥</span>
<div>{{couponAmount}}</div>
</div>
<div class="right">
<p class="first">{{couponName}}</p>
<p>{{startTime}} - {{endTime}}</p>
</div>
<a class="btn" data-id="{{id}}"></a>
</div>
{{/ticket}}
</div>
</div>
{{else}}
<div class="massage-main">
<h6>{{title}}Yoho!Buy有货 | 潮流购物逛不停</h6>
<span>{{sender}} 发送于{{time}}</span>
</div>
{{#if text}}
<div class="massage-main">
{{#text}}
<!-- 文本消息 -->
<p>{{{content}}}</p>
{{/text}}
</div>
{{/if}}
{{#if coupons}}
{{#coupons}}
<!-- 优惠券消息 -->
<div class="coupon-item">
<div class="coupon-img">
<img src="http://static.yohobuy.com/images/v2/activity/default_coupon.jpg">
</div>
<div class="coupon-info">
<p>{{remark}}</p>
{{#if url}}
<p>面值:<span>{{price}}</span></p>
<p>有效期:{{useTime}}</p>
{{^}}
<p>使用时间:{{useTime}}</p>
<p>领取时间:{{pickTime}}</p>
{{/if}}
</div>
<div class="coupon-action">
{{#if url}}
<a href="{{url}}" class="view-coupon-btn">立即查看</a>
{{^}}
<a{{#if canPick}} class="pick-coupon-btn" data-id="{{id}}"{{/if}}>立即领取</a>
{{/if}}
</div>
</div>
{{/coupons}}
{{/if}}
{{#if sale}}
{{#sale}}
<!-- 促销消息 -->
<div class="sale-img">
<img src="{{image image}}">
</div>
<br />
<br />
<p>{{{content}}}</p>
<br />
<br />
<a href="{{btnLink}}" class="sale-btn">{{btnName}}</a>
{{/sale}}
{{/if}}
{{/if}}
{{/info}}
</div>