lsc il y a 1 semaine
Parent
commit
859bc3de41
1 fichiers modifiés avec 6 ajouts et 5 suppressions
  1. 6 5
      js/liyuan/Onload2.js

+ 6 - 5
js/liyuan/Onload2.js

@@ -38,11 +38,12 @@ window.onload = function () {
     // U.MD.D.fullscreen();
     U.MD.D.stopSafari();
 
-    if(U.UF.C.queryString('type')){
-        U.MD.D.I.openApplication('liyuanLogin', {type: U.UF.C.queryString('type')}, {courseid: U.UF.C.queryString('courseid')})
-    }else{
-        U.MD.D.I.openApplication('liyuanLogin')
-    }
+    const type = U.UF.C.queryString('type');
+    const courseid = U.UF.C.queryString('courseid');
+    let params = {};
+    if (type) params.type = type;
+    if (courseid) params.courseid = courseid;
+    U.MD.D.I.openApplication('liyuanLogin', params);
 
     // window.addEventListener('resize', () => {
     //     var realHeight = window.innerHeight