This commit is contained in:
liuye
2022-02-18 15:21:34 +08:00
parent 741b58acd3
commit 17601dc953
3 changed files with 26 additions and 17 deletions

View File

@@ -22,7 +22,7 @@
</div>
</AiTopFixed>
<div class="line-bg"></div>
<div v-if="list.length">
<div v-if="info['列表'] && info['列表'].length">
<div class="ranking-content" v-if="info['列表'] && info['列表'].length">
<div class="item" v-if="info['列表'].length > 1">
<img
@@ -133,6 +133,7 @@ export default {
};
},
onLoad() {
this.areaId = this.user.areaId
this.areaName = this.user.areaName || ''
this.getInfo();
},
@@ -151,9 +152,7 @@ export default {
// 积分排行
getInfo() {
this.info = {};
// var url = `/app/appresident/rank?id=00255e188d1225f3fe022cb4eed44a84&type=${this.tabIndex}` //积分排行
var url = `/app/appresident/rank?id=${this.user.residentId}&type=${this.tabIndex}&areaId=${this.areaId}`; //积分排行
this.$http.post(url).then((res) => {
this.$http.post(`/app/appresident/rank-qw?type=${this.tabIndex}&areaId=${this.areaId}`).then((res) => {
if (res.code === 0) {
this.info = res.data;
}
@@ -171,7 +170,7 @@ export default {
<style scoped lang="scss">
.page {
width: 100%;
background-color: #f3f6f9;
// background-color: #f3f6f9;
.credit-points {
.bg-blue {
width: 100%;