<!--{assign var="menu_id" value="cp"}-->
<!--{include file="<!--{$oetplpath}-->block_header.tpl"}-->
<div class="oe_ntop">
  <i class="iconfont" onclick="goBack();">&#xe616;</i>
  <p>站内消息</p>
</div>
<div class="oe_msg" id="json_data">
  <!--{if empty($msg)}-->
  <h6>没有符合条件的信息</h6>
  <!--{else}-->
  <!--{foreach $msg as $volist}-->
  <dl id="msg_<!--{$volist.msgid}-->" <!--{if $volist.readflag == '0'}--> class="current" <!--{/if}-->>

    <dt>
      <p class="p_1">
        <!--{if $volist.readflag == '0'}-->
        <span class="span_1" f="but_readmsg" data-id="<!--{$volist.msgid}-->" style="cursor:pointer;">阅读</span>
        <!--{else}-->
        <i class="iconfont">&#xe621;</i>
        <!--{/if}-->
        <!--{if $volist.readflag == '0'}-->
        <em class="em_1">未读</em>
        <!--{else}-->
        <em class="em_2">已读</em>
        <!--{/if}-->
        <label><!--{$volist.sendtime|date_format:"%Y-%m-%d %H:%M:%S"}--></label>
        <span class="span_2" f="but_del_one" data-type="msg" data-id="<!--{$volist.msgid}-->" data-mod="msg" style="cursor:pointer;">
		  <i class="iconfont">&#xe62b;</i>删除
		</span>
       </p>
    </dt>

	<dd><!--{$volist.content}--></dd>

  </dl>
  <!--{/foreach}-->
  <!--{/if}-->
</div>


<input type="hidden" name="page" id="page" value="2" />
<!--{if $pagecount > 1}-->
<div class="oe_page" f="but_loadmore_page" data-url="<!--{$oefile}-->&c=<!--{$c}-->&a=list&datatype=json" data-box="json_data">点击加载下一页</div>
<!--{/if}-->

<script type="text/javascript">
$(function(){
	//阅读
	$(document).on("click", "[f='but_readmsg']", function(){
		$_id = $(this).attr("data-id");
		$_urlitems = "&id="+encodeURIComponent($_id);
		$_url = WAP_APPFILE + "&c=<!--{$c}-->&a=read"+$_urlitems;
		$post_json = {"url":$_url, "type":"reload", "success_text":"已阅读", "fail_text":"阅读失败"};
		_oemarryAjaxPost($post_json);
	});
});
</script>
</body>
</html>