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