From 643acb77f09af86f476132ddfdee6ab89884104a Mon Sep 17 00:00:00 2001 From: ruan <749817500@qq.com> Date: Sat, 31 Jul 2021 17:49:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cms/src/router/routes.js | 24 +- cms/src/views/ArticleRecommend.vue | 42 ++- cms/src/views/ArticleRecommendthree.vue | 385 ------------------------ cms/src/views/ArticleRecommendtwo.vue | 385 ------------------------ cms/src/views/Index.vue | 40 +-- cms/src/views/UserHome.vue | 36 +-- cms/src/views/WALranking.vue | 38 ++- cms/src/views/WARranking.vue | 32 +- cms/src/views/WArecommendation.vue | 34 ++- 9 files changed, 136 insertions(+), 880 deletions(-) delete mode 100644 cms/src/views/ArticleRecommendthree.vue delete mode 100644 cms/src/views/ArticleRecommendtwo.vue diff --git a/cms/src/router/routes.js b/cms/src/router/routes.js index 460cd32..c9d2046 100644 --- a/cms/src/router/routes.js +++ b/cms/src/router/routes.js @@ -8,13 +8,11 @@ import NewsHotspot from '../views/NewsHotspot.vue' import BigBrother from '../views/BigBrother.vue' import UnderstandUs from '../views/UnderstandUs.vue' import CompanyDynamics from '../views/CompanyDynamics.vue' -import ArticleRecommendtwo from '../views/ArticleRecommendtwo.vue' -import ArticleRecommendthree from '../views/ArticleRecommendthree' import UserRemove from '../views/UserRemove.vue' import Userinfo from '../views/Userinfo.vue' import WALranking from '../views/WALranking.vue' import WARranking from '../views/WARranking.vue' -import WArecommendation from '../views/WALranking.vue' +import WArecommendation from '../views/WArecommendation.vue' import Userpwd from '../views/Userpwd.vue' @@ -82,26 +80,6 @@ let routes = [ }, component: ArticleRecommend }, - { - path: '/ArticleRecommendtwo', - name: 'ArticleRecommendtwo', - meta: { - title: '文章推荐二', - icon: 'el-icon-phone-outline', - hidden: true, - }, - component: ArticleRecommendtwo - }, - { - path: '/ArticleRecommendthree', - name: 'ArticleRecommendthree', - meta: { - title: '文章推荐三', - icon: 'el-icon-phone-outline', - hidden: true, - }, - component: ArticleRecommendthree - }, { path: '/NewsHotspot', name: 'NewsHotspot', diff --git a/cms/src/views/ArticleRecommend.vue b/cms/src/views/ArticleRecommend.vue index a1565ae..55231fd 100644 --- a/cms/src/views/ArticleRecommend.vue +++ b/cms/src/views/ArticleRecommend.vue @@ -52,12 +52,12 @@ - 一周的阅读排行
  • - 更多 + 更多
  • @@ -74,12 +74,14 @@ - 小编的周推
  • - 更多 + 更多
  • @@ -96,12 +98,12 @@ - 一周内评论最多
  • - 更多 + 更多
  • @@ -116,16 +118,16 @@ 文章标题 - 点赞数量 + 点赞数量 - 评论数量 + 评论数量 - 阅读数量 + 阅读数量 - 发布日期 + 发布日期 @@ -150,13 +152,16 @@
    -
    文章内容
    +
    文章内容
    发表评论 - 点赞评论 + + 返回
    @@ -229,6 +234,9 @@ export default { onSubmit() { console.log("submit!"); }, + Return() { + this.$router.push("/UserHome"); + }, }, mounted() { // 首次加载时,需要调用一次 @@ -339,6 +347,9 @@ body > .el-container { .comment { float: left; } +.like { + float: left; +} /* 周排行 */ .box-cardright { @@ -368,8 +379,11 @@ body > .el-container { } .item { - margin-top: 10px; - margin-right: 70px; + margin-top: 30px; + margin-right: 5%; + margin-left: 5%; + width: 9%; + font-size: 10px; } /* 头像 */ diff --git a/cms/src/views/ArticleRecommendthree.vue b/cms/src/views/ArticleRecommendthree.vue deleted file mode 100644 index f29f0fe..0000000 --- a/cms/src/views/ArticleRecommendthree.vue +++ /dev/null @@ -1,385 +0,0 @@ - - - - - \ No newline at end of file diff --git a/cms/src/views/ArticleRecommendtwo.vue b/cms/src/views/ArticleRecommendtwo.vue deleted file mode 100644 index f29f0fe..0000000 --- a/cms/src/views/ArticleRecommendtwo.vue +++ /dev/null @@ -1,385 +0,0 @@ - - - - - \ No newline at end of file diff --git a/cms/src/views/Index.vue b/cms/src/views/Index.vue index 9415ef7..16cadcf 100644 --- a/cms/src/views/Index.vue +++ b/cms/src/views/Index.vue @@ -149,16 +149,16 @@
    文章简介
    - 点赞数量 + 点赞数量 - 评论数量 + 评论数量 - 阅读数量 + 阅读数量 - 发布日期 + 发布日期 @@ -199,16 +199,17 @@
    文章简介
    - 点赞数量 + 点赞数量 + - 评论数量 + 评论数量 - 阅读数量 + 阅读数量 - 发布日期 + 发布日期 @@ -249,16 +250,16 @@
    文章简介
    - 点赞数量 + 点赞数量 - 评论数量 + 评论数量 - 阅读数量 + 阅读数量 - 发布日期 + 发布日期 @@ -381,10 +382,10 @@ export default { this.$router.push("/ArticleRecommend") }, Phototwo(){ - this.$router.push("/ArticleRecommendtwo") + this.$router.push("/ArticleRecommend") }, Photothree(){ - this.$router.push("/ArticleRecommendthree") + this.$router.push("/ArticleRecommend") } }, mounted() { @@ -490,11 +491,12 @@ body > .el-container { width: 100%; height: 50px; } -.item { - margin-top: 10px; - margin-right: 4%; - margin-left: 6%; - width: 10%; +.item{ + margin-top: 30px; + margin-right: 3%; + margin-left: 7%; + width: 11%; + font-size: 10px; } /* 鼠标动文章标题简介卡片 */ diff --git a/cms/src/views/UserHome.vue b/cms/src/views/UserHome.vue index 1fbe308..ae4e175 100644 --- a/cms/src/views/UserHome.vue +++ b/cms/src/views/UserHome.vue @@ -153,16 +153,16 @@
    文章简介
    - 点赞数量 + 点赞数量 - 评论数量 + 评论数量 - - 阅读数量 + + 阅读数量 - 发布日期 + 发布日期 @@ -203,16 +203,16 @@
    文章简介
    - 点赞数量 + 点赞数量 - 评论数量 + 评论数量 - 阅读数量 + 阅读数量 - 发布日期 + 发布日期 @@ -253,16 +253,16 @@
    文章简介
    - 点赞数量 + 点赞数量 - 评论数量 + 评论数量 - 阅读数量 + 阅读数量 - 发布日期 + 发布日期 @@ -385,10 +385,10 @@ export default { this.$router.push("/ArticleRecommend") }, Phototwo(){ - this.$router.push("/ArticleRecommendtwo") + this.$router.push("/ArticleRecommend") }, Photothree(){ - this.$router.push("/ArticleRecommendthree") + this.$router.push("/ArticleRecommend") } }, mounted() { @@ -494,10 +494,12 @@ body > .el-container { height: 50px; } .item { - margin-top: 10px; + margin-top: 30px; margin-right: 3%; margin-left: 7%; - width: 10%; + width: 11%; + font-size: 10px; + } /* 鼠标动文章标题简介卡片 */ diff --git a/cms/src/views/WALranking.vue b/cms/src/views/WALranking.vue index c5ceff3..b530f01 100644 --- a/cms/src/views/WALranking.vue +++ b/cms/src/views/WALranking.vue @@ -16,6 +16,9 @@ 查询 +
    + 返回 +
    @@ -39,24 +42,24 @@
    -
    文章内容
    +
    文章内容
    -
    - - 点赞数量 - +
    + +

    点赞数量

    +
    - - 评论数量 - + +

    评论数量

    +
    - - 阅读数量 - + +

    阅读数量

    +
    - - 发布日期 + +

    发布日期

    @@ -105,6 +108,9 @@ export default { onSubmit() { console.log("submit!"); }, + Return() { + this.$router.go(-1); + }, }, }; @@ -155,10 +161,14 @@ export default { margin-top: 10px; } .item { - margin-top: 10px; + margin-top: 40px; margin-right: 7%; margin-left: 3%; width: 10%; + font-size: 10px; +} +.cancle { + float: right; } diff --git a/cms/src/views/WARranking.vue b/cms/src/views/WARranking.vue index 6a7a31d..281a722 100644 --- a/cms/src/views/WARranking.vue +++ b/cms/src/views/WARranking.vue @@ -16,6 +16,9 @@ 查询 +
    + 返回 +
    @@ -44,19 +47,19 @@
    - 点赞数量 - +

    点赞数量

    + - - 评论数量 - + + 评论数量 + - - 阅读数量 - + + 阅读数量 + - - 发布日期 + + 发布日期 @@ -105,6 +108,9 @@ export default { onSubmit() { console.log("submit!"); }, + Return() { + this.$router.go(-1); + }, }, }; @@ -155,10 +161,14 @@ export default { margin-top: 10px; } .item { - margin-top: 10px; + margin-top: 40px; margin-right: 7%; margin-left: 3%; width: 10%; + font-size: 10px; +} +.cancle { + float: right; } diff --git a/cms/src/views/WArecommendation.vue b/cms/src/views/WArecommendation.vue index 4efc04a..91fec73 100644 --- a/cms/src/views/WArecommendation.vue +++ b/cms/src/views/WArecommendation.vue @@ -16,6 +16,9 @@ 查询 +
    + 返回 +
    @@ -44,16 +47,16 @@
    - 点赞数量 - - - 评论数量 - - - 阅读数量 - - - 发布日期 +

    点赞数量

    +
    + +

    评论数量

    +
    + +

    阅读数量

    +
    + +

    发布日期

    @@ -102,6 +105,9 @@ export default { onSubmit() { console.log("submit!"); }, + Return() { + this.$router.go(-1); + }, }, }; @@ -141,7 +147,7 @@ export default { } .smallmain{ margin-left: 250px; - width: 800px; + width: 1000px; } /* 按钮设置 */ @@ -151,10 +157,14 @@ export default { margin-top: 10px; } .item { - margin-top: 10px; + margin-top: 40px; margin-right: 7%; margin-left: 3%; width: 10%; + font-size: 10px; +} +.cancle { + float: right; } -- Gitee