|
|
@@ -1192,18 +1192,18 @@ export default {
|
|
|
lineHeight: '14px'
|
|
|
};
|
|
|
}
|
|
|
- // 例如:1366x768
|
|
|
- else if (screenWidth === 1366 && screenHeight === 768) {
|
|
|
- style = {
|
|
|
- width: '12px',
|
|
|
- height: '10px',
|
|
|
- color: '#ff0000',
|
|
|
- fontSize: '8px',
|
|
|
- position: 'relative',
|
|
|
- top: '-1px',
|
|
|
- lineHeight: '14px'
|
|
|
- };
|
|
|
- }
|
|
|
+ // // 例如:1366x768
|
|
|
+ // else if (screenWidth === 1366 && screenHeight === 768) {
|
|
|
+ // style = {
|
|
|
+ // width: '12px',
|
|
|
+ // height: '10px',
|
|
|
+ // color: '#ff0000',
|
|
|
+ // fontSize: '8px',
|
|
|
+ // position: 'relative',
|
|
|
+ // top: '-1px',
|
|
|
+ // lineHeight: '14px'
|
|
|
+ // };
|
|
|
+ // }
|
|
|
// 例如:1536x864
|
|
|
else if (screenWidth === 1536 && screenHeight === 864) {
|
|
|
style = {
|
|
|
@@ -1228,18 +1228,18 @@ export default {
|
|
|
lineHeight: '14px'
|
|
|
};
|
|
|
}
|
|
|
- // 例如:1440x900
|
|
|
- else if (screenWidth === 1440 && screenHeight === 900) {
|
|
|
- style = {
|
|
|
- width: '12px',
|
|
|
- height: '10px',
|
|
|
- color: '#ff0000',
|
|
|
- fontSize: '8px',
|
|
|
- position: 'relative',
|
|
|
- top: '-1px',
|
|
|
- lineHeight: '14px'
|
|
|
- };
|
|
|
- }
|
|
|
+ // // 例如:1440x900
|
|
|
+ // else if (screenWidth === 1440 && screenHeight === 900) {
|
|
|
+ // style = {
|
|
|
+ // width: '12px',
|
|
|
+ // height: '10px',
|
|
|
+ // color: '#ff0000',
|
|
|
+ // fontSize: '8px',
|
|
|
+ // position: 'relative',
|
|
|
+ // top: '-1px',
|
|
|
+ // lineHeight: '14px'
|
|
|
+ // };
|
|
|
+ // }
|
|
|
// 其他分辨率使用默认样式
|
|
|
else {
|
|
|
style = {
|
|
|
@@ -1305,27 +1305,27 @@ export default {
|
|
|
marginTop: '22px'
|
|
|
};
|
|
|
}
|
|
|
- // 例如:1366x768
|
|
|
- else if (screenWidth === 1366 && screenHeight === 768) {
|
|
|
- pulseStyle = {
|
|
|
- titleMarginTop: '0px',
|
|
|
- firstRowMarginTop: '44px',
|
|
|
- normalRowMarginTop: '61px',
|
|
|
- lastRowMarginTop: '61px'
|
|
|
- };
|
|
|
- temperatureStyle = {
|
|
|
- titleMarginTop: '0px',
|
|
|
- firstRowMarginTop: '44px',
|
|
|
- normalRowMarginTop: '61px',
|
|
|
- lastRowMarginTop: '61px'
|
|
|
- };
|
|
|
- legendStyle = {
|
|
|
- marginTop: '476px'
|
|
|
- };
|
|
|
- containerStyle = {
|
|
|
- marginTop: '22px'
|
|
|
- };
|
|
|
- }
|
|
|
+ // // 例如:1366x768
|
|
|
+ // else if (screenWidth === 1366 && screenHeight === 768) {
|
|
|
+ // pulseStyle = {
|
|
|
+ // titleMarginTop: '0px',
|
|
|
+ // firstRowMarginTop: '44px',
|
|
|
+ // normalRowMarginTop: '61px',
|
|
|
+ // lastRowMarginTop: '61px'
|
|
|
+ // };
|
|
|
+ // temperatureStyle = {
|
|
|
+ // titleMarginTop: '0px',
|
|
|
+ // firstRowMarginTop: '44px',
|
|
|
+ // normalRowMarginTop: '61px',
|
|
|
+ // lastRowMarginTop: '61px'
|
|
|
+ // };
|
|
|
+ // legendStyle = {
|
|
|
+ // marginTop: '476px'
|
|
|
+ // };
|
|
|
+ // containerStyle = {
|
|
|
+ // marginTop: '22px'
|
|
|
+ // };
|
|
|
+ // }
|
|
|
// 例如:1536x864
|
|
|
else if (screenWidth === 1536 && screenHeight === 864) {
|
|
|
pulseStyle = {
|
|
|
@@ -1369,27 +1369,27 @@ export default {
|
|
|
marginTop: '22px'
|
|
|
};
|
|
|
}
|
|
|
- // 例如:1440x900
|
|
|
- else if (screenWidth === 1440 && screenHeight === 900) {
|
|
|
- pulseStyle = {
|
|
|
- titleMarginTop: '0px',
|
|
|
- firstRowMarginTop: '44px',
|
|
|
- normalRowMarginTop: '61px',
|
|
|
- lastRowMarginTop: '61px'
|
|
|
- };
|
|
|
- temperatureStyle = {
|
|
|
- titleMarginTop: '0px',
|
|
|
- firstRowMarginTop: '44px',
|
|
|
- normalRowMarginTop: '61px',
|
|
|
- lastRowMarginTop: '61px'
|
|
|
- };
|
|
|
- legendStyle = {
|
|
|
- marginTop: '476px'
|
|
|
- };
|
|
|
- containerStyle = {
|
|
|
- marginTop: '22px'
|
|
|
- };
|
|
|
- }
|
|
|
+ // // 例如:1440x900
|
|
|
+ // else if (screenWidth === 1440 && screenHeight === 900) {
|
|
|
+ // pulseStyle = {
|
|
|
+ // titleMarginTop: '0px',
|
|
|
+ // firstRowMarginTop: '44px',
|
|
|
+ // normalRowMarginTop: '61px',
|
|
|
+ // lastRowMarginTop: '61px'
|
|
|
+ // };
|
|
|
+ // temperatureStyle = {
|
|
|
+ // titleMarginTop: '0px',
|
|
|
+ // firstRowMarginTop: '44px',
|
|
|
+ // normalRowMarginTop: '61px',
|
|
|
+ // lastRowMarginTop: '61px'
|
|
|
+ // };
|
|
|
+ // legendStyle = {
|
|
|
+ // marginTop: '476px'
|
|
|
+ // };
|
|
|
+ // containerStyle = {
|
|
|
+ // marginTop: '22px'
|
|
|
+ // };
|
|
|
+ // }
|
|
|
// 其他分辨率使用默认样式
|
|
|
else {
|
|
|
pulseStyle = {
|
|
|
@@ -1411,7 +1411,7 @@ export default {
|
|
|
marginTop: this.marginTop + 'px',
|
|
|
};
|
|
|
}
|
|
|
-
|
|
|
+ console.log("this.marginTop11111111111111111111",this.marginTop)
|
|
|
this.pulseScaleStyle = pulseStyle;
|
|
|
this.temperatureScaleStyle = temperatureStyle;
|
|
|
this.legendStyle = legendStyle;
|