LIJU 2 周之前
父節點
當前提交
5d8b0f5bbb
共有 1 個文件被更改,包括 39 次插入18 次删除
  1. 39 18
      src/components/medical-advice/temperature/graphics.vue

+ 39 - 18
src/components/medical-advice/temperature/graphics.vue

@@ -1738,24 +1738,45 @@ export default {
       // 例如:1440x900
       else if (screenWidth === 1440 && screenHeight === 900) {
         if(this.marginTop > 38) {
-          pulseStyle = {
-            titleMarginTop: '0px',
-            firstRowMarginTop: '32px',
-            normalRowMarginTop: '55px',
-            lastRowMarginTop: '56px'
-          };
-          temperatureStyle = {
-            titleMarginTop: '0px',
-            firstRowMarginTop: '32px',
-            normalRowMarginTop: '55px',
-            lastRowMarginTop: '56px'
-          };
-          legendStyle = {
-            marginTop: '476px'
-          };
-          containerStyle = {
-            marginTop:  (this.marginTop + 14) + 'px',
-          };
+          if(this.marginTop < 58) {
+              pulseStyle = {
+                titleMarginTop: '0px',
+                firstRowMarginTop: '32px',
+                normalRowMarginTop: '55px',
+                lastRowMarginTop: '56px'
+              };
+              temperatureStyle = {
+                titleMarginTop: '0px',
+                firstRowMarginTop: '32px',
+                normalRowMarginTop: '55px',
+                lastRowMarginTop: '56px'
+              };
+              legendStyle = {
+                marginTop: '476px'
+              };
+              containerStyle = {
+                marginTop:  (this.marginTop + 14) + 'px',
+              };
+          }else {
+              pulseStyle = {
+                titleMarginTop: '0px',
+                firstRowMarginTop: '32px',
+                normalRowMarginTop: '55px',
+                lastRowMarginTop: '56px'
+              };
+              temperatureStyle = {
+                titleMarginTop: '0px',
+                firstRowMarginTop: '32px',
+                normalRowMarginTop: '55px',
+                lastRowMarginTop: '56px'
+              };
+              legendStyle = {
+                marginTop: '476px'
+              };
+              containerStyle = {
+                marginTop:  this.marginTop + 'px',
+              };            
+          }
         }else {
           if(window.devicePixelRatio < 1) {
               pulseStyle = {