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端的最大宽度 */