From bf3edabf81873dc0359812fe3a1b47b02eada84c Mon Sep 17 00:00:00 2001 From: chenruiye <862859104@qq.com> Date: Thu, 29 May 2025 14:08:05 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B6=85=E7=AE=A1=E4=B8=AD=E5=BF=83-=E8=8B=B1?= =?UTF-8?q?=E8=AF=AD=E5=8C=BA=E5=88=9B=E5=BB=BA=E5=85=AC=E4=BC=9A-?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E9=82=80=E8=AF=B7=E4=BA=BAID?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- view/molistar/modules/guild-ar/js/createGuild.js | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/view/molistar/modules/guild-ar/js/createGuild.js b/view/molistar/modules/guild-ar/js/createGuild.js index aca38497..0cbcb51f 100644 --- a/view/molistar/modules/guild-ar/js/createGuild.js +++ b/view/molistar/modules/guild-ar/js/createGuild.js @@ -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) }