diff --git a/main.js b/main.js index eb7f6ef..4ec6380 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.sp7') + uni.setStorageSync('version', '1.0.6.sp9') 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 a65a645..dd27e51 100644 --- a/pages/other/game/honor-of-kings.vue +++ b/pages/other/game/honor-of-kings.vue @@ -3,18 +3,12 @@ - - - - - - 海报加载中... - - - - + + + + @@ -32,7 +26,6 @@ - @@ -242,6 +235,12 @@ const showPreview = ref(false); // 控制全屏预览 const isMountedReady = ref(false); const isFontLoaded = ref(false); +// 获取系统宽度计算海报缩放比例,代替容易失效的 css calc(),确保全端兼容防截断 +const sysInfo = uni.getSystemInfoSync(); +const windowWidth = sysInfo.windowWidth || 375; +const posterScaleRatio = windowWidth / 750; +const posterContainerHeight = 342 * posterScaleRatio; + // 页面表单数据字段 const honorData = reactive({ type: 1, // 样式类型 1.2.3.4 diff --git a/static/image/recharge/66/bannar.png b/static/image/recharge/66/bannar.png index 15772bf..070508c 100644 Binary files a/static/image/recharge/66/bannar.png and b/static/image/recharge/66/bannar.png differ