From bf57816244e14c29b9ed5a9ea0d1249d618aa975 Mon Sep 17 00:00:00 2001 From: tangxinyue <524779910@qq.com> Date: Fri, 5 Jun 2026 14:38:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=8E=8B=E8=80=85=E4=B8=BB?= =?UTF-8?q?=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.js | 2 +- pages/other/game/honor-of-kings.vue | 155 +++++++++++++++------------- 2 files changed, 87 insertions(+), 70 deletions(-) diff --git a/main.js b/main.js index 70e3a61..eb7f6ef 100644 --- a/main.js +++ b/main.js @@ -29,7 +29,7 @@ export function createApp() { app.config.globalProperties.$system = plus.os.name; // #endif app.config.globalProperties.$systemInfo = systemInfo - uni.setStorageSync('version', '1.0.6.sp5') + uni.setStorageSync('version', '1.0.6.sp7') app.config.globalProperties.$version = uni.getStorageSync('version') app.use(globalMethods); return { diff --git a/pages/other/game/honor-of-kings.vue b/pages/other/game/honor-of-kings.vue index 9870f94..a65a645 100644 --- a/pages/other/game/honor-of-kings.vue +++ b/pages/other/game/honor-of-kings.vue @@ -5,79 +5,88 @@ - - - - - - + + + + 海报加载中... + - - + + + + + + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -370,6 +379,8 @@ const tempData = reactive({}); const newAvatars = ref([]); function handleChangeTheme(typeIndex) { + // 切换主题时,先清空旧海报,触发界面“加载中”提示 + finalPosterPath.value = ''; honorData.type = typeIndex; uni.setStorageSync('wangzheHonorData', honorData); } @@ -439,6 +450,9 @@ function confirmEdit() { uni.setStorageSync('wangzheHonorData', honorData); editPopup.value.close(); + // 数据修改后,清空旧海报触发“加载中”提示,等待重新生成 + finalPosterPath.value = ''; + // 如果昵称改变了,需要重新绘制原生的渐变文字 if (isNicknameChanged && isFontLoaded.value) { drawGradientText(); @@ -555,6 +569,9 @@ const drawGradientText = () => { } .painter-container { + /* 强制画板缩放到设备屏幕宽度,避免物理 px 超出屏幕 */ + padding: 8px; + zoom: calc(100vw / 798); width: 100%; max-width: 1000px; /* 限制PC/iPad端的最大宽度 */