diff --git a/package.json b/package.json index cc9d7dd..02483f7 100644 --- a/package.json +++ b/package.json @@ -45,6 +45,7 @@ "@tarojs/plugin-framework-vue3": "3.6.23", "@tarojs/plugin-html": "3.6.23", "@tarojs/plugin-platform-alipay": "3.6.23", + "@tarojs/plugin-platform-h5": "^3.6.23", "@tarojs/plugin-platform-jd": "3.6.23", "@tarojs/plugin-platform-qq": "3.6.23", "@tarojs/plugin-platform-swan": "3.6.23", diff --git a/src/components/other/index.vue b/src/components/other/index.vue index 5224ac0..9475cc7 100644 --- a/src/components/other/index.vue +++ b/src/components/other/index.vue @@ -344,6 +344,8 @@ :style="{ width: chartConf.cWidth + 'px', height: chartConf.cHeight + 'px', + position: (visControl || alertShow) ? 'absolute' : 'relative', + left: (visControl || alertShow) ? '-9999px' : '0' }" > @@ -512,7 +514,6 @@ class="dialog" text-align="left" no-footer - :style="{ zIndex: 9999 }" > @@ -764,7 +765,7 @@ const keepNightOpen = ref(false); Taro.useDidShow(() => { const sysInfo = Taro.getSystemInfoSync(); let cWidth = (700 / 750) * sysInfo.screenWidth; - let cHeight = (165 / 750) * sysInfo.windowHeight; + let cHeight = (220 / 750) * sysInfo.windowHeight; let pixelRatio = sysInfo.pixelRatio; chartConf.cWidth = cWidth; chartConf.cHeight = cHeight;