This commit is contained in:
2022-01-25 09:52:20 +08:00
4 changed files with 142 additions and 138 deletions

View File

@@ -38,17 +38,14 @@
userInfo: {}
}
},
onLoad(e) {
this.targetId = e.targetId
console.log('获取资料',e.targetId);
getUserInfo(e.targetId).then(res => {
this.userInfo = res
console.log('获取资料', res);
uni.setNavigationBarTitle({
title: res.name
})
})
},
mounted() {
getUserInfo(this.$Route.query.id).then(res => {
this.userInfo = res
uni.setNavigationBarTitle({
title: res.name
})
})
},
methods: {
toPrivate() {
uni.redirectTo({