diff --git a/root/person/agencyAvatar.vue b/root/person/agencyAvatar.vue index cd06194..2bc373b 100644 --- a/root/person/agencyAvatar.vue +++ b/root/person/agencyAvatar.vue @@ -119,6 +119,7 @@ export default { icon: "success", }); that.G.checkToken(); + uni.$emit('getBossAvatar',that.avatar) setTimeout(() => { uni.navigateBack(); }, 1500); diff --git a/root/person/avatar.vue b/root/person/avatar.vue index 1ff3983..3f6897f 100644 --- a/root/person/avatar.vue +++ b/root/person/avatar.vue @@ -19,12 +19,8 @@ - - - - - - + 取消 @@ -122,7 +118,9 @@ export default { }); that.G.checkToken(); setTimeout(() => { - uni.navigateBack(); + uni.redirectTo({ + url:'/root/person/info' + }) }, 1500); }); }, diff --git a/root/person/change.vue b/root/person/change.vue index 00828ab..fba559a 100644 --- a/root/person/change.vue +++ b/root/person/change.vue @@ -147,6 +147,7 @@ export default { this.info.value.address = e.address; this.info.value.lat = e.lat; this.info.value.lng = e.lng; + uni.$emit('getBossAddress',that.avatar) }, }, }; diff --git a/root/person/orderEdit.vue b/root/person/orderEdit.vue index 608ace5..dba831c 100644 --- a/root/person/orderEdit.vue +++ b/root/person/orderEdit.vue @@ -140,13 +140,25 @@ export default { console.log("changeCompanyDespchangeCompanyDespchangeCompanyDespchangeCompanyDesp"); that.getAgencyInfo(); }); + uni.$on("getBossAvatar", function (data) { + console.log("接收到 getBossAvatar 事件", data); + // 可以在这里执行更新头像的逻辑,例如: + // that.info.logo = data.avatarUrl; + that.getAgencyInfo(); // 刷新数据 + }); + uni.$on("getBossAddress", function (data) { + console.log("接收到 getBossAddress 事件", data); + // 可以在这里执行更新头像的逻辑,例如: + // that.info.logo = data.avatarUrl; + that.getAgencyInfo(); // 刷新数据 + }); + that.resetInfo(); that.getTeamList(); // if (that.userInfo.agencyStatus == 1) { that.getAgencyInfo(); // } - }, - + }, methods: { save() { let that = this;