超管中心-英语区创建公会-设置邀请人ID
This commit is contained in:
@@ -147,8 +147,8 @@ function getToken(file, type) {
|
||||
// 创建一个新的 Image 对象来加载图片
|
||||
const img = new Image();
|
||||
img.src = imageUrl;
|
||||
// 监听图片加载完成事件
|
||||
img.onload = () => {
|
||||
// 监听图片加载完成事件
|
||||
img.onload = () => {
|
||||
if (type == 1) { // 背景
|
||||
$('.info .agencyAvatar').attr('src', imageUrl);
|
||||
} else if (type == 2) { // 身份证
|
||||
@@ -158,8 +158,8 @@ function getToken(file, type) {
|
||||
}
|
||||
hideLoading(layerIndex);
|
||||
};
|
||||
// 监听图片加载失败事件
|
||||
img.onerror = () => {
|
||||
// 监听图片加载失败事件
|
||||
img.onerror = () => {
|
||||
console.error('图片加载失败:', imageUrl);
|
||||
hideLoading(layerIndex);
|
||||
toastMsg(langReplace(localLang.createGuild.imgerr));
|
||||
@@ -180,7 +180,7 @@ function getToken(file, type) {
|
||||
});
|
||||
} else {
|
||||
toastMsg(res.message)
|
||||
hideLoading(layerIndex)
|
||||
hideLoading(layerIndex)
|
||||
}
|
||||
},
|
||||
error(err) {
|
||||
@@ -204,6 +204,10 @@ function h5User() {
|
||||
$('.myInfo p').text(res.data.nick);
|
||||
$('.myInfo b').text(`ID:${res.data.erbanNo}`);
|
||||
erbanNo = res.data.erbanNo;
|
||||
if (res.data.inviteErbanNo != '' && res.data.inviteErbanNo) {
|
||||
$('.inviterInfo .InviterId input').val(res.data.inviteErbanNo)
|
||||
$('.inviterInfo .InviterId input').attr('disabled', 'disabled');
|
||||
}
|
||||
} else {
|
||||
toastMsg(res.message)
|
||||
}
|
||||
|
Reference in New Issue
Block a user