Browse Source

修复bug

master
longjieli 9 months ago
parent
commit
5d4bfee416
2 changed files with 13 additions and 9 deletions
  1. +1
    -1
      components/luckyAnimation/luckyAnimation.vue
  2. +12
    -8
      components/virtualScroll/virtualScroll.vue

+ 1
- 1
components/luckyAnimation/luckyAnimation.vue View File

@ -50,7 +50,7 @@
.loader { .loader {
height: 15px; height: 15px;
aspect-ratio: 4; aspect-ratio: 4;
--_g: no-repeat radial-gradient(farthest-side, #aec438 90%, #0000);
--_g: no-repeat radial-gradient(farthest-side, #000, 90%, #0000);
background: background:
var(--_g) left, var(--_g) left,
var(--_g) right; var(--_g) right;


+ 12
- 8
components/virtualScroll/virtualScroll.vue View File

@ -36,49 +36,49 @@
"process": 0.0000, "process": 0.0000,
"planNo": "BP2022060701", "planNo": "BP2022060701",
"endDate": "2022-06-07", "endDate": "2022-06-07",
"type": "砌块",
"type": "block",
"startDate": "2022-06-07" "startDate": "2022-06-07"
}, },
{ {
"process": 0.0000, "process": 0.0000,
"planNo": "WP2022061301", "planNo": "WP2022061301",
"endDate": "2022-06-13", "endDate": "2022-06-13",
"type": "墙板",
"type": "wallboard",
"startDate": "2022-06-13" "startDate": "2022-06-13"
}, },
{ {
"process": 0.0000, "process": 0.0000,
"planNo": "WP2022061301", "planNo": "WP2022061301",
"endDate": "2022-06-13", "endDate": "2022-06-13",
"type": "墙板",
"type": "wallboard",
"startDate": "2022-06-13" "startDate": "2022-06-13"
}, },
{ {
"process": 0.0000, "process": 0.0000,
"planNo": "WP2022061301", "planNo": "WP2022061301",
"endDate": "2022-06-13", "endDate": "2022-06-13",
"type": "墙板",
"type": "wallboard",
"startDate": "2022-06-13" "startDate": "2022-06-13"
}, },
{ {
"process": 0.0000, "process": 0.0000,
"planNo": "WP2022061301", "planNo": "WP2022061301",
"endDate": "2022-06-13", "endDate": "2022-06-13",
"type": "墙板",
"type": "wallboard",
"startDate": "2022-06-13" "startDate": "2022-06-13"
}, },
{ {
"process": 0.0000, "process": 0.0000,
"planNo": "WP2022061301", "planNo": "WP2022061301",
"endDate": "2022-06-13", "endDate": "2022-06-13",
"type": "墙板",
"type": "wallboard",
"startDate": "2022-06-13" "startDate": "2022-06-13"
}, },
{ {
"process": 0.0000, "process": 0.0000,
"planNo": "WP2022061301", "planNo": "WP2022061301",
"endDate": "2022-06-13", "endDate": "2022-06-13",
"type": "墙板",
"type": "wallboard",
"startDate": "2022-06-13" "startDate": "2022-06-13"
} }
], ],
@ -178,7 +178,11 @@
// 稿750rpx // 稿750rpx
const designWidth = 750; const designWidth = 750;
// px // px
const screenWidth = systemInfo.screenWidth;
let screenWidth = systemInfo.screenWidth;
//960screenWidth
if(screenWidth > 960){
screenWidth = 375
}
// 1rpxpx // 1rpxpx
const rpxToPx = screenWidth / (designWidth / rpx); const rpxToPx = screenWidth / (designWidth / rpx);
console.log(rpxToPx); console.log(rpxToPx);


Loading…
Cancel
Save