chao 1 年之前
父节点
当前提交
2f455f40b1

+ 1 - 1
dist/assets/Details-5SJHfJKy.js → dist/assets/Details-9m2QlH52.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-3gnlaRln.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-tmf9KnCG.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};

文件差异内容过多而无法显示
+ 0 - 0
dist/assets/admin-Pckw3VP_.js


文件差异内容过多而无法显示
+ 0 - 0
dist/assets/index-4Ye9nnBo.css


文件差异内容过多而无法显示
+ 0 - 0
dist/assets/index-tmf9KnCG.js


+ 2 - 2
dist/index.html

@@ -8,8 +8,8 @@
     <script>
       document.domain = "cocorobo.cn"
     </script>
-    <script type="module" crossorigin src="./assets/index-3gnlaRln.js"></script>
-    <link rel="stylesheet" crossorigin href="./assets/index--7G8V9Nd.css">
+    <script type="module" crossorigin src="./assets/index-tmf9KnCG.js"></script>
+    <link rel="stylesheet" crossorigin href="./assets/index-4Ye9nnBo.css">
   </head>
   <body>
     <div id="app"></div>

+ 4 - 3
src/App.vue

@@ -80,13 +80,14 @@ const userInfo = (data) => {
     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) {
-        store.user = US.userInfo
+        console.log(top)
+        store.user = top.US.userInfo
       } 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) {
             // console.log('rrrrr', r)
             axios.post(`https://beta.api.cocorobo.cn/api/user`, qs.stringify(params)).then(d => {
-              store.user = US.userInfo
+              store.user = top.US.userInfo
             })
           }, [], { "type": "POST", "withCredentials": true });
         } else {
@@ -100,7 +101,7 @@ const userInfo = (data) => {
         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) {
           // console.log('rrrrr', r)
           axios.post(`https://beta.api.cocorobo.cn/api/user`, qs.stringify(params)).then(d => {
-            store.user = US.userInfo
+            store.user = top.US.userInfo
           })
         }, [], { "type": "POST", "withCredentials": true });
       } else {

+ 3 - 3
src/components/header/headerRight.vue

@@ -46,10 +46,10 @@ const goBack=()=>{
 
 watchEffect(() => {
     // console.log(user, 2222222222)
-    if (JSON.stringify(US.userInfo) != "{}") {
+    if (JSON.stringify(top.US.userInfo) != "{}") {
         isLogin.value = true
-        userName.value = US.userInfo.username
-        if (CurrentRole.currentRole == "edupersonnel" || CurrentRole.currentRole == "areaAdministrator" || CurrentRole.currentRole == "userAdministrator" || CurrentRole.currentRole == "securityAuditor" || CurrentRole.currentRole == "schoolAdministrator" || CurrentRole.currentRole == "schoolSecurityAuditor" || CurrentRole.currentRole == "teacher" || US.userInfo.type != 2) {
+        userName.value = top.US.userInfo.username
+        if (CurrentRole.currentRole == "edupersonnel" || CurrentRole.currentRole == "areaAdministrator" || CurrentRole.currentRole == "userAdministrator" || CurrentRole.currentRole == "securityAuditor" || CurrentRole.currentRole == "schoolAdministrator" || CurrentRole.currentRole == "schoolSecurityAuditor" || CurrentRole.currentRole == "teacher" || top.US.userInfo.type != 2) {
             admin.value = true
         }
     }

+ 4 - 4
src/components/main/courseSelect.vue

@@ -277,8 +277,8 @@ const getImageUrl = (url) => {
 }
 
 const openCourseDetail = (id) => {
-  console.log(US.userInfo.type)
-  top.U.MD.D.I.openInApplication("studyDetail", id, 2, US.userInfo.type); //这个是打开指定的课程接口
+  console.log(top.US.userInfo.type)
+  top.U.MD.D.I.openInApplication("studyDetail", id, 2, top.US.userInfo.type); //这个是打开指定的课程接口
 }
 const updateCourse = id => {
   top.U.MD.D.I.openInApplication('openCourseUpdate', id)
@@ -294,8 +294,8 @@ const updateReduction = () => {
 }
 
 watchEffect(() => {
-  if (JSON.stringify(US.userInfo) != "{}") {
-    if (CurrentRole.currentRole == "edupersonnel" || CurrentRole.currentRole == "areaAdministrator" || CurrentRole.currentRole == "userAdministrator" || CurrentRole.currentRole == "securityAuditor" || CurrentRole.currentRole == "schoolAdministrator" || CurrentRole.currentRole == "schoolSecurityAuditor" || CurrentRole.currentRole == "teacher" || US.userInfo.type != 2) {
+  if (JSON.stringify(top.US.userInfo) != "{}") {
+    if (CurrentRole.currentRole == "edupersonnel" || CurrentRole.currentRole == "areaAdministrator" || CurrentRole.currentRole == "userAdministrator" || CurrentRole.currentRole == "securityAuditor" || CurrentRole.currentRole == "schoolAdministrator" || CurrentRole.currentRole == "schoolSecurityAuditor" || CurrentRole.currentRole == "teacher" || top.US.userInfo.type != 2) {
       isupdateCourse.value = true
     }
   }

+ 2 - 2
src/components/main/other.vue

@@ -36,8 +36,8 @@ import Img3 from '@/assets/icon/学生评价icon.png'
 // const InfoStore = userInfoStore()
 const Identity = ref(0)
 onMounted(() => {
-  if(US.userInfo && US.userInfo.type){
-    Identity.value = US.userInfo.type
+  if(top.US.userInfo && top.US.userInfo.type){
+    Identity.value = top.US.userInfo.type
   }
 })
 

+ 2 - 2
src/views/main.vue

@@ -29,9 +29,9 @@ const isLogin = ref(false)
 
 watchEffect(() => {
   // console.log('111111111111',CurrentRole, user.user)
-  if (JSON.stringify(US.userInfo.type) != "{}") {
+  if (JSON.stringify(top.US.userInfo.type) != "{}") {
     isLogin.value = true
-    if (CurrentRole.currentRole == "edupersonnel" || CurrentRole.currentRole == "areaAdministrator" || CurrentRole.currentRole == "userAdministrator" || CurrentRole.currentRole == "securityAuditor" || CurrentRole.currentRole == "schoolAdministrator" || CurrentRole.currentRole == "schoolSecurityAuditor" || CurrentRole.currentRole == "teacher" || US.userInfo.type != 2) {
+    if (CurrentRole.currentRole == "edupersonnel" || CurrentRole.currentRole == "areaAdministrator" || CurrentRole.currentRole == "userAdministrator" || CurrentRole.currentRole == "securityAuditor" || CurrentRole.currentRole == "schoolAdministrator" || CurrentRole.currentRole == "schoolSecurityAuditor" || CurrentRole.currentRole == "teacher" || top.US.userInfo.type != 2) {
       isupdateCourse.value = true
     }
   }

部分文件因为文件数量过多而无法显示