bug
This commit is contained in:
@@ -61,8 +61,16 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
onLoad () {
|
onLoad () {
|
||||||
this.$loading()
|
if (this.token) {
|
||||||
this.getList()
|
this.$loading()
|
||||||
|
this.getUserInfo()
|
||||||
|
this.getList()
|
||||||
|
} else {
|
||||||
|
this.autoLogin().then(() => {
|
||||||
|
this.$loading()
|
||||||
|
this.getList()
|
||||||
|
})
|
||||||
|
}
|
||||||
this.statusBarHeight = uni.getSystemInfoSync().statusBarHeight
|
this.statusBarHeight = uni.getSystemInfoSync().statusBarHeight
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -165,7 +173,8 @@ export default {
|
|||||||
params: {
|
params: {
|
||||||
current: this.current,
|
current: this.current,
|
||||||
size: 10,
|
size: 10,
|
||||||
listType: 1
|
listType: 1,
|
||||||
|
openId: this.user.openId
|
||||||
}
|
}
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
|
|||||||
@@ -66,8 +66,16 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
onLoad () {
|
onLoad () {
|
||||||
this.$loading()
|
if (this.token) {
|
||||||
this.getList()
|
this.$loading()
|
||||||
|
this.getUserInfo()
|
||||||
|
this.getList()
|
||||||
|
} else {
|
||||||
|
this.autoLogin().then(() => {
|
||||||
|
this.$loading()
|
||||||
|
this.getList()
|
||||||
|
})
|
||||||
|
}
|
||||||
this.statusBarHeight = uni.getSystemInfoSync().statusBarHeight
|
this.statusBarHeight = uni.getSystemInfoSync().statusBarHeight
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -177,7 +185,8 @@
|
|||||||
params: {
|
params: {
|
||||||
current: this.current,
|
current: this.current,
|
||||||
size: 10,
|
size: 10,
|
||||||
listType: 0
|
listType: 0,
|
||||||
|
openId: this.user.openId
|
||||||
}
|
}
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user