msg.hbs
1.27 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
{{#each .}}
<div class="msg-wrap {{style from}}" data-uuid={{uuid}}>
<img src="http:{{image avatar 80 80}}" alt="" class="head-icon">
<div class="chat-info clearfix">
{{#with data}}
{{> (lookup .. 'type')}}
{{/with}}
<i class="msg-status iconfont"></i>
</div>
</div>
{{/each}}
{{!--inline partails--}}
{{#*inline 'order'}}
<div class="msg-content msg-order">
{{!--<img src="{{imgSrc}}">--}}
<div class="order-info">
<span class="label">订单号: </span><span>{{orderCode}}</span><br>
<span class="label">金额: </span><span class="red">{{cost}}</span><br>
<span class="label">下单时间: </span><span>{{createTime}}</span><br>
<span class="label">订单状态: </span><span>{{orderStatus}}</span><br>
</div>
</div>
{{/inline}}
{{#*inline 'text'}}
<div class="msg-content msg-txt">
{{!--{{#sending}}
<i class="send-status send-loading">!</i>
{{/sending}}--}}
<div>{{{content}}}</div>
</div>
{{/inline}}
{{#*inline 'picture'}}
<div class="msg-content msg-pic">
<img src="{{content}}" alt="" class="image chat-image">
</div>
{{/inline}}
{{#*inline 'voice'}}
<div class="chat-voice">
TODO
</div>
{{/inline}}