单机模式优化

This commit is contained in:
lixiao 2025-05-14 12:09:31 +08:00
parent 42b8c7f452
commit c6bffaaf6f
7 changed files with 6 additions and 6 deletions

View File

@ -1262,22 +1262,22 @@ struct UserInfo {
Column() {
if (globalThis.singlePlay) {
imageBtn({ btnWidth: 220 * this.ratio, btnHeight: 69 * this.ratio, imgSrc: $r('app.media.满分学习_nor') })
imageBtn({ btnWidth: 220 * this.ratio, btnHeight: 69 * this.ratio, imgSrc: $r("app.media.learn_nor") })
.margin({ bottom: 12 * this.ratio })
.onClick(async () => {
await this.prePareExam(5)
})
imageBtn({ btnWidth: 220 * this.ratio, btnHeight: 69 * this.ratio, imgSrc: $r('app.media.增驾_nor') })
imageBtn({ btnWidth: 220 * this.ratio, btnHeight: 69 * this.ratio, imgSrc: $r("app.media.zeng_nor") })
.margin({ bottom: 12 * this.ratio })
.onClick(async () => {
await this.prePareExam(3)
})
imageBtn({ btnWidth: 220 * this.ratio, btnHeight: 69 * this.ratio, imgSrc: $r('app.media.夜考_nor') })
imageBtn({ btnWidth: 220 * this.ratio, btnHeight: 69 * this.ratio, imgSrc: $r("app.media.night_nor") })
.margin({ bottom: 12 * this.ratio })
.onClick(async () => {
await this.prePareExam(2)
})
imageBtn({ btnWidth: 220 * this.ratio, btnHeight: 69 * this.ratio, imgSrc: $r('app.media.白考_nor') })
imageBtn({ btnWidth: 220 * this.ratio, btnHeight: 69 * this.ratio, imgSrc: $r("app.media.light_nor") })
.margin({ bottom: 12 * this.ratio })
.onClick(async () => {
await this.prePareExam(1)

View File

@ -48,8 +48,8 @@ struct Index {
Column() {
Row() {
imageBtn({ btnWidth: '28%', btnHeight: '71%', imgSrc: $r('app.media.A1-xz') })
.margin({ right: 80 * globalThis.ratio }).onClick(async () => {
imageBtn({ btnWidth: '28%', btnHeight: '71%', imgSrc: $r("app.media.A1_xz") })
.margin({ left: 80 * globalThis.ratio }).onClick(async () => {
globalThis.isA1 = true
router.pushUrl({
url: 'pages/Index'

View File

Before

Width:  |  Height:  |  Size: 726 KiB

After

Width:  |  Height:  |  Size: 726 KiB

View File

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 52 KiB

View File

Before

Width:  |  Height:  |  Size: 43 KiB

After

Width:  |  Height:  |  Size: 43 KiB

View File

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 46 KiB

View File

Before

Width:  |  Height:  |  Size: 45 KiB

After

Width:  |  Height:  |  Size: 45 KiB