msg.hbs 1.23 KB
<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}}