From 0d44925907cc30a4e32e9c3dbd40e385cef07612 Mon Sep 17 00:00:00 2001 From: XiaoMo Date: Thu, 30 Mar 2023 11:40:11 +0800 Subject: [PATCH] =?UTF-8?q?a1300399510@qq.com=20=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E4=BA=8E=202023/03/30=20-11:40:02?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 2 +- .../search/searchResult/SearchResult.vue | 23 +++++++++++++++++-- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 3e0da4f..fa95c1d 100755 --- a/src/router/index.js +++ b/src/router/index.js @@ -54,7 +54,7 @@ const routes = [ ] }, { - path: '/searchResult', // 首页 + path: '/searchResult', // 搜索结果 name: 'search', redirect: "/searchResult", component: search, diff --git a/src/views/search/searchResult/SearchResult.vue b/src/views/search/searchResult/SearchResult.vue index 361bad4..a5dee48 100755 --- a/src/views/search/searchResult/SearchResult.vue +++ b/src/views/search/searchResult/SearchResult.vue @@ -7,7 +7,8 @@ -
取消
+ +
取消
@@ -78,6 +79,18 @@ export default { components: { }, + + methods: { + // 处理点击取消的返回上一页 + handCancel() { + // console.log("this.$router",this.$route.params.page > 214); + this.$router.go(-1) + // console.log(this.$router.params.page, "this.$route.params.page"); + // if (this.$route.params.page > 1) this.$router.go(-1) + // else this.$router.push('/recommend') + + }, + }, } @@ -242,7 +255,13 @@ export default { ::v-deep { .el-pagination.is-background .el-pager li:not(.disabled).active { - background: red; + background: rgba(98, 177, 255, 1); + border-radius: 50%; + } + + .el-pagination .btn-next .el-icon, + .el-pagination .btn-prev .el-icon { + font-size: .4rem; } } }