Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
aixianling
2022-05-30 15:46:53 +08:00
4 changed files with 15 additions and 8 deletions

View File

@@ -100,7 +100,13 @@
}) })
uni.$on('change', () => { uni.$on('change', () => {
this.isMore = false
this.current = 1
this.getInfo(query.id) this.getInfo(query.id)
this.$nextTick(() => {
this.getList()
})
}) })
uni.$on('update', () => { uni.$on('update', () => {

View File

@@ -33,7 +33,7 @@ export default {
}, },
onShow() { onShow() {
// this.$refs?.TabPage?.show() this.$refs?.TabPage?.show()
this.$nextTick(() => { this.$nextTick(() => {
this.injectJWeixin(['getLocation', 'sendChatMessage', 'shareAppMessage', 'shareWechatMessage']) this.injectJWeixin(['getLocation', 'sendChatMessage', 'shareAppMessage', 'shareWechatMessage'])
}) })

View File

@@ -95,11 +95,6 @@
this.getAlbumList() this.getAlbumList()
this.getMsgList() this.getMsgList()
this.getUserInfo() this.getUserInfo()
uni.$on('update', () => {
this.getCountPhotoNo()
this.getAlbumList()
})
}, },
destroyed () { destroyed () {
@@ -113,6 +108,13 @@
}) })
}, },
update () {
this.getCountPhotoNo()
this.getAlbumList()
this.getMsgList()
this.getUserInfo()
},
getUserInfo () { getUserInfo () {
this.$http.post('/api/user/info').then(res => { this.$http.post('/api/user/info').then(res => {
if (res.code === 0) { if (res.code === 0) {

View File

@@ -47,9 +47,8 @@
}, },
show() { show() {
if (this.currIndex == 0) { if (this.currIndex == 0) {
this.currIndex = -1
this.$nextTick(() => { this.$nextTick(() => {
this.currIndex = 0 this.$refs.Home.update()
}) })
} }
} }