From 7501c715361b768399315f276f51f3f9aa095fc3 Mon Sep 17 00:00:00 2001
From: yjlintp <995290439@qq.com>
Date: Thu, 22 Sep 2022 15:03:44 +0800
Subject: [PATCH] resolve some problem
---
src/view/pc/fans.vue | 7 ++++++-
src/view/pc/rankList.vue | 10 +++++++---
2 files changed, 13 insertions(+), 4 deletions(-)
diff --git a/src/view/pc/fans.vue b/src/view/pc/fans.vue
index 71ab62f..48f1975 100644
--- a/src/view/pc/fans.vue
+++ b/src/view/pc/fans.vue
@@ -6,7 +6,7 @@
-
+
@@ -63,6 +63,11 @@ export default {
this.rankData = this.rankList
this.city = '全国'
},
+ clearRank() {
+ this.cityObj = null
+ this.optionList = this.dataList
+ console.log('fans clear')
+ },
rankFans(item) {
getFanDistribution(item.username).then(re=>{
if (re.status === 200){
diff --git a/src/view/pc/rankList.vue b/src/view/pc/rankList.vue
index b9ce36f..289ae60 100644
--- a/src/view/pc/rankList.vue
+++ b/src/view/pc/rankList.vue
@@ -2,7 +2,7 @@
-
+
{{slideopen?'折叠榜单':'展开榜单'}}
@@ -63,8 +63,12 @@ export default {
},
clear () {
- this.$emit('clear')
- this.userItem = null
+ if(!userItem){
+ this.$emit('clear')
+ } else {
+ this.userItem = null;
+ this.$emit('clearRank');
+ }
},
rankAdd(item){
if (this.title == '用户原力月榜') {
--
GitLab