Merge branch 'cyl/master'

app
jscyl13849007907 5 months ago
commit cc37c856bc

@ -119,6 +119,7 @@ export default {
icon: "success", icon: "success",
}); });
that.G.checkToken(); that.G.checkToken();
uni.$emit('getBossAvatar',that.avatar)
setTimeout(() => { setTimeout(() => {
uni.navigateBack(); uni.navigateBack();
}, 1500); }, 1500);

@ -19,12 +19,8 @@
</view> </view>
<view class="g_flex_row_center g_mt_30"> <view class="g_flex_row_center g_mt_30">
<view v-if="!isEdit" class="g_flex_row_center"> <view v-if="!isEdit" class="g_flex_row_center">
<!-- #ifdef APP-PLUS || H5 || MP-TOUTIAO || MP-KUAISHOU --> <button aria-role="button" class="g_w_110 g_h_32 g_flex_c g_radius_17 g_c_f"
<button aria-role="button" class="g_w_110 g_h_32 g_flex_c g_radius_17 g_c_f" style="border: 1px solid #fff; background-color: transparent; font-size: 14px" @click="handleOpenAvatar"></button> style="border: 1px solid #fff; background-color: transparent; font-size: 14px" @click="handleOpenAvatar">更换头像</button>
<!-- #endif -->
<!-- #ifdef MP-WEIXIN -->
<button open-type="chooseAvatar" @chooseavatar="handleStartChangeAvatar" aria-role="button" class="g_w_110 g_h_32 g_flex_c g_radius_17 g_c_f" style="border: 1px solid #fff; background-color: transparent; font-size: 14px">更换头像</button>
<!-- #endif -->
</view> </view>
<view v-if="isEdit" class="g_flex_row_center"> <view v-if="isEdit" class="g_flex_row_center">
<view class="g_w_110 g_h_32 g_flex_c g_radius_17 g_c_f g_mr_16" style="border: 1px solid #fff" @click="handleCancel"></view> <view class="g_w_110 g_h_32 g_flex_c g_radius_17 g_c_f g_mr_16" style="border: 1px solid #fff" @click="handleCancel"></view>
@ -122,7 +118,9 @@ export default {
}); });
that.G.checkToken(); that.G.checkToken();
setTimeout(() => { setTimeout(() => {
uni.navigateBack(); uni.redirectTo({
url:'/root/person/info'
})
}, 1500); }, 1500);
}); });
}, },

@ -147,6 +147,7 @@ export default {
this.info.value.address = e.address; this.info.value.address = e.address;
this.info.value.lat = e.lat; this.info.value.lat = e.lat;
this.info.value.lng = e.lng; this.info.value.lng = e.lng;
uni.$emit('getBossAddress',that.avatar)
}, },
}, },
}; };

@ -140,13 +140,25 @@ export default {
console.log("changeCompanyDespchangeCompanyDespchangeCompanyDespchangeCompanyDesp"); console.log("changeCompanyDespchangeCompanyDespchangeCompanyDespchangeCompanyDesp");
that.getAgencyInfo(); 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.resetInfo();
that.getTeamList(); that.getTeamList();
// if (that.userInfo.agencyStatus == 1) { // if (that.userInfo.agencyStatus == 1) {
that.getAgencyInfo(); that.getAgencyInfo();
// } // }
}, },
methods: { methods: {
save() { save() {
let that = this; let that = this;

Loading…
Cancel
Save