diff --git a/src/project/fengdu/AppMine/integralRank.vue b/src/project/fengdu/AppMine/integralRank.vue
index dc3f35e..e529ca5 100644
--- a/src/project/fengdu/AppMine/integralRank.vue
+++ b/src/project/fengdu/AppMine/integralRank.vue
@@ -28,8 +28,8 @@
-
-
+
+
![]()
@@ -52,7 +52,7 @@
{{ list[2].integral }}
-
+
{{ index+1 }}
![]()
@@ -62,6 +62,7 @@
+
@@ -97,12 +98,13 @@ export default {
methods: {
tabClick(index) {
this.tabIndex = index
+ this.typeCurrent = 0
this.getList()
},
getList() {// 积分排行
this.list = {}
- var url = `/app/appintegraluser/integralSortFD?type=${this.tabIndex}&size=50&areaId=${this.user.areaId}` //积分排行
- this.$instance.post(url).then(res => {
+ var url = this.tabIndex == 1 ? `/app/appintegraluser/integralSortFDHouse` : `/app/appintegraluser/integralSortFD` //tabIndex: 1家庭 0个人
+ this.$instance.post(url+`?type=${this.typeCurrent}&size=50&areaId=${this.user.areaId}`).then(res => {
if (res.code === 0) {
this.list = res.data.map(e=> ({...e, index: e.index}))
this.userInfo = res.data.filter(e => e.open_id === this.user.openId)
@@ -119,6 +121,7 @@ export default {
},
typeChange(index) {
this.typeCurrent = index
+ this.getList()
}
},
onReachBottom() {