message-detail.hbs
4.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
79
80
81
82
83
84
85
86
<div class="content-message-page me-page yoho-page clearfix">
{{> path}}
{{> navigation}}
<div class="me-main">
<div class="message-content block">
<h2 class="title">
<a href="{{backUrl}}" class="back-list">返回列表</a>
</h2>
<div class="text-container">
{{# message}}
<div class="text-title">
<h1>{{title}}</h1>
<span>{{sender}} 发送于{{time}}</span>
</div>
<div class="text-content">
{{# text}}
<!-- 文本消息 -->
<p>{{{content}}}</p>
{{/ text}}
{{# birthCoupon}}
<p>{{text}}</p>
<p class="birth-card">
{{#if @root.devEnv}}
<img src="////{{@root.devHost}}:5002/img/home/birth-card.jpg">
{{^}}
<img src="//cdn.yoho.cn/yohobuy-node/assets/img/home/birth-card.jpg">
{{/if}}
</p>
{{#if over}}
<div>{{overText}}</div>
{{^}}
<div class="show-birth-coupon"{{#if errMsg}} data-msg="{{errMsg}}"{{/if}}>点这里领取</div>
{{/if}}
{{/ birthCoupon}}
{{#if coupons}}
<div class="{{#if birthCoupon}}birth-coupon-wrap{{/if}}">
{{#if birthCoupon}}
<p>您365天内有且仅有一次领劵生日礼券的机会,每次限领1张哦</p>
{{/if}}
{{# coupons}}
<!-- 优惠券消息 -->
<div class="coupon-item">
<div class="coupon-img">
<img src="//static.yohobuy.com/images/v2/activity/default_coupon.jpg">
</div>
<div class="coupon-info">
<p>{{remark}}</p>
{{#if url}}
<p>面值:{{price}}</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}}
</div>
{{/if}}
{{# sale}}
<!-- 促销消息 -->
<div class="sale-img">
<img src="{{image}}">
</div>
<p>{{{content}}}</p>
<a href="{{btnLink}}" class="sale-btn">{{btnName}}</a>
{{/ sale}}
</div>
{{/ message}}
</div>
</div>
{{> help-us}}
</div>
</div>