msg.hbs 1.28 KB
{{#each .}}
<div class="msg-wrap {{style from}}" data-uuid={{uuid}}>
    <img src="{{avatar}}" 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}}--}}
        <span>{{{content}}}</span> 
    </div>
{{/inline}}

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

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