From 62e174347c9fbbf05e91626acc04acea9f95f09f Mon Sep 17 00:00:00 2001 From: lmj <3407000732@qq.com> Date: Mon, 10 Oct 2022 14:10:42 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Index.vue | 27 +++++++++++++++++++-------- src/views/portal/article/Index.vue | 2 +- src/views/portal/course/Index.vue | 10 ++++++++-- 3 files changed, 28 insertions(+), 11 deletions(-) diff --git a/src/views/Index.vue b/src/views/Index.vue index d365bbdc..5c95e8b3 100644 --- a/src/views/Index.vue +++ b/src/views/Index.vue @@ -14,6 +14,7 @@
+

{{userInfo.name}} {{userInfo.userNo}}

@@ -112,12 +113,13 @@

课程排行榜

@@ -153,7 +156,7 @@
-
+
@@ -191,7 +194,7 @@

案例排行榜

@@ -321,7 +326,7 @@
-
+

{{qa.views}}正在关注{{ qa.sysCreateTime.substring(0, 10) }}

@@ -349,7 +354,7 @@

问答排行榜

    -
  • +
  • @@ -395,14 +400,14 @@ swiperSlide } from 'vue-awesome-swiper'; import apiPlace from "@/api/phase2/place.js" - import AuthorImg from '@/components/Portal/authorImg.vue'; + import authorImg from '@/components/Portal/authorImg.vue'; import apiStart from '@/api/phase2/stat.js' import apiIndex from '@/api/phase2/index.js' export default { name: 'index', components: { - AuthorImg, + authorImg, portalHeader, ad, portalFooter, @@ -479,6 +484,7 @@ }, mounted() { this.userInfo = this.$store.getters.userInfo; + console.log(this.userInfo) this.getCourseData(1); this.getCaseData(); this.getArticleData(); @@ -504,6 +510,9 @@ // }) }, methods: { + jumcasedet(item) { + this.$router.push({path:'/case/detail',query:{id:item.id}}); + }, getPic(index) { return `/images/listblue0${index+1}.png` }, @@ -568,9 +577,11 @@ window.open('https://m.qingxuetang.com/x/?appId=qxtcorp306130', '_blank'); }, toCourseDetail(item) { + if (item.type == 10) { return this.webBaseUrl + '/course/micro?id=' + item.id; } else if (item.type == 20) { + console.log(item) return this.webBaseUrl + '/course/detail?id=' + item.id; } return ''; diff --git a/src/views/portal/article/Index.vue b/src/views/portal/article/Index.vue index d38a553b..1fbe7d3b 100644 --- a/src/views/portal/article/Index.vue +++ b/src/views/portal/article/Index.vue @@ -78,7 +78,7 @@

    贡献榜

      -
    • +
    • diff --git a/src/views/portal/course/Index.vue b/src/views/portal/course/Index.vue index 2c11f677..3e70247c 100644 --- a/src/views/portal/course/Index.vue +++ b/src/views/portal/course/Index.vue @@ -125,7 +125,8 @@
      好评榜
    +
人气榜
+
@@ -218,6 +222,7 @@
热度榜
+
From dc003873dd072ac0f2b20add4e72a3ed9c894b3e Mon Sep 17 00:00:00 2001 From: lmj <3407000732@qq.com> Date: Mon, 10 Oct 2022 14:53:28 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/portal/article/Detail.vue | 2 ++ src/views/portal/article/Index.vue | 2 ++ src/views/portal/case/Detail.vue | 16 ++++++++++++---- src/views/portal/case/Index.vue | 4 ++++ src/views/portal/qa/Index.vue | 2 +- 5 files changed, 21 insertions(+), 5 deletions(-) diff --git a/src/views/portal/article/Detail.vue b/src/views/portal/article/Detail.vue index f60bcee7..5f6c4bdd 100644 --- a/src/views/portal/article/Detail.vue +++ b/src/views/portal/article/Detail.vue @@ -59,6 +59,7 @@

贡献榜

  • + @@ -75,6 +76,7 @@ {{ item.sysCreateUname }} +
diff --git a/src/views/portal/article/Index.vue b/src/views/portal/article/Index.vue index 1fbe7d3b..109e490b 100644 --- a/src/views/portal/article/Index.vue +++ b/src/views/portal/article/Index.vue @@ -79,6 +79,7 @@

贡献榜

  • + @@ -95,6 +96,7 @@ {{ item.sysCreateUname }} +
diff --git a/src/views/portal/case/Detail.vue b/src/views/portal/case/Detail.vue index dfee3d44..1ffe8b97 100644 --- a/src/views/portal/case/Detail.vue +++ b/src/views/portal/case/Detail.vue @@ -102,7 +102,8 @@

好评榜

    -
  • +
  • + @@ -119,6 +120,7 @@ {{ item.title }} +
@@ -126,6 +128,7 @@

人气榜

@@ -255,6 +259,10 @@ export default { clearInterval(this.setTimeCase); }, methods: { + jumecase(item){ + this.$router.push({ path: './Detail.vue', query: { id: item.id } }); + + }, couresreso(){ let key = 'case'; apiPlace.detail(key).then(res=>{ @@ -591,9 +599,9 @@ export default { } .ranking-title { - line-height: 34px; - font-size: 15px; - color: #333333; + // line-height: 34px; + // font-size: 15px; + // color: #333333; .center-titlt{ font-size: 15px; color: #333333; diff --git a/src/views/portal/case/Index.vue b/src/views/portal/case/Index.vue index 105546f4..391ebf1d 100644 --- a/src/views/portal/case/Index.vue +++ b/src/views/portal/case/Index.vue @@ -123,6 +123,7 @@

好评榜

@@ -146,6 +148,7 @@

人气榜

diff --git a/src/views/portal/qa/Index.vue b/src/views/portal/qa/Index.vue index 39bad650..09c8ef85 100644 --- a/src/views/portal/qa/Index.vue +++ b/src/views/portal/qa/Index.vue @@ -83,7 +83,7 @@

贡献榜