diff --git a/src/renderer/src/assets/iconfont/iconfont.css b/src/renderer/src/assets/iconfont/iconfont.css index 529bfc4..be9c855 100644 --- a/src/renderer/src/assets/iconfont/iconfont.css +++ b/src/renderer/src/assets/iconfont/iconfont.css @@ -1,9 +1,9 @@ @font-face { font-family: "iconfont"; /* Project id 2794390 */ - src: url('iconfont.woff2?t=1721179711733') format('woff2'), - url('iconfont.woff?t=1721179711733') format('woff'), - url('iconfont.ttf?t=1721179711733') format('truetype'), - url('iconfont.svg?t=1721179711733#iconfont') format('svg'); + src: url('iconfont.woff2?t=1721698955462') format('woff2'), + url('iconfont.woff?t=1721698955462') format('woff'), + url('iconfont.ttf?t=1721698955462') format('truetype'), + url('iconfont.svg?t=1721698955462#iconfont') format('svg'); } .iconfont { @@ -14,6 +14,10 @@ -moz-osx-font-smoothing: grayscale; } +.icon-lingdang:before { + content: "\e613"; +} + .icon-yidongdaozu:before { content: "\e67d"; } diff --git a/src/renderer/src/assets/iconfont/iconfont.js b/src/renderer/src/assets/iconfont/iconfont.js index 6058761..e0e21f1 100644 --- a/src/renderer/src/assets/iconfont/iconfont.js +++ b/src/renderer/src/assets/iconfont/iconfont.js @@ -1 +1 @@ -window._iconfont_svg_string_2794390='',function(l){var h=(h=document.getElementsByTagName("script"))[h.length-1],v=h.getAttribute("data-injectcss"),h=h.getAttribute("data-disable-injectsvg");if(!h){var c,a,t,z,p,i=function(h,v){v.parentNode.insertBefore(h,v)};if(v&&!l.__iconfont__svg__cssinject__){l.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(h){console&&console.log(h)}}c=function(){var h,v=document.createElement("div");v.innerHTML=l._iconfont_svg_string_2794390,(v=v.getElementsByTagName("svg")[0])&&(v.setAttribute("aria-hidden","true"),v.style.position="absolute",v.style.width=0,v.style.height=0,v.style.overflow="hidden",v=v,(h=document.body).firstChild?i(v,h.firstChild):h.appendChild(v))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(c,0):(a=function(){document.removeEventListener("DOMContentLoaded",a,!1),c()},document.addEventListener("DOMContentLoaded",a,!1)):document.attachEvent&&(t=c,z=l.document,p=!1,d(),z.onreadystatechange=function(){"complete"==z.readyState&&(z.onreadystatechange=null,M())})}function M(){p||(p=!0,t())}function d(){try{z.documentElement.doScroll("left")}catch(h){return void setTimeout(d,50)}M()}}(window); \ No newline at end of file +window._iconfont_svg_string_2794390='',function(l){var h=(h=document.getElementsByTagName("script"))[h.length-1],v=h.getAttribute("data-injectcss"),h=h.getAttribute("data-disable-injectsvg");if(!h){var c,a,t,z,i,p=function(h,v){v.parentNode.insertBefore(h,v)};if(v&&!l.__iconfont__svg__cssinject__){l.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(h){console&&console.log(h)}}c=function(){var h,v=document.createElement("div");v.innerHTML=l._iconfont_svg_string_2794390,(v=v.getElementsByTagName("svg")[0])&&(v.setAttribute("aria-hidden","true"),v.style.position="absolute",v.style.width=0,v.style.height=0,v.style.overflow="hidden",v=v,(h=document.body).firstChild?p(v,h.firstChild):h.appendChild(v))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(c,0):(a=function(){document.removeEventListener("DOMContentLoaded",a,!1),c()},document.addEventListener("DOMContentLoaded",a,!1)):document.attachEvent&&(t=c,z=l.document,i=!1,d(),z.onreadystatechange=function(){"complete"==z.readyState&&(z.onreadystatechange=null,M())})}function M(){i||(i=!0,t())}function d(){try{z.documentElement.doScroll("left")}catch(h){return void setTimeout(d,50)}M()}}(window); \ No newline at end of file diff --git a/src/renderer/src/assets/iconfont/iconfont.json b/src/renderer/src/assets/iconfont/iconfont.json index d630aec..7cec3f4 100644 --- a/src/renderer/src/assets/iconfont/iconfont.json +++ b/src/renderer/src/assets/iconfont/iconfont.json @@ -5,6 +5,13 @@ "css_prefix_text": "icon-", "description": "", "glyphs": [ + { + "icon_id": "17990800", + "name": "铃铛", + "font_class": "lingdang", + "unicode": "e613", + "unicode_decimal": 58899 + }, { "icon_id": "1207918", "name": "移动到组", diff --git a/src/renderer/src/assets/iconfont/iconfont.svg b/src/renderer/src/assets/iconfont/iconfont.svg index 69fe782..73737de 100644 --- a/src/renderer/src/assets/iconfont/iconfont.svg +++ b/src/renderer/src/assets/iconfont/iconfont.svg @@ -14,6 +14,8 @@ /> + + diff --git a/src/renderer/src/assets/iconfont/iconfont.ttf b/src/renderer/src/assets/iconfont/iconfont.ttf index f179db3..8a4ce47 100644 Binary files a/src/renderer/src/assets/iconfont/iconfont.ttf and b/src/renderer/src/assets/iconfont/iconfont.ttf differ diff --git a/src/renderer/src/assets/iconfont/iconfont.woff b/src/renderer/src/assets/iconfont/iconfont.woff index 06b4847..dd9fc0b 100644 Binary files a/src/renderer/src/assets/iconfont/iconfont.woff and b/src/renderer/src/assets/iconfont/iconfont.woff differ diff --git a/src/renderer/src/assets/iconfont/iconfont.woff2 b/src/renderer/src/assets/iconfont/iconfont.woff2 index 280df28..44bed3c 100644 Binary files a/src/renderer/src/assets/iconfont/iconfont.woff2 and b/src/renderer/src/assets/iconfont/iconfont.woff2 differ diff --git a/src/renderer/src/components/choose-textbook/index.vue b/src/renderer/src/components/choose-textbook/index.vue index cbaf606..3f56bfe 100644 --- a/src/renderer/src/components/choose-textbook/index.vue +++ b/src/renderer/src/components/choose-textbook/index.vue @@ -64,6 +64,8 @@ const defaultProps = { const curBookId = ref(-1) //当前教材名称 const curBookName = ref('') +//当前教材封面图 +const curBookImg = ref('') // 上册 const volumeOne = ref([]) // 下册 @@ -110,9 +112,10 @@ const getSubjectContent = async () => { } //选择教材 -const changeBook = ({ id, itemtitle }) => { +const changeBook = ({ id, itemtitle, avartar }) => { curBookId.value = id curBookName.value = itemtitle + curBookImg.value = BaseUrl + avartar getTreeData() setTimeout(() => { dialogVisible.value = false @@ -144,7 +147,8 @@ const emitChangeBook = () => { const data = { textBook: { curBookId: curBookId.value, - curBookName: curBookName.value + curBookName: curBookName.value, + curBookImg: curBookImg.value }, node: curNode } @@ -236,6 +240,7 @@ const getSubject = async () => { // 默认第一个 curBookName.value = subjectList.value[0].itemtitle curBookId.value = subjectList.value[0].id + curBookImg.value = BaseUrl + subjectList.value[0].avartar } @@ -264,7 +269,8 @@ const handleNodeClick = (data, node) => { let curData = { textBook: { curBookId: curBookId.value, - curBookName: curBookName.value + curBookName: curBookName.value, + curBookImg: curBookImg.value }, node: toRaw(currentNode) } diff --git a/src/renderer/src/views/prepare/index.vue b/src/renderer/src/views/prepare/index.vue index 0f3f8c0..52de477 100644 --- a/src/renderer/src/views/prepare/index.vue +++ b/src/renderer/src/views/prepare/index.vue @@ -2,19 +2,27 @@
+
+
+ +
+
+ 教材研读 + 电子课本 + 高考研读 + 教学大模型 +
+ + 上课 +
+
  @@ -29,38 +37,22 @@
+ 布置作业 上传资料 - 新建课件 + 新建课件
- - + + - + :choose="checkFileList" :check-all="isCheckAll" @click-delete="clickDelete" @click-move="clickMove" + @cancel="checkFileList = []" @click-choose="clickChoose">
@@ -104,7 +96,9 @@ export default { levelSecondId: null, fileSource: '个人', fileRoot: '备课' - } + }, + // 当前教材封面图 + curBookImg: '' } }, computed: { @@ -134,7 +128,7 @@ export default { }, methods: { createFile() { - creatPPT('新建ppt文档.pptx',this.uploadData).then((res) => { + creatPPT('新建ppt文档.pptx', this.uploadData).then((res) => { this.currentFileList.unshift(res.resData) }) }, @@ -256,6 +250,8 @@ export default { }, nodeClick(data) { if (this.currentNode.id === data.node.id) return + this.curBookImg = data.textBook.curBookImg + console.log(data.textBook) this.checkFileList = [] let cata = parseCataByNode(data.node) this.currentNode = data.node @@ -321,6 +317,7 @@ export default { height: 100%; .page-right { + overflow: hidden; position: relative; min-width: 0; flex: 1; @@ -332,6 +329,55 @@ export default { display: flex; flex-direction: column; + .header-top { + height: 150px; + align-items: center; + justify-content: center; + background: linear-gradient(#97c4ed, #7aa8e5); + padding-right: 20px; + .textbook-img{ + height: 120px; + background-color: #ffffff; + padding: 5px; + border-radius: 6px; + overflow: hidden; + margin-right: 20px; + } + .top-item{ + width: 230px; + + flex-wrap: wrap; + .btn{ + width: 102px; + background: none; + color: #ffffff; + border-width: 2px; + border-color: #ffffff; + &:hover{ + background: rgba(255, 255, 255, 0.3) + } + &:first-child{ + margin-left: 12px; + margin-bottom: 15px; + } + &:nth-child(2){ + margin-bottom: 15px; + } + } + } + .to-class-btn{ + width: 130px; + height: 80px; + margin-left: 25px; + font-size: 18px; + .icon-lingdang{ + margin-right: 5px; + color: #ffffff; + font-size: 20px; + } + } + } + .prepare-body-header { height: 60px; width: 100%; @@ -340,6 +386,7 @@ export default { flex-wrap: wrap; justify-content: space-between; padding: 0 20px; + } .prepare-body-main {