Sfoglia il codice sorgente

Merge branch 'beta'

lsc 10 ore fa
parent
commit
b60844930e
1 ha cambiato i file con 9 aggiunte e 2 eliminazioni
  1. 9 2
      js/liyuan/Onload2.js

+ 9 - 2
js/liyuan/Onload2.js

@@ -1217,8 +1217,15 @@ function loginSet(userInfo, res){
     //     U.MD.D.I.openApplication("appStore")
     // }
 
-    let shareCourseId = window.location.href.indexOf("?shareCourseId=")!=-1?window.location.href.split("?shareCourseId=")[1].toString():''
-    if(shareCourseId){
+    // let shareCourseId = window.location.href.indexOf("?shareCourseId=")!=-1?window.location.href.split("?shareCourseId=")[1].toString():''
+    let _hashSearch = "?" + (window.location.hash.split("?")[1] || "");
+    let shareCourseId = U.UF.C.queryString("shareCourseId", _hashSearch);
+    let _shareType = U.UF.C.queryString("type", _hashSearch);
+    if (shareCourseId && _shareType === "prievew") {
+        U.UF.F.closeWindow("#studyDetail")
+        console.log(shareCourseId);
+        U.MD.D.I.openInApplication("studyDetailNo", shareCourseId, 5, 1)
+    }else if(shareCourseId){
         console.log(shareCourseId);
         U.MD.D.I.openInApplication("studyDetail", shareCourseId, 5, 1)
     }