|
|
@ -36,49 +36,49 @@ |
|
|
|
"process": 0.0000, |
|
|
|
"planNo": "BP2022060701", |
|
|
|
"endDate": "2022-06-07", |
|
|
|
"type": "砌块", |
|
|
|
"type": "block", |
|
|
|
"startDate": "2022-06-07" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"process": 0.0000, |
|
|
|
"planNo": "WP2022061301", |
|
|
|
"endDate": "2022-06-13", |
|
|
|
"type": "墙板", |
|
|
|
"type": "wallboard", |
|
|
|
"startDate": "2022-06-13" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"process": 0.0000, |
|
|
|
"planNo": "WP2022061301", |
|
|
|
"endDate": "2022-06-13", |
|
|
|
"type": "墙板", |
|
|
|
"type": "wallboard", |
|
|
|
"startDate": "2022-06-13" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"process": 0.0000, |
|
|
|
"planNo": "WP2022061301", |
|
|
|
"endDate": "2022-06-13", |
|
|
|
"type": "墙板", |
|
|
|
"type": "wallboard", |
|
|
|
"startDate": "2022-06-13" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"process": 0.0000, |
|
|
|
"planNo": "WP2022061301", |
|
|
|
"endDate": "2022-06-13", |
|
|
|
"type": "墙板", |
|
|
|
"type": "wallboard", |
|
|
|
"startDate": "2022-06-13" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"process": 0.0000, |
|
|
|
"planNo": "WP2022061301", |
|
|
|
"endDate": "2022-06-13", |
|
|
|
"type": "墙板", |
|
|
|
"type": "wallboard", |
|
|
|
"startDate": "2022-06-13" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"process": 0.0000, |
|
|
|
"planNo": "WP2022061301", |
|
|
|
"endDate": "2022-06-13", |
|
|
|
"type": "墙板", |
|
|
|
"type": "wallboard", |
|
|
|
"startDate": "2022-06-13" |
|
|
|
} |
|
|
|
], |
|
|
@ -178,7 +178,11 @@ |
|
|
|
// 假设设计稿宽度为750rpx |
|
|
|
const designWidth = 750; |
|
|
|
// 屏幕宽度,单位为px |
|
|
|
const screenWidth = systemInfo.screenWidth; |
|
|
|
let screenWidth = systemInfo.screenWidth; |
|
|
|
//防止屏幕过大时转换的值太大。超过960就设置screenWidth为版心宽度 |
|
|
|
if(screenWidth > 960){ |
|
|
|
screenWidth = 375 |
|
|
|
} |
|
|
|
// 计算1rpx等于多少px |
|
|
|
const rpxToPx = screenWidth / (designWidth / rpx); |
|
|
|
console.log(rpxToPx); |
|
|
|