积分排行调整地区获取
This commit is contained in:
@@ -89,15 +89,9 @@ export default {
|
||||
info: {},
|
||||
current: 1,
|
||||
list: [],
|
||||
areaId: ''
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
if (uni.getStorageSync('areaId')) {
|
||||
this.areaId = uni.getStorageSync('areaId')||this.user.areaId
|
||||
} else {
|
||||
this.areaId = this.$areaId
|
||||
}
|
||||
if (options.type == 'detail') {
|
||||
this.showDetail = true
|
||||
this.getList()
|
||||
@@ -117,7 +111,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}` //积分排行
|
||||
var url = `/app/appresident/rank?id=${this.user.residentId}&type=${this.tabIndex}&areaId=${this.user?.areaId}` //积分排行
|
||||
this.$instance.post(url).then(res => {
|
||||
if (res.code === 0) {
|
||||
this.info = res.data
|
||||
|
||||
Reference in New Issue
Block a user