msg.hbs
1.23 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
<div class="msg-wrap {{style}}">
<img src="{{avatar}}" alt="" class="head-icon">
<div class="chat-info">
{{#data}}
{{> (lookup .. 'type')}}
{{/data}}
</div>
</div>
{{!--inline partails--}}
{{#*inline 'order'}}
<div class="chat-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="chat-txt" uuid={{uuid}}>
{{#sending}}
<i class="send-status send-loading">!</i>
{{/sending}}
<span>{{{msg}}}</span>
</div>
{{/inline}}
{{#*inline 'picture'}}
<div class="chat-pic">
<i class="send-fail">!</i>
<span class="image">
<img src="{{src}}" alt="" class="chat-image">
</span>
</div>
{{/inline}}
{{#*inline 'voice'}}
<div class="chat-voice">
TODO
</div>
{{/inline}}
{{#*inline 'system'}}
<div class="">
</div>
{{/inline}}