msg.hbs 1.25 KB
{{#each .}}
<div class="msg-wrap {{style from}}" data-uuid={{uuid}}>
    <img src="{{avatar}}" alt="" class="head-icon">
    <div class="chat-info">
        {{#data}}
            {{> (lookup .. 'type')}}
        {{/data}}
    </div>
</div>
{{/each}}


{{!--inline partails--}}
{{#*inline 'order'}}
  <div class="chat-order">
    <img src="{{thumb}}">
    <div>
        <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">
        {{#sending}}
        <i class="send-status send-loading">!</i>
        {{/sending}}
        <span>{{{content}}}</span> 
    </div>
{{/inline}}

{{#*inline 'picture'}}
    <div class="chat-pic">
        <i class="send-fail">!</i>
        <span class="image">
            <img src="{{content}}" alt=""  class="chat-image">
        </span> 
    </div>
{{/inline}}

{{#*inline 'voice'}}
    <div class="chat-voice">
        TODO
    </div>
{{/inline}}

{{#*inline 'system'}}
    <div class="">

    </div>
{{/inline}}