chao 1 سال پیش
والد
کامیت
471e59d5dd

+ 1 - 1
dist/assets/Details-vhGmpWwf.js → dist/assets/Details-eu5cAVe2.js

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

+ 1 - 1
dist/assets/admin-Lpd_wvRF.js → dist/assets/admin-h19Sna1H.js

@@ -1 +1 @@
-import{_ as d,k as _,r as a,b as c,l as s,p as n,m as i,g as t,d as p}from"./index-Mnn_AMKp.js";const l=e=>(n("data-v-5156346f"),e=e(),i(),e),u={class:"adminStudent"},f=l(()=>t("div",{style:{width:"100%",height:"100%"}},[t("iframe",{src:"//beta.pbl.cocorobo.cn/pbl-teacher-table/dist/#/works?userid=a77e9404-efec-11e9-96f9-028edca3b798&oid=45facc0a-1211-11ec-80ad-005056b86db5&org=",frameborder:"0",allow:"camera *; fullscreen *;fullscreen 'src'"})],-1)),m=[f],h={__name:"adminStudent",setup(e){return _({user:"",region:"",date:""}),a(0),a(5),a(4),a(10),(o,r)=>(c(),s("div",u,m))}},b=d(h,[["__scopeId","data-v-5156346f"]]),S={__name:"admin",setup(e){return(o,r)=>(c(),s("div",null,[p(b)]))}};export{S as default};
+import{_ as d,k as _,r as a,b as c,l as s,p as n,m as i,g as t,d as p}from"./index-yQYs7y3d.js";const l=e=>(n("data-v-5156346f"),e=e(),i(),e),u={class:"adminStudent"},f=l(()=>t("div",{style:{width:"100%",height:"100%"}},[t("iframe",{src:"//beta.pbl.cocorobo.cn/pbl-teacher-table/dist/#/works?userid=a77e9404-efec-11e9-96f9-028edca3b798&oid=45facc0a-1211-11ec-80ad-005056b86db5&org=",frameborder:"0",allow:"camera *; fullscreen *;fullscreen 'src'"})],-1)),m=[f],h={__name:"adminStudent",setup(e){return _({user:"",region:"",date:""}),a(0),a(5),a(4),a(10),(o,r)=>(c(),s("div",u,m))}},b=d(h,[["__scopeId","data-v-5156346f"]]),S={__name:"admin",setup(e){return(o,r)=>(c(),s("div",null,[p(b)]))}};export{S as default};

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
dist/assets/index-64Zc-ID8.css


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
dist/assets/index-yQYs7y3d.js


BIN
dist/assets/logo-OffHA7jB.png


+ 3 - 3
dist/index.html

@@ -2,14 +2,14 @@
 <html lang="en">
   <head>
     <meta charset="UTF-8">
-    <link rel="icon" href="./favicon.ico">
+    <link rel="icon" href="./assets/logo-OffHA7jB.png">
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
     <title>课程资源平台</title>
     <script>
       document.domain = "cocorobo.cn"
     </script>
-    <script type="module" crossorigin src="./assets/index-Mnn_AMKp.js"></script>
-    <link rel="stylesheet" crossorigin href="./assets/index-ldo6XSnS.css">
+    <script type="module" crossorigin src="./assets/index-yQYs7y3d.js"></script>
+    <link rel="stylesheet" crossorigin href="./assets/index-64Zc-ID8.css">
   </head>
   <body>
     <div id="app"></div>

+ 1 - 1
index.html

@@ -2,7 +2,7 @@
 <html lang="en">
   <head>
     <meta charset="UTF-8">
-    <link rel="icon" href="/favicon.ico">
+    <link rel="icon" href="/src/assets/icon/logo.png">
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
     <title>课程资源平台</title>
     <script>

+ 8 - 20
src/App.vue

@@ -9,23 +9,6 @@ import { userInfoStore } from './stores/counter'
 const route = useRoute()
 const store = userInfoStore()
 onMounted(() => {
-  let params = {
-    openid: "fb1ca3e74fb4236ae95d0c670f65487114e0e3878759bc46d907d8ef61b568d09f5543fc67f61aa7"
-  }
-  axios.defaults.headers = { 'content-type': 'application/x-www-form-urlencoded' }
-  axios.defaults.withCredentials = true;
-  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) {
-
-    } else {
-
-      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('1111111111', r)
-      }, [], { "type": "POST", "withCredentials": true });
-    }
-  })
   console.log(11, window.parent.location.href)
   // 通过 grant_code 获取登录信息
   let isGrantCode = getUrlParam(window.parent.location.href, 'grant_code')
@@ -67,17 +50,22 @@ const userInfo = (data) => {
     userGrand = data.childList[0].gradeName + data.childList[0].className
   }
   let params = {
-    openid: data.userId
+    openid: "fb1ca3e74fb4236ae95d0c670f65487114e0e3878759bc46d907d8ef61b568d09f5543fc67f61aa7",
+    edu: true
   }
+  axios.defaults.headers = { 'content-type': 'application/x-www-form-urlencoded' }
+  axios.defaults.withCredentials = true;
   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) {
 
     } else {
-
       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('1111111111', r)
+        console.log('rrrrr', r)
+        axios.post(`https://beta.api.cocorobo.cn/api/user`, qs.stringify(params)).then(d=>{
+          console.log(d, 'ddddddd')
+        })
       }, [], { "type": "POST", "withCredentials": true });
     }
   })

BIN
src/assets/icon/logo.png


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

@@ -15,7 +15,7 @@
         </div>
         <div v-else>
             <el-button @click="studentLogin()">学生登录</el-button>
-            <el-button @click="linkLogin()">登录</el-button>
+            <el-button @click="linkLogin()">教师登录</el-button>
         </div>
     </div>
 </template>

+ 52 - 79
src/components/main/courseSelect.vue

@@ -1,27 +1,25 @@
 <template>
   <h2 class="contentTitle">课程列表</h2>
   <div class="course_select">
-    <span class="Screening">筛选</span>
-    <div style="float: right;">
-      年级:<el-select v-model="value" class="m-2" placeholder="三年级" style="width: 240px" @change="getCurrenData()">
-        <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
-      </el-select>
-    </div>
+    <span class="grandTitle">年级:</span>
+    <el-button :class="selectGrand == '三年级' ? 'el_button_active' : ''" @click="clickGrand('三年级')">三年级</el-button>
+    <el-button :class="selectGrand == '四年级' ? 'el_button_active' : ''" @click="clickGrand('四年级')">四年级</el-button>
+    <el-button :class="selectGrand == '五年级' ? 'el_button_active' : ''" @click="clickGrand('五年级')">五年级</el-button>
+    <el-button :class="selectGrand == '六年级' ? 'el_button_active' : ''" @click="clickGrand('六年级')">六年级</el-button>
+    <el-button :class="selectGrand == '七年级' ? 'el_button_active' : ''" @click="clickGrand('七年级')">七年级</el-button>
+    <el-button :class="selectGrand == '八年级' ? 'el_button_active' : ''" @click="clickGrand('八年级')">八年级</el-button>
   </div>
   <div class="course_select">
     <span class="grandTitle">{{ value }}</span>
     <div v-if="currentData && currentData.shang.length > 0">
-      <div class="book">
-        <img src="../../assets/icon/shang.png" alt="">
-        <span>上册</span>
-      </div>
       <el-row :gutter="20">
         <el-col :span="6" v-for="item in currentData.shang" :key="item.title">
           <div class="grid-content ep-bg-purple">
             <img :src="getImageUrl(item.url)" alt="">
             <div class="course_content">
-              <p>{{ item.title }}</p>
+              <p>{{ item.title }}<span>上册</span></p>
               <div class="class_button">
+                <el-button>还原</el-button>
                 <el-button>备课</el-button>
                 <el-button class="el_button_active">上课</el-button>
               </div>
@@ -31,20 +29,17 @@
       </el-row>
     </div>
     <div v-if="currentData && currentData.xia.length > 0">
-      <div class="book">
-        <img src="../../assets/icon/xia.png" alt="">
-        <span>下册</span>
-      </div>
       <el-row :gutter="20">
         <el-col :span="6" v-for="item in currentData.xia" :key="item.title">
           <div class="grid-content ep-bg-purple">
             <img :src="getImageUrl(item.url)" alt="">
             <div class="course_content">
-              <p>{{ item.title }}</p>
+              <p>{{ item.title }} <span>下册</span></p>
             </div>
             <div class="class_button">
-              <el-button>备课</el-button>
-              <el-button class="el_button_active">上课</el-button>
+              <el-button style="width: 30%;">还原</el-button>
+              <el-button style="width: 30%;">备课</el-button>
+              <el-button style="width: 30%;" class="el_button_active">上课</el-button>
             </div>
           </div>
         </el-col>
@@ -55,7 +50,7 @@
 <script setup>
 import { ref, onMounted } from 'vue';
 
-const value = ref('三年级')
+const selectGrand = ref('三年级')
 const currentData = ref({
   shang: [
   ],
@@ -79,36 +74,7 @@ const currentData = ref({
     },
   ]
 })
-const options = [
-  // {
-  //   value: 'all',
-  //   label: '全部',
-  // },
-  {
-    value: '三年级',
-    label: '三年级',
-  },
-  {
-    value: '四年级',
-    label: '四年级',
-  },
-  {
-    value: '五年级',
-    label: '五年级',
-  },
-  {
-    value: '六年级',
-    label: '六年级',
-  },
-  {
-    value: '七年级',
-    label: '七年级',
-  },
-  {
-    value: '八年级',
-    label: '八年级',
-  },
-]
+
 const courseData = {
   "三年级": {
     shang: [
@@ -253,10 +219,12 @@ onMounted(() => {
   currentData.value = courseData["三年级"]
 })
 const getCurrenData = () => {
-  console.log(value.value, courseData[value.value])
   currentData.value = courseData[value.value]
 }
-
+const clickGrand = val => {
+  selectGrand.value = val
+  currentData.value = courseData[val]
+}
 const getImageUrl = (url) => {
   return new URL(url, import.meta.url).href
 }
@@ -269,6 +237,35 @@ const openCourseDetail = (id) => {
 .course_select {
   margin-top: 10px;
 
+  .grid-content {
+    border-radius: 4px;
+    min-height: 36px;
+    background: #fff;
+    padding: 12px;
+
+    // height: 300px;
+    img {
+      width: 100%;
+      border-radius: 5px;
+    }
+
+    .course_content {
+      p {
+        margin-top: 10px;
+
+        span {
+          // display: inline-block;
+          padding: 2px 8px;
+          background: rgba(224, 234, 251, 1);
+          border-radius: 5px;
+          font-size: 12px;
+          float: right;
+          color: rgba(54, 129, 252, 1);
+        }
+      }
+    }
+  }
+
   .Screening {
     font-size: 20px;
     font-weight: 400;
@@ -297,15 +294,10 @@ const openCourseDetail = (id) => {
     color: #fff;
   }
 
-  .book {
-    margin-top: 10px;
-    position: relative;
-
-    img {
-      position: relative;
-      top: 3px;
-      margin-right: 8px;
-    }
+  .class_button {
+    margin-top: 15px;
+    display: flex;
+    justify-content: space-between;
   }
 }
 
@@ -321,23 +313,4 @@ const openCourseDetail = (id) => {
 .el-col {
   border-radius: 4px;
 }
-
-.grid-content {
-  border-radius: 4px;
-  min-height: 36px;
-  background: #fff;
-  padding: 12px;
-
-  // height: 300px;
-  img {
-    width: 100%;
-    border-radius: 5px;
-  }
-
-  .course_content {
-    p {
-      margin-bottom: 5px;
-    }
-  }
-}
 </style>

برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است