(function () {
    var keyValue = '';
    var $header = null;
    var page = {
        isScroll: true,
        init: function ($page, param) {
            keyValue = param.keyValue;
            // 添加头部按钮列表 
            $header = $page.parents('.f-page').find('.f-page-header');
            // 取消 

            $page.find('#aa').on('tap', function () {
                learun.nav.go({ path: 'EducationalAdministration/StudentQRCode/Normal', title: '正常', type: 'right' });
            });
            $page.find('#bb').on('tap', function () {
                learun.nav.go({ path: 'EducationalAdministration/StudentQRCode/AbNormalWeak', title: '异常微弱', type: 'right' });
            });
            $page.find('#cc').on('tap', function () {
                learun.nav.go({ path: 'EducationalAdministration/StudentQRCode/AbNormalSerious', title: '异常严重', type: 'right' });
            });

            var logininfo = learun.storage.get('userinfo');
            
            //learun.httpget(config.webapi + 'learun/EducationalAdministration/StuInfoBasic/stuinfoDetail',logininfo.baseinfo.account, function (data) {
            ////learun.httpget(config.webapi + 'learun/EducationalAdministration/StuInfoBasic/stuinfoDetail','2018010108', function (data) {
            //    console.log(data);
            //    $('.sQrList div strong').eq(0).html(data.stuInfo.StuName);
            //    $('.sQrList div strong').eq(1).html(data.majorInfo.MajorName);
            //    $('.sQrList div strong').eq(2).html(data.classInfo.ClassName);
            //    $('.sQrList div strong').eq(3).html(data.stuInfo.StuNo);
            //    $('.sQrList div strong').eq(4).html(data.roomInfo);
            //    //$('.sQrList div strong').eq(4).html(data.stuInfo.Photo); //学生照片
				
            //    learun.code.encode({ id: 'lr_mycode_qrcode', text: data.stuInfo.StuNo });
            //})
            learun.code.encode({ id: 'lr_mycode_qrcode', text: '2019010211' });

        },
        bind: function ($page, param) {

        }, destroy: function (pageinfo) {
            $header = null;
            keyValue = '';
        }
    };



    //上传照片

    return page;


})();