LIJU 2 months ago
parent
commit
3133cb2c10
1 changed files with 9 additions and 3 deletions
  1. 9 3
      src/components/medical-advice/temperature/graphics.vue

+ 9 - 3
src/components/medical-advice/temperature/graphics.vue

@@ -1673,9 +1673,15 @@ export default {
           console.log("this.marginTop > 38",containerStyle.marginTop)
         }else {
           if(window.devicePixelRatio < 1) {
-            containerStyle = {
-              marginTop:  (this.marginTop + 10 - 14) + 'px',
-            };
+            if(this.marginTop > 18) {
+              containerStyle = {
+                marginTop:  (this.marginTop + 10 - 14) + 'px',
+              };
+            }else {
+              containerStyle = {
+                marginTop:  (this.marginTop + 10 - 28) + 'px',
+              };
+            }
           }else {
             containerStyle = {
               marginTop:  (this.marginTop + 10) + 'px',