|
@@ -1675,11 +1675,11 @@ export default {
|
|
|
if(window.devicePixelRatio < 1) {
|
|
|
if(this.marginTop > 18) {
|
|
|
containerStyle = {
|
|
|
- marginTop: (this.marginTop + 10 - 14) + 'px',
|
|
|
+ marginTop: (this.marginTop + 10 + 14) + 'px',
|
|
|
};
|
|
|
}else {
|
|
|
containerStyle = {
|
|
|
- marginTop: (this.marginTop + 10 - 28) + 'px',
|
|
|
+ marginTop: (this.marginTop + 10 + 28) + 'px',
|
|
|
};
|
|
|
}
|
|
|
}else {
|
|
@@ -1735,27 +1735,69 @@ 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) {
|
|
|
+ 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',
|
|
|
+ };
|
|
|
+ }else {
|
|
|
+ if(window.devicePixelRatio < 1) {
|
|
|
+ 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 + 7) + '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 {
|
|
|
pulseStyle = {
|