diff --git a/src/view/pc/fans.vue b/src/view/pc/fans.vue index 71ab62f92320f853eaa9a99004385808ecf93acf..48f197519af1639f308de79b06ff5ee18fcb1a79 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 b9ce36faef52b21b474c7e16492426d0ab575597..289ae60e589f07eba18642956e79da5d08be4950 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 == '用户原力月榜') {