单机模式优化
| @ -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) | ||||
|  | ||||
| @ -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' | ||||
|  | ||||
| Before Width: | Height: | Size: 726 KiB After Width: | Height: | Size: 726 KiB | 
| Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 52 KiB | 
| Before Width: | Height: | Size: 43 KiB After Width: | Height: | Size: 43 KiB | 
| Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 46 KiB | 
| Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 45 KiB |