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] =?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 @@
热度榜
+