<#assign title="业委会"/>
<#include "/home/frag.head.ftl" />

<div class="weui-tab">
    <input id="userId" type="text" hidden="hidden" value=${user_id!}/>
    <div class="weui-tab__bd">
        <div id="tab1" class="weui-tab__bd-item weui-tab__bd-item--active">
            <#include "/yeweihui/ribaoDy.ftl" /></div>
        <div id="tab2" class="weui-tab__bd-item">
            <#include "/yeweihui/qiuzhu.ftl" /></div>
        <#--<div id="tab3" class="weui-tab__bd-item">-->
            <#--<h1>页面三</h1> </div>-->
        <#--<div id="tab4" class="weui-tab__bd-item">-->
            <#--<h1>页面四</h1> </div>-->
    </div>
    <div class="weui-tabbar">
        <a href="#tab1" class="weui-tabbar__item weui-bar__item--on">
            <div class="weui-tabbar__icon"> <img src="/static/images/wx/order.png" alt=""> </div>
            <p class="weui-tabbar__label">每日上报</p>
        </a>
        <a href="#tab2" class="weui-tabbar__item">
            <div class="weui-tabbar__icon"> <img src="/static/images/wx/customer_service.png" alt=""> </div>
            <p class="weui-tabbar__label">求助</p>
        </a>
        <#--<a href="#tab3" class="weui-tabbar__item">-->
            <#--<div class="weui-tabbar__icon"> <img src="./images/icon_nav_article.png" alt=""> </div>-->
            <#--<p class="weui-tabbar__label">发现</p>-->
        <#--</a>-->
        <#--<a href="#tab4" class="weui-tabbar__item">-->
            <#--<div class="weui-tabbar__icon"> <img src="./images/icon_nav_cell.png" alt=""> </div>-->
            <#--<p class="weui-tabbar__label">我</p>-->
        <#--</a>-->
    </div>
</div>


</body>

<#include "/home/frag.foot.ftl" />
<script>
<#include "/yeweihui/ribao.js" />
<#include "/yeweihui/qiuzhu.js" />

var taskList = ${taskList!'[]'};
var statisticsOrderList =${rbList!'[]'};

(function ($) {
    $(function(){
        $('.weui-navbar__item').on('click', function () {
            $(this).addClass('weui-bar__item_on').siblings('.weui-bar__item_on').removeClass('weui-bar__item_on');
            //内容切换
            var moduleClass = jQuery(this).attr("module");
            var ss = ".weui-tab__panel ." + moduleClass + "_weui_tab_bd_item_active";
            $(ss).removeClass(moduleClass + '_weui_tab_bd_item_active');
            var data_toggle =jQuery(this).attr("target");
            $(data_toggle).addClass(moduleClass + "_weui_tab_bd_item_active");
        });

    });
    $('#btnRB').empty();
    for (var i = 0; i < statisticsOrderList.length; i++) {//unitId
        var v = statisticsOrderList[i];//'+v.ridgepole+'&'+v.unit+'&'+userId+'
        $('#btnRB').append('<button class="weui-btn weui-btn_primary" style="display: grid;" value="'+v.unitId+'" onclick="ribao_init(this.value)" >'+v.ridgepole+'栋'+v.unit+'单元'+'</button>');
    }
    <#--console.log('ssssss');-->
    <#--var tasks = ${taskList!'[]'};-->
    // console.log('ssssss', tasks);
    // console.log('asdsfdgfhjghfgdf');

    ribao_init();
    qiuzhu_init();
})(jQuery);
</script>