From 5e6a3eee4fde52dcff51cea335b2fb4ee20f5b7f Mon Sep 17 00:00:00 2001 From: zhangsir Date: Sun, 7 Apr 2024 16:58:36 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E6=B5=8B=E8=AF=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/user/MyAssess.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/views/user/MyAssess.vue b/src/views/user/MyAssess.vue index 1a947c52..59878e22 100644 --- a/src/views/user/MyAssess.vue +++ b/src/views/user/MyAssess.vue @@ -21,7 +21,7 @@

-

完成时间:{{item.date}}

+

上传时间:{{item.date}}

@@ -98,9 +98,11 @@ agent:'pc' } apiBoeCourse.reportList(params).then(rs=>{ - this.testList = rs.result.reportList + this.testList = Array.isArray(rs.result.reportList) + ? rs.result.reportList + : Array.from(Object.values(rs.result.reportList)); + // this.testList = rs.result.reportList this.total = rs.result.count - }) }, textdetail(item){ @@ -110,10 +112,12 @@ // /course/boeframe }, handleSizeChange(val) { + console.log(val,'sizeval') this.size = val this.findList() }, handleCurrentChange(val) { + console.log(val,'pageval') this.page = val this.findList() }, From f08df485a26cda5bccf6fa715ac936f7c7d71bf3 Mon Sep 17 00:00:00 2001 From: zhangsir Date: Tue, 9 Apr 2024 11:11:50 +0800 Subject: [PATCH 2/6] =?UTF-8?q?=E6=B5=8B=E8=AF=84=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/user/MyAssess.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/user/MyAssess.vue b/src/views/user/MyAssess.vue index 59878e22..11d0965b 100644 --- a/src/views/user/MyAssess.vue +++ b/src/views/user/MyAssess.vue @@ -19,7 +19,7 @@ --> - +

上传时间:{{item.date}}

From 0f1a3523293e1b1a811efb5f2fefcbaf31174590 Mon Sep 17 00:00:00 2001 From: zhangsir Date: Tue, 9 Apr 2024 11:13:43 +0800 Subject: [PATCH 3/6] =?UTF-8?q?=E6=B5=8B=E8=AF=84=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/portal/case/Index.vue | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/src/views/portal/case/Index.vue b/src/views/portal/case/Index.vue index 3791854f..6e6bb935 100644 --- a/src/views/portal/case/Index.vue +++ b/src/views/portal/case/Index.vue @@ -557,6 +557,21 @@ export default { } }, created() { + // this.pageScroll = JSON.parse(sessionStorage.getItem("pagesScroll")) + // if(this.pageScroll){ + // this.queryCondition.pageIndex = parseInt(this.pageScroll.pages) + // this.queryCondition.type = this.pageScroll.type + // this.$nextTick(() => { + // if(JSON.parse(sessionStorage.getItem("pagesScroll"))){ + // window.scrollTo({ + // left: 0, + // top: JSON.parse(sessionStorage.getItem("pagesScroll")).scrollTop, + // }) + // sessionStorage.removeItem("pagesScroll") + // } + // }); + // return + // } (() => { const allData = { 0: { @@ -621,7 +636,6 @@ export default { } dataList(allData[random]) })() - // this.pageScroll = JSON.parse(sessionStorage.getItem("pagesScroll")) }, mounted() { let $this = this; @@ -796,7 +810,7 @@ export default { // this.pageScroll = { // pages: this.queryCondition.pageIndex, // scrollTop: window.pageYOffset, - // type: this.queryCondition.type + // type: this.queryCondition.type, // } // sessionStorage.setItem('pagesScroll', JSON.stringify(this.pageScroll)) }, @@ -1300,16 +1314,6 @@ export default { // 给所有的赋值 this.caseList.count = res.result.count; this.caseList.showPagCount = res.result.count; - // this.$nextTick(() => { - // if(JSON.parse(sessionStorage.getItem("pagesScroll"))){ - // window.scrollTo({ - // left: 0, - // top: JSON.parse(sessionStorage.getItem("pagesScroll")).scrollTop, - // behavior: 'smooth' - // }) - // sessionStorage.removeItem("pagesScroll") - // } - // }); } else { this.$message.error(res.message); } From a0e7a721454b71e6c62c16f78a175e12fbb6568c Mon Sep 17 00:00:00 2001 From: zhangsir Date: Wed, 10 Apr 2024 15:44:43 +0800 Subject: [PATCH 4/6] =?UTF-8?q?=E6=A1=88=E4=BE=8B=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 4 ++- src/views/portal/case/Index.vue | 46 ++++++++++++++------------------- 2 files changed, 23 insertions(+), 27 deletions(-) diff --git a/src/App.vue b/src/App.vue index 7c606247..d3bdee6f 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,6 +1,8 @@ diff --git a/src/views/portal/case/Index.vue b/src/views/portal/case/Index.vue index 6e6bb935..69b30c86 100644 --- a/src/views/portal/case/Index.vue +++ b/src/views/portal/case/Index.vue @@ -385,7 +385,7 @@ import apiType from "@/api/modules/type.js"; import { cutFullName } from "@/utils/tools.js"; import apiPlace from "@/api/phase2/place.js" export default { - name: "index", + name: "case", components: { portalHeader, portalFooter, @@ -556,22 +556,26 @@ export default { return !this.speciData.some(item => item.fielclass); } }, + beforeRouteLeave (to, from, next) { + if(to.name !== 'caseDetail'){ + this.$destroy() + }else{ + sessionStorage.setItem('pagesScroll', JSON.stringify(window.pageYOffset)) + } + next() + }, + beforeRouteEnter(to, from, next) { + next(vm=>{ + vm.$nextTick(() => { + window.scrollTo({ + left: 0, + top: JSON.parse(sessionStorage.getItem("pagesScroll")), + }) + sessionStorage.removeItem("pagesScroll") + }); + }) + }, created() { - // this.pageScroll = JSON.parse(sessionStorage.getItem("pagesScroll")) - // if(this.pageScroll){ - // this.queryCondition.pageIndex = parseInt(this.pageScroll.pages) - // this.queryCondition.type = this.pageScroll.type - // this.$nextTick(() => { - // if(JSON.parse(sessionStorage.getItem("pagesScroll"))){ - // window.scrollTo({ - // left: 0, - // top: JSON.parse(sessionStorage.getItem("pagesScroll")).scrollTop, - // }) - // sessionStorage.removeItem("pagesScroll") - // } - // }); - // return - // } (() => { const allData = { 0: { @@ -714,10 +718,6 @@ export default { // window.addEventListener("scroll", this.handleScroll); // 获取年 this.getYears(); - // if(this.pageScroll){ - // this.queryCondition.pageIndex = parseInt(this.pageScroll.pages) - // this.queryCondition.type = this.pageScroll.type - // } }, beforeDestroy() { // window.removeEventListener("scroll", this.handleScroll); @@ -807,12 +807,6 @@ export default { apiCase.startReadTimer(refId) } this.$router.push({ path: '/case/detail', query: { id } }); - // this.pageScroll = { - // pages: this.queryCondition.pageIndex, - // scrollTop: window.pageYOffset, - // type: this.queryCondition.type, - // } - // sessionStorage.setItem('pagesScroll', JSON.stringify(this.pageScroll)) }, tylClick() { window.open("https://m.qingxuetang.com/x/?appId=qxtcorp306130"); From 93874a904941d9f6c1c843e418c7272ad27a1823 Mon Sep 17 00:00:00 2001 From: zhangsir Date: Wed, 10 Apr 2024 15:56:28 +0800 Subject: [PATCH 5/6] =?UTF-8?q?=E6=A1=88=E4=BE=8B=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/portal/case/Index.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/views/portal/case/Index.vue b/src/views/portal/case/Index.vue index 69b30c86..7b44117b 100644 --- a/src/views/portal/case/Index.vue +++ b/src/views/portal/case/Index.vue @@ -558,7 +558,9 @@ export default { }, beforeRouteLeave (to, from, next) { if(to.name !== 'caseDetail'){ - this.$destroy() + this.queryCondition.pageIndex = 1 + this.search() + // this.$destroy() }else{ sessionStorage.setItem('pagesScroll', JSON.stringify(window.pageYOffset)) } From 8c36c4fa8e423badffc2cbfe8e90ff0ae2bb295b Mon Sep 17 00:00:00 2001 From: zhangsir Date: Tue, 16 Apr 2024 10:10:59 +0800 Subject: [PATCH 6/6] =?UTF-8?q?=E5=88=9B=E6=96=B0=E5=8A=9B=E5=88=B0?= =?UTF-8?q?=E6=9C=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/TopNav/Index.vue | 18 ++++++++++++++---- src/views/Index.vue | 19 +++++++++++++++---- src/views/portal/article/Index.vue | 18 ++++++++++++++---- src/views/portal/case/Index.vue | 23 +++++++++++++++++++---- src/views/portal/course/Index.vue | 18 ++++++++++++++---- src/views/portal/follow/index.vue | 18 ++++++++++++++---- src/views/portal/qa/Index.vue | 18 ++++++++++++++---- 7 files changed, 104 insertions(+), 28 deletions(-) diff --git a/src/layout/components/TopNav/Index.vue b/src/layout/components/TopNav/Index.vue index c1dfaf17..50b68eb6 100644 --- a/src/layout/components/TopNav/Index.vue +++ b/src/layout/components/TopNav/Index.vue @@ -148,7 +148,10 @@ 内容涵盖:领导力、市场营销、职场技能、财务知识、法律常识、人力资源、经典国学、人文社科 -
+
+ 创新力专区课程版权已到期! +
+
@@ -335,7 +338,7 @@ export default { } .ClassBoxContent { width: 100%; - height: 456px; + height: 396px; // background: red; border-radius: 15px; .ContentBox { @@ -351,6 +354,7 @@ export default { .left { padding-left: 30px; width: 48%; + margin-top: -32px; .title { width: 200px; height: 59px; @@ -393,7 +397,7 @@ export default { box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.1); border-radius: 4px; height: 160px; - margin-top: 83px; + margin-top: 163px; .tyl_title { width: 100%; padding-left: 20px; @@ -431,6 +435,11 @@ export default { border: 0.96px solid rgba(140, 105, 242, 1); box-shadow: 7px 5px 6px 0px rgba(76, 31, 221, 0.3); } + .text_msg{ + margin: 43px 0 0 222px; + font-size: 14px; + color: #000; + } .cyl { cursor: pointer; width: calc(100% - 20px); @@ -480,6 +489,7 @@ export default { } .img { width: 835px; + height: 428px; margin-left: -1px; margin-top: -1px; position: absolute; diff --git a/src/views/Index.vue b/src/views/Index.vue index 7b5f6ad8..31b05562 100644 --- a/src/views/Index.vue +++ b/src/views/Index.vue @@ -981,7 +981,10 @@ 内容涵盖:领导力、市场营销、职场技能、财务知识、法律常识、人力资源、经典国学、人文社科 -
+
+ 创新力专区课程版权已到期! +
+
@@ -1761,7 +1764,7 @@ export default { } .ClassBoxContent { width: 100%; - height: 456px; + height: 396px; // background: red; border-radius: 15px; .ContentBox { @@ -1777,6 +1780,7 @@ export default { .left { padding-left: 30px; width: 48%; + margin-top: -32px; .title { width: 200px; height: 59px; @@ -1819,7 +1823,7 @@ export default { box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.1); border-radius: 4px; height: 160px; - margin-top: 83px; + margin-top: 163px; .tyl_title { width: 100%; padding-left: 20px; @@ -1857,6 +1861,11 @@ export default { border: 0.96px solid rgba(140, 105, 242, 1); box-shadow: 7px 5px 6px 0px rgba(76, 31, 221, 0.3); } + .text_msg{ + margin: 43px 0 0 222px; + font-size: 14px; + color: #000; + } .cyl { cursor: pointer; width: calc(100% - 20px); @@ -1906,6 +1915,8 @@ export default { } .img { width: 835px; + height: 428px; + height: 428px; margin-left: -1px; margin-top: -1px; position: absolute; diff --git a/src/views/portal/article/Index.vue b/src/views/portal/article/Index.vue index be67af95..8b2ac6f1 100644 --- a/src/views/portal/article/Index.vue +++ b/src/views/portal/article/Index.vue @@ -148,7 +148,10 @@ 内容涵盖:领导力、市场营销、职场技能、财务知识、法律常识、人力资源、经典国学、人文社科 -
+
+ 创新力专区课程版权已到期! +
+
@@ -497,7 +500,7 @@ export default { } .ClassBoxContentx { width: 100%; - height: 456px; + height: 396px; // background: red; border-radius: 15px; .ContentBoxx { @@ -513,6 +516,7 @@ export default { .leftBox { padding-left: 30px; width: 48%; + margin-top: -32px; .titlex { width: 200px; height: 59px; @@ -555,7 +559,7 @@ export default { box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.1); border-radius: 4px; height: 160px; - margin-top: 83px; + margin-top: 163px; .tyl_titlex { width: 100%; padding-left: 20px; @@ -593,6 +597,11 @@ export default { border: 0.96px solid rgba(140, 105, 242, 1); box-shadow: 7px 5px 6px 0px rgba(76, 31, 221, 0.3); } + .text_msg{ + margin: 43px 0 0 222px; + font-size: 14px; + color: #000; + } .cylx { cursor: pointer; width: calc(100% - 20px); @@ -642,6 +651,7 @@ export default { } .imgx { width: 835px; + height: 428px; margin-left: -1px; margin-top: -1px; position: absolute; diff --git a/src/views/portal/case/Index.vue b/src/views/portal/case/Index.vue index 7b44117b..c80452a5 100644 --- a/src/views/portal/case/Index.vue +++ b/src/views/portal/case/Index.vue @@ -349,7 +349,10 @@ 内容涵盖:领导力、市场营销、职场技能、财务知识、法律常识、人力资源、经典国学、人文社科 -
+
+ 创新力专区课程版权已到期! +
+
@@ -558,8 +561,10 @@ export default { }, beforeRouteLeave (to, from, next) { if(to.name !== 'caseDetail'){ + console.log('我是外') this.queryCondition.pageIndex = 1 this.search() + // window.location.reload() // this.$destroy() }else{ sessionStorage.setItem('pagesScroll', JSON.stringify(window.pageYOffset)) @@ -567,6 +572,9 @@ export default { next() }, beforeRouteEnter(to, from, next) { + if(from.name !== 'caseDetail'){ + console.log('我是内') + } next(vm=>{ vm.$nextTick(() => { window.scrollTo({ @@ -1591,7 +1599,7 @@ export default { .ClassBoxContent { width: 100%; - height: 456px; + height: 396px; // background: red; border-radius: 15px; @@ -1610,6 +1618,7 @@ export default { .left { padding-left: 30px; width: 48%; + margin-top: -32px; .title { width: 200px; @@ -1658,7 +1667,7 @@ export default { box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.1); border-radius: 4px; height: 160px; - margin-top: 83px; + margin-top: 163px; .tyl_title { width: 100%; @@ -1702,6 +1711,11 @@ export default { border: 0.96px solid rgba(140, 105, 242, 1); box-shadow: 7px 5px 6px 0px rgba(76, 31, 221, 0.3); } + .text_msg{ + margin: 43px 0 0 222px; + font-size: 14px; + color: #000; + } .cyl { cursor: pointer; @@ -1759,6 +1773,7 @@ export default { .img { width: 835px; + height: 428px; margin-left: -1px; margin-top: -1px; position: absolute; diff --git a/src/views/portal/course/Index.vue b/src/views/portal/course/Index.vue index fd69d227..7b235855 100644 --- a/src/views/portal/course/Index.vue +++ b/src/views/portal/course/Index.vue @@ -468,7 +468,10 @@ 内容涵盖:领导力、市场营销、职场技能、财务知识、法律常识、人力资源、经典国学、人文社科 -
+
+ 创新力专区课程版权已到期! +
+
@@ -1711,7 +1714,7 @@ console.log(res.result.list,'data') .ClassBoxContent { width: 100%; - height: 456px; + height: 396px; // background: red; border-radius: 15px; @@ -1730,6 +1733,7 @@ console.log(res.result.list,'data') .left { padding-left: 30px; width: 48%; + margin-top: -32px; .title { width: 200px; @@ -1778,7 +1782,7 @@ console.log(res.result.list,'data') box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.1); border-radius: 4px; height: 160px; - margin-top: 83px; + margin-top: 163px; .tyl_title { width: 100%; @@ -1822,6 +1826,11 @@ console.log(res.result.list,'data') border: 0.96px solid rgba(140, 105, 242, 1); box-shadow: 7px 5px 6px 0px rgba(76, 31, 221, 0.3); } + .text_msg{ + margin: 43px 0 0 222px; + font-size: 14px; + color: #000; + } .cyl { cursor: pointer; @@ -1879,6 +1888,7 @@ console.log(res.result.list,'data') .img { width: 835px; + height: 428px; margin-left: -1px; margin-top: -1px; position: absolute; diff --git a/src/views/portal/follow/index.vue b/src/views/portal/follow/index.vue index 5eba2372..21dc6f92 100644 --- a/src/views/portal/follow/index.vue +++ b/src/views/portal/follow/index.vue @@ -196,7 +196,10 @@ 内容涵盖:领导力、市场营销、职场技能、财务知识、法律常识、人力资源、经典国学、人文社科 -
+
+ 创新力专区课程版权已到期! +
+
@@ -770,7 +773,7 @@ } .ClassBoxContent { width: 100%; - height: 456px; + height: 396px; // background: red; border-radius: 15px; .ContentBox { @@ -786,6 +789,7 @@ .left { padding-left: 30px; width: 48%; + margin-top: -32px; .title { width: 200px; height: 59px; @@ -828,7 +832,7 @@ box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.1); border-radius: 4px; height: 160px; - margin-top: 83px; + margin-top: 163px; .tyl_title { width: 100%; padding-left: 20px; @@ -866,6 +870,11 @@ border: 0.96px solid rgba(140, 105, 242, 1); box-shadow: 7px 5px 6px 0px rgba(76, 31, 221, 0.3); } + .text_msg{ + margin: 43px 0 0 222px; + font-size: 14px; + color: #000; + } .cyl { cursor: pointer; width: calc(100% - 20px); @@ -915,6 +924,7 @@ } .img { width: 835px; + height: 428px; margin-left: -1px; margin-top: -1px; position: absolute; diff --git a/src/views/portal/qa/Index.vue b/src/views/portal/qa/Index.vue index 1db2871a..630ce104 100644 --- a/src/views/portal/qa/Index.vue +++ b/src/views/portal/qa/Index.vue @@ -158,7 +158,10 @@ 内容涵盖:领导力、市场营销、职场技能、财务知识、法律常识、人力资源、经典国学、人文社科 -
+
+ 创新力专区课程版权已到期! +
+
@@ -528,7 +531,7 @@ export default { } .ClassBoxContent { width: 100%; - height: 456px; + height: 396px; // background: red; border-radius: 15px; .ContentBox { @@ -544,6 +547,7 @@ export default { .left { padding-left: 30px; width: 48%; + margin-top: -32px; .title { width: 200px; height: 59px; @@ -586,7 +590,7 @@ export default { box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.1); border-radius: 4px; height: 160px; - margin-top: 83px; + margin-top: 163px; .tyl_title { width: 100%; padding-left: 20px; @@ -624,6 +628,11 @@ export default { border: 0.96px solid rgba(140, 105, 242, 1); box-shadow: 7px 5px 6px 0px rgba(76, 31, 221, 0.3); } + .text_msg{ + margin: 43px 0 0 222px; + font-size: 14px; + color: #000; + } .cyl { cursor: pointer; width: calc(100% - 20px); @@ -673,6 +682,7 @@ export default { } .img { width: 835px; + height: 428px; margin-left: -1px; margin-top: -1px; position: absolute;