Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 
 
 

84 rindas
3.5 KiB

  1. (function () {
  2. (function fontSize() {
  3. var html = document.documentElement;
  4. var windowWidth = html.clientWidth;
  5. html.style.fontSize = 100 * (windowWidth / 750) + 'px';
  6. })()
  7. var page = {
  8. isScroll: false,
  9. init: function ($page) {
  10. // 获取登录者信息
  11. var userinfo = learun.storage.get('userinfo');
  12. //数据绑定
  13. learun.layer.loading(true, '获取数据中');
  14. learun.httpget(config.webapi + "StuInfoFresh/stuInfoFreshEntity", userinfo.baseinfo.account, (data) => {
  15. if (data) {
  16. if (data["StuInfoFreshFamilyList"].length && data["StuInfoFreshFamilyList"].length > 0) {
  17. completeStyle("#IsCompleteInfo", "images/enter1-1.png");
  18. } else {
  19. notCompleteStyle("#IsCompleteInfo", "images/enter2-1.png");
  20. }
  21. if (data["StuInfoFreshEntity"].PayFeeStatus == "1") {
  22. completeStyle("#PayFeeStatus", "images/enter1-2.png");
  23. } else {
  24. notCompleteStyle("#PayFeeStatus", "images/enter2-2.png");
  25. }
  26. if (data["StuInfoFreshEntity"].StudentLoanStatus == "1") {
  27. completeStyle("#StudentLoan", "images/enter1-3.png");
  28. } else {
  29. notCompleteStyle("#StudentLoan", "images/enter2-3.png");
  30. }
  31. if (data["StuInfoFreshEntity"].OnsitePayFeeStatus == "1") {
  32. completeStyle("#OnsitePayFeeStatus", "images/enter1-4.png");
  33. } else {
  34. notCompleteStyle("#OnsitePayFeeStatus", "images/enter2-4.png");
  35. }
  36. if (data["StuInfoFreshEntity"].RegisterStatus == "1") {
  37. completeStyle("#RegisterStatus", "images/enter1-5.png");
  38. } else {
  39. notCompleteStyle("#RegisterStatus", "images/enter2-5.png");
  40. }
  41. page.bind($page);
  42. learun.layer.loading(false);
  43. }
  44. });
  45. //点击步骤
  46. $page.on('tap', '#IsCompleteInfo', function () {
  47. learun.nav.go({ path: 'welcome', title: '完善新生信息', isBack: true, isHead: true, param: {}, type: 'right' });
  48. });
  49. $page.on('tap', '#RegisterStatus', function () {
  50. learun.nav.go({ path: '/EducationalAdministration/StuInfoFresh/RegisterQRCode', title: '生成报到二维码', isBack: true, isHead: true, param: {}, type: 'right' });
  51. });
  52. $page.on('tap', '#StudentLoan', function () {
  53. learun.nav.go({ path: '/EducationalAdministration/StuInfoFresh/StudentLoan', title: '填写贷款回执码', isBack: true, isHead: true, param: {}, type: 'right' });
  54. });
  55. },
  56. bind: function ($page) {
  57. }
  58. };
  59. //已完成样式
  60. var completeStyle = function (box, img) {
  61. $(box).removeClass("sSec1Type2").addClass("sSec1Type1");
  62. $(box).find(".sSec1State").html('已完成');
  63. $(box).find('img').attr("src", img);
  64. };
  65. //未完成样式
  66. var notCompleteStyle = function (box, img) {
  67. $(box).removeClass("sSec1Type1").addClass("sSec1Type2");
  68. $(box).find(".sSec1State").html('未完成');
  69. $(box).find('img').attr("src", img);
  70. };
  71. return page;
  72. })();