<!--{assign var="show_tips" value=0}-->
<!--{if !empty($jsondata)}-->
<!--{foreach $jsondata as $volist}-->

  <!--{if $login.info.userid == $volist.fromuid}-->
  
    <!--{if $volist.fromdel == '0'}-->
    <!--{if $volist.showtime == '1'}-->
    <li class="t_center mt15 mb5">
      <span class="inline_block bg_de color_f lh20 ptb2 plr15 br3 fz12"><!--{$volist.sendtime|date_format:"%m-%d %H:%M:%S"}--></span>
    </li>
    <!--{/if}-->
    <!--{if $volist.isvoice == "0"}-->
    <li class="pr mb10 pr60 t_right cursor" style="min-height:50px;">
      <div class="pa rt">
        <span class="img_40 br50per oh bg_f"><img class="ob_c" src="<!--{$login.info.headimgurl}-->"></span>
        <h3 class="pa t0 fz14 color_9" style="display:none;left:auto;right:60px;">--</h3>
      </div>
      <div class="mine chat_text t_right ml30 color_3 mt5 pr p10 br4 fz14 inline_block" style="background: #caf1c7;min-height:22px;">
        <!--{$volist.content|nl2br2}-->
        <!--{if $volist.isfree == '0' && $siddata.freelock == '0'}-->
          <!--{assign var="show_tips" value=1}-->
          <span class="chs_span" f="but_freesid_tips" data-sid="<!--{$volist.bgsid}-->" data-fee="<!--{doubleval($config.free_msgchat_fee)}-->" data-moneyname="<!--{$config.moneyname}-->"></span>
        <!--{else}-->
          <!--{if $volist.readstatus == '1'}-->
          <span class="fz12 pa color_9 b0" style="left:-35px;right: auto;">已读</span>
          <!--{else}-->
          <span class="fz12 pa color_9 b0" style="left:-35px;right: auto;">未读</span>
          <!--{/if}-->
        <!--{/if}-->
      </div>
    </li>
    <!--{else}-->
    <li class="pr mb10 pr60 t_right cursor"style="min-height:50px;">
      <div class="pa rt">
        <span class="img_40 br50per oh bg_f"><img class="ob_c" src="<!--{$login.info.headimgurl}-->"></span>
        <h3 class="pa t0 fz14 color_9" style="display:none;left:auto;right:60px;">--</h3>
      </div>
      <div class="mine chat_text t_right w100 ml30 color_3 mt5 pr p10 br4 fz14 inline_block" style="background: #caf1c7;min-height:22px;" f="but_change_voice">
        <span class="pa b0 color_9 fz12" style="right:-35px;"><!--{$volist.voicelong}-->"</span>
        <img src="<!--{$userskin}-->images/yuyin2.svg" class="w20" /> 
      </div>
    </li>
    <!--{/if}-->
    <!--{/if}-->
    
  <!--{else}-->
    
    <!--{if $volist.todel == '0'}-->
      
      <!--{if $volist.readstatus == '1' || $volist.isfree == '1' || $siddata.freelock == '1'}-->
        <!--{if $volist.isvoice == "0"}-->
        <li class="pr pl60 mb10 pt1" style="min-height:50px;">
          <div class="pa lt">
            <span class="img_40 oh br50per bg_f"><a target="_blank" href="<!--{$urlpath}-->index.php?c=home&a=detail&id=<!--{$chatuser.userid}-->"><img class="ob_c" src="<!--{$chatuser.headimg}-->"></a></span>
            <h3 class="pa t0 fz14 color_9" style="display:none;left:60px;"><!--{$chatuser.username}--></h3>
          </div>
          <div class="chat_text mt5 bg_f pr lh22 p10 br4 fz14 inline_block" style="min-height:22px;">
            <!--{$volist.content|nl2br2}-->
          </div>
        </li>
        <!--{else}-->
        <li class="pr pl60 mb10 pt1 cursor" style="min-height:50px;">
          <div class="pa lt">
            <span class="img_40 oh br50per bg_f"><a target="_blank" href="<!--{$urlpath}-->index.php?c=home&a=detail&id=<!--{$chatuser.userid}-->"><img class="ob_c" src="<!--{$chatuser.headimg}-->"></a></span>
            <h3 class="pa t0 fz14 color_9" style="display:none;left:60px;">--</h3>
          </div>
          <div class="chat_text mt5 bg_f pr w100 lh22 p10 br4 fz14 inline_block" style="min-height:22px;" f="but_change_voice">
            <img src="<!--{$userskin}-->images/yuyin1.svg" class="w20" /> <span><!--{$volist.voicelong}-->"</span>
          </div>
        </li>
        <!--{/if}-->
      
      <!--{else}-->
      
        <!--{if $volist.showtime == '1'}-->
        <li class="t_center mt15 mb5">
          <span class="inline_block bg_9 color_f lh20 ptb2 plr15 br3 fz12"><!--{$volist.sendtime|date_format:"%m-%d %H:%M:%S"}--></span>
        </li>
        <!--{/if}-->
        <!--{assign var="show_tips" value=1}-->
        <li class="pr pl60 mb10 pt1 cursor" style="min-height:50px;">
          <div class="pa lt">
            <span class="img_40 oh br50per bg_f"><a target="_blank" href="<!--{$urlpath}-->index.php?c=home&a=detail&id=<!--{$chatuser.userid}-->"><img class="ob_c" src="<!--{$chatuser.headimg}-->"></a></span>
            <h3 class="pa t0 fz14 color_9" style="display:none;left:60px;"><!--{$chatuser.username}--></h3>
          </div>
          <div class="chat_text mt5 bg_f pr lh22 p10 br4 fz14 inline_block" style="min-height:22px;">
            此条信息已隐藏，你与<!--{if $chatuser.gender == '1'}-->他<!--{else}-->她<!--{/if}-->的聊天通道还没打开。
            <span class="chs_span" f="but_freesid_tips" data-sid="<!--{$volist.bgsid}-->" data-fee="<!--{doubleval($config.free_msgchat_fee)}-->" data-moneyname="<!--{$config.moneyname}-->"></span>
          </div>
        </li>
      
      <!--{/if}-->
    <!--{/if}-->
  
  <!--{/if}-->
  
<!--{/foreach}-->
<!--{/if}--> 


<!--{if $page == '1' && $show_tips == '1'}-->
<script type="text/javascript">
$(function(){
    if ($("#help_freelock_box").css("display") == "none") {
        $("#help_freelock_box").show();
    }
});
</script>
<li class="oe_chattext_tips cursor" style="display:none;" f="but_freesid_tips" data-sid="<!--{$siddata.bgsid}-->" data-fee="<!--{doubleval($config.free_msgchat_fee)}-->" data-moneyname="<!--{$config.moneyname}-->">
  <p class="p_1">你与<!--{if $chatuser.gender == '1'}-->他<!--{else}-->她<!--{/if}-->的聊天通道未打开，<em>点击此处解锁</em></p>
</li>
<!--{/if}--> 
<div class="oe_set_tips" style="display:none;">
  对方不在线，请设置好消息提醒<br>以保证能及时收到好友消息。
  <a href="<!--{$urlpath}-->index.php?m=user&c=set" target="_blank">去设置>></a>
</div>

