{extend name="default/base" /}
{block name="title"}我的消息 - {__block__}{/block}
{block name="css"}
<link rel="stylesheet"  href="__MOBILE__/css/messages.css?v={$v}">
{/block}
{block name="header"}
	<div id="info_list">
    <header style="background:#ffffff;" class="ui-header ui-header-positive ui-border-b wst-header">
        <i class="ui-icon-return" onclick="history.back()"></i><h1>我的消息</h1>
    </header>
{/block}
{block name="footer"}
	<div class="ui-loading-wrap wst-Load" id="Load">
	    <i class="ui-loading"></i>
	</div>
	<footer class="ui-footer wst-footer-btns" style="height:49px; border-top: 1px solid #e0e0e0;" id="footer">
        <div class="wst-toTop" id="toTop">
              <i class="wst-toTopimg"><span>顶部</span></i>
        </div>

  <div class="ui-row-flex ui-whitespace">
        <div class="ui-col ui-col-2 favorite-tc">
            <label class="ui-checkbox" style="margin-left:5px;">
              <input class="sactive" type="checkbox"   onclick="javascript:checkAll(this);">
            </label>
            全选
        </div>

        <div class="ui-col">
            <div class="ui-btn-wrap f-btn">
            <button class="ui-btn ui-btn-danger del-btn" onclick="toDelMsg()">
                删除消息
            </button>
            </div>
        </div>
    </div>

	</footer>
{/block}
{block name="main"}
    <input type="hidden" name="" value="" id="currPage" autocomplete="off">
    <input type="hidden" name="" value="" id="totalPage" autocomplete="off">
    <script type="text/html" id="msgList">
        {{# for(var i=0; i<d.length; i++){ }}
              <li>
              <label class="ui-checkbox msg-chk">
              <input class="active" type="checkbox" msgId="{{d[i].id}}" >
              </label>
              <div class="ui-list-info" onclick="javascript:getMsgDetails({{d[i].id}});">
              <h5 class="ui-nowrap">
              <span class="{{(d[i].msgStatus == 0)?'wst-info_ico':'wst-info_ico1' }} j-icon_{{d[i].id}}"></span>{{d[i].msgContent}}</h5>
              </div>
              </li>
              <div class="wst-Line"></div>
         {{# } }}
    </script>
    <section class="ui-container info-prompt">
		<ul class="ui-list ui-list-text wst-info_content" id="info-list">
		</ul>
    </section>
    </div>
    <div id="info_details" style="display:none;">
  	<header style="background:#ffffff;" class="ui-header ui-header-positive ui-border-b wst-header">
  		<i class="ui-icon-return" onclick="javascript:returnInfo()"></i><h1>消息详情</h1>
    </header>
    <section class="ui-container">
		<div class="ui-whitespace detail-time"><span class="wst-info_detime"></span></div>
		<div class="ui-whitespace"><span class="wst-info_decontent"></span></div>
    </section>
    </div>
{/block}
{block name="include"}
{include file="default/dialog" /}<!-- 对话框模板 -->
{/block}
{block name="js"}
<script type='text/javascript' src='__MOBILE__/users/messages/messages.js?v={$v}'></script>
{/block}