<!--{assign var="menu_id" value="diary"}-->
<!--{include file="<!--{$oetplpath}-->widget/block_header.tpl"}-->
<body class="bg_body">
<input type="hidden" name="frompre" id="frompre" value="<!--{$frompre}-->" />
<div class="oe_top cursor">
  <!--{if $nofollow == '1'}-->
  <a href="<!--{$oefile}-->&c=diary&nofollow=1"><span class="back"><i class="iconfont icon-fanhui"></i></span></a>
  <!--{else}-->
  <span class="back" f="back"><i class="iconfont icon-fanhui"></i></span>
  <!--{/if}-->
  <h1>日记详情</h1>
  <!--{if $usewxpublic == '1'}-->
  <span class="pa rt plr15" f="but_open_wxshare"><i class="iconfont icon-fenxiang fz20"></i></span>
  <!--{/if}-->
</div>
<div class="h48"></div>

<div style="pa t48 b46 ofl_scr_touch ofl_auto">
  <div class="p15 bg_f">
    <h1 class="fz18 lh26 pb5"><!--{$diary.title}-->   </h1>
    <div class="fz12 color_9 bo_bf7 pb10 pt5 mb20">
      <span class="">时间：<!--{$diary.addtime|date_format:'%Y.%m.%d'}--></span>
      <span class="span_2">阅读：<!--{$diary.hits}--></span>
    </div>

    <!--{if $diary.userid > 0}-->
    <div class="bg_fc mb20 p15 br5">
      <dl class="pl60 pr">
        <dt class="pa lt">
          <span class="br inline_block oh img_50">
          <a class="cursor" href="<!--{$oefile}-->&c=home&a=detail&id=<!--{$diary.userid}-->"><img class="w100" src="<!--{$diary.headimg_m1}-->" /></a>
          </span>
        </dt>
        <dd class="pt5">
          <h3 class="fz16"><!--{$diary.username}--></h3>
          <div class="color_9">
            <!--{if $diary.gender == '1'}-->男<!--{else}-->女<!--{/if}-->
            <!--{$diary.age}-->岁<!--{if $diary.height > 0}-->/<!--{$diary.height}-->CM<!--{/if}-->
            <!--{if $diary.education > 0}-->
            <!--{hook mod="var" item="education" type="text" value=$diary.education}-->
            <!--{/if}--> 
            <!--{area type="text" value=$diary.dist1}--> <!--{area type="text" value=$diary.dist2}-->
          </div>
        </dd>
        <div class="clear"></div>
      </dl>
    </div>
    <!--{/if}-->

    <!--{assign var="like_user" value=vo_list("mod={likeuser} where={v.avatar='1'} num={5} cache={1}")}-->
    <!--{if !empty($like_user)}-->
    <div class="bo_f7 pt20 pr br5 pb5 bsd">
      <span class="pa lt bg_main color_f inline_block pl5 pr10 bright fz12" style="top:-0.28rem">猜你喜欢</span>
      <a class="pa rt bg_f pl10 pr5 bo_f7 bleft fz14 color_red pr5" style="top:-0.28rem;" href="<!--{$oefile}-->&c=profile&type=cond" f="but_gourl">更改我的择偶要求</a>
      <!--{foreach $like_user as $volist}-->
      <a href="<!--{$oefile}-->&c=home&a=detail&id=<!--{$volist.userid}-->">
      <dl class="fl w20 t_center">
        <dt class="pr p5 pbn">
          <span class="h100 inline_block br oh w100" style="height:0px; padding-bottom: 100%;">
            <img class="w100 vam" src="<!--{$volist.headimg_s}-->" />
          </span>
        </dt>
        <dd class="plr5">
          <h4 class="ws fn fz14"><!--{$volist.username}--></h4>
          <p class="color_9"><!--{$volist.age}-->岁</p>
        </dd>
        <div class="clear"></div>
      </dl>
      </a>
      <!--{/foreach}-->
      <div class="clear"></div>
    </div>
    <!--{/if}-->
    
    <div class="fz16 lh30 pt20 content">
      <!--{$diary.content}-->
    </div>
    
  </div>

  <!--//评论列表 -->
  <div class="bg_f mt10 pt15 pb20">
    <input type="hidden" id="page" name="page" value="1" />
    <input type="hidden" id="id" name="id" value="<!--{$diary.diaryid}-->" />
    <input type="hidden" id="reqs_url" name="reqs_url" value="<!--{$oefile}-->&c=diary&a=commlist&datatype=json" />
    
    <div class="t_center lh30 color_9 fz14 bo_bf7">
      <span class="plr10 bg_f pr" style="bottom: -0.4rem;">共有<b class="color_f40" id="comment_nums">-</b>条评论</span>
    </div>
    <div class="pt30 plr15 pb10" id="comment_data">
    
    </div>
    
    <div class="t_center" style="display:none;" id="more_comment_wrap">
      <span class="inline_block plr20 lh35 br bo_light color_main fz14" f="but_more_comment">
        点击加载更多
        <img src="<!--{$urlpath}-->tpl/static/images/loading.gif" style="display:none;" class="vam" />
      </span>
    </div>
  </div>
</div>
<div class="h50"></div>
<!-- //评论框 -->
<div class="z200 pf bg_f lbr pl10 pb5 bsb bo_tf7 bsd cursor">
  <div class="mt5 pr  pr70 bsb">
    <input type="text" name="comment_content" id="comment_content" placeholder="发表评论，200个字以内" class="bn bg_f2 br h35 w100 fz15 bsb plr10"/>
    <div class="pa rt mr10">
      <span class="br3 inline_block ptb7 lhn fz15 cursor bg_main color_f plr10 pr t1" id="but_submit_comment" f="but_submit_comment" data-id="<!--{$diary.diaryid}-->">发表</span>
    </div>
  </div>
</div>
<!--{include file="<!--{$oetplpath}-->widget/block_footjs.tpl"}-->
<!--{include file="<!--{$oetplpath}-->widget/block_wxshare.tpl"}-->
<script src="<!--{$wapskin}-->js/diary.detail.js?v=<!--{$copyright_version}-->"></script>
<script type="text/javascript">
$(function(){
    $(".content").find("img").css('width','auto');
    $(".content").find("img").css('height','auto');
});
</script>
</body>
</html>