This commit is contained in:
wong1988
2024-01-19 14:54:04 +08:00
parent 8be2c6e5c7
commit 165a0e622c
3 changed files with 12 additions and 3 deletions

View File

@@ -145,6 +145,7 @@
this.page.userSid = getApp().globalData.sid
let _this = this
_this.$api.saveRealInfo(this.page).then((resp) => {
uni.$emit("real-info")
uni.navigateBack()
}).catch(e => {
console.log(e);

View File

@@ -52,7 +52,15 @@
},
onLoad(options) {
this.request()
// this.$refs.pageView.setLoadState(2)
uni.$on("real-info", (e) => {
this.$nextTick(() => {
this.$refs.pageView.setLoadState(0)
})
this.request();
})
},
onUnload() {
uni.$off('real-info');
},
methods: {
// 获取数据