chao há 8 meses atrás
pai
commit
6483f57605

+ 1 - 1
dist/assets/Details-13j6zSLe.js → dist/assets/Details-TN40Cq4i.js

@@ -1 +1 @@
-import{u as m,r as i,o as p,a as l,b as a,c as b,d as t,w as s,F as f,H as h,e as n,t as k,f as v,g,h as r,i as y,C,j as x,P as B,k as N}from"./index-MGXuBBnF.js";const V={class:"iframDiv"},P={__name:"Details",setup(D){const{query:u,params:o}=m();console.log(u,o);const e=i("");return p(()=>{e.value=o.title}),(w,F)=>{const c=l("el-breadcrumb-item"),_=l("el-breadcrumb"),d=l("el-page-header");return a(),b(f,null,[t(h),t(d,null,{breadcrumb:s(()=>[t(_,{separator:"/"},{default:s(()=>[t(c,{to:{path:"/"}},{default:s(()=>[n(" 首页 ")]),_:1}),t(c,null,{default:s(()=>[n(k(v(o).title),1)]),_:1})]),_:1})]),default:s(()=>[g("div",V,[e.value=="课程列表"?(a(),r(C,{key:0})):e.value=="资源中心"?(a(),r(x,{key:1})):e.value=="实践中心"?(a(),r(B,{key:2})):e.value=="其他课程资源"?(a(),r(N,{key:3})):y("",!0)])]),_:1})],64)}}};export{P as default};
+import{u as m,r as i,o as p,a as l,b as a,c as b,d as t,w as s,F as f,H as h,e as n,t as k,f as v,g,h as r,i as y,C,j as x,P as B,k as N}from"./index-U5g_3gZV.js";const V={class:"iframDiv"},P={__name:"Details",setup(D){const{query:u,params:o}=m();console.log(u,o);const e=i("");return p(()=>{e.value=o.title}),(w,F)=>{const c=l("el-breadcrumb-item"),_=l("el-breadcrumb"),d=l("el-page-header");return a(),b(f,null,[t(h),t(d,null,{breadcrumb:s(()=>[t(_,{separator:"/"},{default:s(()=>[t(c,{to:{path:"/"}},{default:s(()=>[n(" 首页 ")]),_:1}),t(c,null,{default:s(()=>[n(k(v(o).title),1)]),_:1})]),_:1})]),default:s(()=>[g("div",V,[e.value=="课程列表"?(a(),r(C,{key:0})):e.value=="资源中心"?(a(),r(x,{key:1})):e.value=="实践中心"?(a(),r(B,{key:2})):e.value=="其他课程资源"?(a(),r(N,{key:3})):y("",!0)])]),_:1})],64)}}};export{P as default};

Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/assets/admin-4H_0Rv5T.js


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/assets/index-Le3tMbdy.css


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/assets/index-U5g_3gZV.js


+ 2 - 2
dist/index.html

@@ -8,8 +8,8 @@
     <script>
       document.domain = "cocorobo.cn"
     </script>
-    <script type="module" crossorigin src="./assets/index-MGXuBBnF.js"></script>
-    <link rel="stylesheet" crossorigin href="./assets/index-5wPwpkDS.css">
+    <script type="module" crossorigin src="./assets/index-U5g_3gZV.js"></script>
+    <link rel="stylesheet" crossorigin href="./assets/index-Le3tMbdy.css">
   </head>
   <body>
     <div id="app"></div>

+ 5 - 2
src/App.vue

@@ -53,6 +53,8 @@ const linkLogin = () => {
 
 // 同步登录信息
 const userInfo = (data) => {
+  // eduId  - 教育ID
+  // userId  - 用户id
   // areaAdministrator - 安全管理员
   // userAdministrator - 用户管理员(市区级)
   // securityAuditor - 安全审计员(市区级)
@@ -80,13 +82,14 @@ const userInfo = (data) => {
     }
     axios.defaults.headers = { 'content-type': 'application/x-www-form-urlencoded' }
     axios.defaults.withCredentials = true;
+    let diqu = JSON.parse(`${data.schoolName}&${data.schoolCode}&${data.orgName}&${data.orgCode}`)
     axios.post(`https://beta.api.cocorobo.cn/api/user`, qs.stringify(params)).then(res => {
       // console.log(res, '222222222222')
       if (res.data && res.data[0][0].active == 1) {
         setStateUserinfo()
       } else {
         if (data.telephoneNumber) {
-          top.U.A.Request("https://pbl.cocorobo.cn/api/pbl/batchRegistrationSzdjg", [data.userName, data.telephoneNumber + '@szdjg.com', '16ace517-b5c7-4168-a9bb-a9e0035df840', data.schoolName, data.telephoneNumber, userGrand, userIdentity, data.userId], function (r) {
+          top.U.A.Request("https://pbl.cocorobo.cn/api/pbl/batchRegistrationSzdjg3", [data.userName, data.telephoneNumber + '@szdjg.com', '16ace517-b5c7-4168-a9bb-a9e0035df840', data.schoolName || "", data.telephoneNumber, userGrand, userIdentity, data.userId,diqu,data.eduId], function (r) {
             // console.log('rrrrr', r)
             axios.post(`https://beta.api.cocorobo.cn/api/user`, qs.stringify(params)).then(d => {
               // store.user = top.US.userInfo
@@ -102,7 +105,7 @@ const userInfo = (data) => {
       }
     }).catch(e => {
       if (data.telephoneNumber) {
-        top.U.A.Request("https://pbl.cocorobo.cn/api/pbl/batchRegistrationSzdjg", [data.userName, data.telephoneNumber + '@szdjg.com', '16ace517-b5c7-4168-a9bb-a9e0035df840', data.schoolName || "", data.telephoneNumber, userGrand, userIdentity, data.userId], function (r) {
+        top.U.A.Request("https://pbl.cocorobo.cn/api/pbl/batchRegistrationSzdjg3", [data.userName, data.telephoneNumber + '@szdjg.com', '16ace517-b5c7-4168-a9bb-a9e0035df840', data.schoolName || "", data.telephoneNumber, userGrand, userIdentity, data.userId,diqu,data.eduId], function (r) {
           // console.log('rrrrr', r)
           axios.post(`https://beta.api.cocorobo.cn/api/user`, qs.stringify(params)).then(d => {
             // store.user = top.US.userInfo

Alguns ficheiros não foram mostrados porque muitos ficheiros mudaram neste diff