(function () { (function fontSize() { var html = document.documentElement; var windowWidth = html.clientWidth; html.style.fontSize = 100 * (windowWidth / 750) + 'px'; })() var page = { isScroll: false, init: function ($page) { // 获取登录者信息 var userinfo = learun.storage.get('userinfo'); //数据绑定 learun.layer.loading(true, '获取数据中'); learun.httpget(config.webapi + "StuInfoFresh/stuInfoFreshEntity", userinfo.baseinfo.account, (data) => { if (data) { if (data["StuInfoFreshFamilyList"].length && data["StuInfoFreshFamilyList"].length > 0) { completeStyle("#IsCompleteInfo", "images/enter1-1.png"); } else { notCompleteStyle("#IsCompleteInfo", "images/enter2-1.png"); } if (data["StuInfoFreshEntity"].PayFeeStatus == "1") { completeStyle("#PayFeeStatus", "images/enter1-2.png"); } else { notCompleteStyle("#PayFeeStatus", "images/enter2-2.png"); } if (data["StuInfoFreshEntity"].StudentLoanStatus == "1") { completeStyle("#StudentLoan", "images/enter1-3.png"); } else { notCompleteStyle("#StudentLoan", "images/enter2-3.png"); } if (data["StuInfoFreshEntity"].OnsitePayFeeStatus == "1") { completeStyle("#OnsitePayFeeStatus", "images/enter1-4.png"); } else { notCompleteStyle("#OnsitePayFeeStatus", "images/enter2-4.png"); } if (data["StuInfoFreshEntity"].RegisterStatus == "1") { completeStyle("#RegisterStatus", "images/enter1-5.png"); } else { notCompleteStyle("#RegisterStatus", "images/enter2-5.png"); } page.bind($page); learun.layer.loading(false); } }); //点击步骤 $page.on('tap', '#IsCompleteInfo', function () { learun.nav.go({ path: 'welcome', title: '完善新生信息', isBack: true, isHead: true, param: {}, type: 'right' }); }); $page.on('tap', '#RegisterStatus', function () { learun.nav.go({ path: '/EducationalAdministration/StuInfoFresh/RegisterQRCode', title: '生成报到二维码', isBack: true, isHead: true, param: {}, type: 'right' }); }); $page.on('tap', '#StudentLoan', function () { learun.nav.go({ path: '/EducationalAdministration/StuInfoFresh/StudentLoan', title: '填写贷款回执码', isBack: true, isHead: true, param: {}, type: 'right' }); }); }, bind: function ($page) { } }; //已完成样式 var completeStyle = function (box, img) { $(box).removeClass("sSec1Type2").addClass("sSec1Type1"); $(box).find(".sSec1State").html('已完成'); $(box).find('img').attr("src", img); }; //未完成样式 var notCompleteStyle = function (box, img) { $(box).removeClass("sSec1Type1").addClass("sSec1Type2"); $(box).find(".sSec1State").html('未完成'); $(box).find('img').attr("src", img); }; return page; })();