luohailiang hace 2 años
padre
commit
fdb1016837

+ 7 - 0
.idea/inspectionProfiles/Project_Default.xml

@@ -0,0 +1,7 @@
+<component name="InspectionProjectProfileManager">
+  <profile version="1.0">
+    <option name="myName" value="Project Default" />
+    <inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
+    <inspection_tool class="JSHint" enabled="true" level="ERROR" enabled_by_default="true" />
+  </profile>
+</component>

+ 16 - 0
.idea/jsLinters/jshint.xml

@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="JSHintConfiguration" version="2.13.0" use-config-file="true" use-custom-config-file="true" custom-config-file-path="$PROJECT_DIR$/teacher_classroom/assets/cookie/.jshintrc">
+    <option bitwise="true" />
+    <option browser="true" />
+    <option curly="true" />
+    <option eqeqeq="true" />
+    <option forin="true" />
+    <option maxerr="50" />
+    <option noarg="true" />
+    <option noempty="true" />
+    <option nonew="true" />
+    <option strict="true" />
+    <option undef="true" />
+  </component>
+</project>

+ 12 - 0
.idea/txwx_mobile.iml

@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module type="WEB_MODULE" version="4">
+  <component name="NewModuleRootManager">
+    <content url="file://$MODULE_DIR$">
+      <excludeFolder url="file://$MODULE_DIR$/temp" />
+      <excludeFolder url="file://$MODULE_DIR$/.tmp" />
+      <excludeFolder url="file://$MODULE_DIR$/tmp" />
+    </content>
+    <orderEntry type="inheritedJdk" />
+    <orderEntry type="sourceFolder" forTests="false" />
+  </component>
+</module>

+ 38 - 0
.idea/workspace.xml

@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="ChangeListManager">
+    <list default="true" id="3ee28d84-3a33-4e56-ab0c-74021eb4b850" name="变更" comment="" />
+    <option name="SHOW_DIALOG" value="false" />
+    <option name="HIGHLIGHT_CONFLICTS" value="true" />
+    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
+    <option name="LAST_RESOLUTION" value="IGNORE" />
+  </component>
+  <component name="ProjectId" id="2IAKMDUbe4ahB4Ri813UbhJO7bd" />
+  <component name="ProjectViewState">
+    <option name="hideEmptyMiddlePackages" value="true" />
+    <option name="showLibraryContents" value="true" />
+  </component>
+  <component name="PropertiesComponent"><![CDATA[{
+  "keyToString": {
+    "RunOnceActivity.OpenProjectViewOnStart": "true",
+    "RunOnceActivity.ShowReadmeOnStart": "true",
+    "WebServerToolWindowFactoryState": "false",
+    "vue.rearranger.settings.migration": "true"
+  }
+}]]></component>
+  <component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="应用程序级" UseSingleDictionary="true" transferred="true" />
+  <component name="TaskManager">
+    <task active="true" id="Default" summary="默认任务">
+      <changelist id="3ee28d84-3a33-4e56-ab0c-74021eb4b850" name="变更" comment="" />
+      <created>1669618897343</created>
+      <option name="number" value="Default" />
+      <option name="presentableId" value="Default" />
+      <updated>1669618897343</updated>
+      <workItem from="1669618898427" duration="2000" />
+    </task>
+    <servers />
+  </component>
+  <component name="TypeScriptGeneratedFilesManager">
+    <option name="version" value="3" />
+  </component>
+</project>

+ 25 - 60
static/scripts/transfer.js

@@ -1,61 +1,26 @@
-let location_search = [],
-    url_from = '',
-    url_to = '',
-    token = '';
-var hours = 'h8'
-// if(location.search.includes('token')) {
-//     location_search = location.search.split('&');
-//     for(let i in location_search) {
-//         if(location_search[i].includes('token')) {
-//             let t_index = location_search[i].indexOf('=');
-//             token = location_search[i].substring(t_index+1);
-//         } else if(location_search[i].includes('url_from')) {
-//             let f_index = location_search[i].indexOf('=');
-//             url_from = location_search[i].substring(f_index+1);
-//         } else if(location_search[i].includes('url_to')) {
-//             let o_index = location_search[i].indexOf('=');
-//             url_to = decodeURIComponent(location_search[i].substring(o_index+1));
-//         }
-//     }
-//     if(token != '') {
-//         const requestURL = gobalData.login + '/user/main/detail';
-//         $.ajax({
-//             url: requestURL,
-//             async: false,
-//             type: "POST",
-//             timeout: 30000,
-//             dataType: 'json',
-//             data: {
-//                 client:'web',
-//                 token: token
-//             },
-//             success:(res) =>{
-//                 if(res.code == '1') {
-//                     localStorage.setItem('userInfo', JSON.stringify(res.data));
-//                     setCookienew('overtime', 'overtime', hours);
-//                     setCookie(cookieskey,token);
-//                     setTimeout(()=>{
-//                         location.href = url_to;
-//                     },500)
-//
-//                 }
-//             }
-//         });
-//     }
-// } else {
-//     window.location.href = './index.html';
-// }
-new Vue({
-    el:'#transfer',
-    data() {
-        return {
-            link:''
+let ticket = '';
+if (location.search.includes('ticket')) {
+    ticket = location.search.substring(8);
+    const requestURL = 'https://tyyxopenapi.txhlwxx.com/openapi/oauth/zlb/checkticket.php';
+    $.ajax({
+        url: requestURL,
+        async: false,
+        type: "POST",
+        timeout: 30000,
+        dataType: 'json',
+        data: {
+            type:'login',
+            ticket: ticket
+        },
+        success: (res) => {
+            if (res.code == '1') {
+                localStorage.setItem('userInfo', JSON.stringify(res.data));
+                setTimeout(() => {
+                    location.href = './index.html';
+                }, 500)
+            } else {
+                window.alert(res.msg);
+            }
         }
-    },
-    methods:{
-
-    },
-    mounted() {
-      this.link = location.href;
-    }
-})
+    });
+}

BIN
teacher_classroom/js/.DS_Store


+ 9 - 9
transfer.html

@@ -8,20 +8,20 @@
     <link rel="stylesheet" href="static/styles/common.css?v=20221124">
 </head>
 <body>
-<div class="wrapper" id="transfer" v-cloak>
-<!--    <div class="transform-loading"></div>-->
-    <div style="position: fixed;left: 0;top: 0;width: 100%;height: 100%;display: flex;align-items: center;justify-content: center">
-        <div>
-            <h3 class="font-size-20 mt30 text-center">测试中,即将上线</h3>
-            <h3 class="font-size-16">{{link}}</h3>
-        </div>
-    </div>
+<div class="wrapper" id="transfer">
+    <div class="transform-loading"></div>
+<!--    <div style="position: fixed;left: 0;top: 0;width: 100%;height: 100%;display: flex;align-items: center;justify-content: center">-->
+<!--        <div>-->
+<!--            <h3 class="font-size-20 mt30 text-center">测试中,即将上线</h3>-->
+<!--            <h3 class="font-size-16">{{link}}</h3>-->
+<!--        </div>-->
+<!--    </div>-->
 
 </div>
 <script src="static/scripts/jquery.min.js"></script>
 <script src="static/scripts/vue.min.js"></script>
 <script src="static/scripts/axios.min.js"></script>
 <script src="static/scripts/qs.min.js"></script>
-<script src="static/scripts/transfer.js"></script>
+<script src="static/scripts/transfer.js?v=20221128"></script>
 </body>
 </html>