diff --git a/entry/src/main/ets/pages/Question1Correct.ets b/entry/src/main/ets/pages/Question1Correct.ets index db2c40371e39282223a6b0a756cc654d5def8edf..dd8a97a638fcede6ecc3c20e58d65dc51bd32330 100644 --- a/entry/src/main/ets/pages/Question1Correct.ets +++ b/entry/src/main/ets/pages/Question1Correct.ets @@ -17,7 +17,7 @@ export function Question1CorrectBuilder() { Question1Correct() } - +// [Start Question1_correct ] @Component export struct Question1Correct { build() { @@ -39,15 +39,20 @@ export struct Question1Correct { .backgroundColor(Color.Orange) } } + // [StartExclude Question1_correct ] .padding({ left: 16, right: 16 }) + // [EndExclude Question1_correct ] } + // [StartExclude Question1_correct ] .hideTitleBar(true) .padding({ top: AppStorage.get('statusBarHeight') ?? 0, bottom: (AppStorage.get('naviIndicatorHeight') ?? 0) + 16 }) + // [EndExclude Question1_correct ] } -} \ No newline at end of file +} +// [End Question1_correct ] \ No newline at end of file diff --git a/entry/src/main/ets/pages/Question1Incorrect.ets b/entry/src/main/ets/pages/Question1Incorrect.ets index 3c0e3f69849037447e69159184dd107d4bfa7511..421c1110b7251f1a5dfbb03e27087eb81158428d 100644 --- a/entry/src/main/ets/pages/Question1Incorrect.ets +++ b/entry/src/main/ets/pages/Question1Incorrect.ets @@ -18,6 +18,7 @@ export function Question1IncorrectBuilder() { Question1Incorrect() } +// [Start Question1_incorrect] @Component export struct Question1Incorrect { build() { @@ -37,17 +38,22 @@ export struct Question1Incorrect { .height(350) .backgroundColor(Color.Orange) } + // [StartExclude Question1_incorrect] .height('100%') .width('100%') .padding({ left: 16, right: 16 }) + // [EndExclude Question1_incorrect] } + // [StartExclude Question1_incorrect] .hideTitleBar(true) .padding({ top: AppStorage.get('statusBarHeight') ?? 0, bottom:( AppStorage.get('naviIndicatorHeight') ?? 0) + 16 }) + // [EndExclude Question1_incorrect] } -} \ No newline at end of file +} +// [End Question1_incorrect] \ No newline at end of file diff --git a/entry/src/main/ets/pages/Question2Correct.ets b/entry/src/main/ets/pages/Question2Correct.ets index 0b37820ceffd1b2bb80c929494133500c32193a9..a5e28596563b1f57d7b02a448092107b8342f631 100644 --- a/entry/src/main/ets/pages/Question2Correct.ets +++ b/entry/src/main/ets/pages/Question2Correct.ets @@ -20,20 +20,24 @@ export function Question2CorrectBuilder() { Question2Correct() } +// [Start Question2_correct] @Component export struct Question2Correct { @State aspect: number = 9 / 16; // default video width/height ratio value + // [StartExclude Question2_correct] private xComponentController: XComponentController = new XComponentController(); private player?: AVPlayerUtil; aboutToDisappear(): void { this.player?.stopPlay(); } + // [EndExclude Question2_correct] build() { NavDestination() { Stack() { XComponent({ id: 'video_player_id', type: XComponentType.SURFACE, controller: this.xComponentController }) + // [StartExclude Question2_correct] .onLoad(() => { this.player = new AVPlayerUtil(); this.player.setSurfaceId(this.xComponentController.getXComponentSurfaceId()); @@ -41,12 +45,16 @@ export struct Question2Correct { this.aspect = aspect; }); }) + // [EndExclude Question2_correct] .aspectRatio(this.aspect) } .width('100%') .height('100%') .backgroundColor(Color.Black) } + // [StartExclude Question2_correct] .hideTitleBar(true) + // [EndExclude Question2_correct] } -} \ No newline at end of file +} +// [End Question2_correct] \ No newline at end of file diff --git a/entry/src/main/ets/pages/Question2Incorrect.ets b/entry/src/main/ets/pages/Question2Incorrect.ets index aab7594366fce99ffe8e620cd5dd550b8be4a6d3..45e2c1d87643bbb4be8fa7d6f0c23449f98973fb 100644 --- a/entry/src/main/ets/pages/Question2Incorrect.ets +++ b/entry/src/main/ets/pages/Question2Incorrect.ets @@ -20,23 +20,26 @@ import { AVPlayerUtil } from '../common/AVPlayerUtil'; export function Question2IncorrectBuilder() { Question2Incorrect() } - +// [Start Question2_incorrect] @Component export struct Question2Incorrect { @State aspect: number = 9 / 16; // default video height/width ratio value @State xComponentWidth: number = px2vp(display.getDefaultDisplaySync().width); @State xComponentHeight: number = px2vp(display.getDefaultDisplaySync().width * this.aspect); + // [StartExclude Question2_incorrect] private xComponentController: XComponentController = new XComponentController(); private player?: AVPlayerUtil; aboutToDisappear(): void { this.player?.stopPlay(); } + // [EndExclude Question2_incorrect] build() { NavDestination() { Stack() { XComponent({ id: 'video_player_id', type: XComponentType.SURFACE, controller: this.xComponentController }) + // [StartExclude Question2_incorrect] .onLoad(() => { this.player = new AVPlayerUtil(); this.player.setSurfaceId(this.xComponentController.getXComponentSurfaceId()); @@ -46,6 +49,7 @@ export struct Question2Incorrect { this.xComponentWidth = px2vp(display.getDefaultDisplaySync().height * aspect); }); }) + // [EndExclude Question2_incorrect] .width(this.xComponentWidth) .height(this.xComponentHeight) } @@ -55,4 +59,5 @@ export struct Question2Incorrect { } .hideTitleBar(true) } -} \ No newline at end of file +} +// [End Question2_incorrect] \ No newline at end of file diff --git a/entry/src/main/ets/pages/Question3Correct.ets b/entry/src/main/ets/pages/Question3Correct.ets index bb8072199302d22fc2e250ec2c1b7bc6441a1697..27c3bc666852320b4bafb2fffa900a92e2b56d06 100644 --- a/entry/src/main/ets/pages/Question3Correct.ets +++ b/entry/src/main/ets/pages/Question3Correct.ets @@ -18,21 +18,25 @@ export function Question3CorrectBuilder() { Question3Correct() } +// [Start Question3_correct] @Component export struct Question3Correct { build() { NavDestination() { Column() { Video({ src: $rawfile('testVideo2.mp4') }) + // [StartExclude Question3_correct] .height('100%') .width('100%') .autoPlay(true) - .objectFit(ImageFit.Contain) .controls(false) + // [EndExclude Question3_correct] + .objectFit(ImageFit.Contain) } .height('100%') .width('100%') } .hideTitleBar(true) } -} \ No newline at end of file +} +// [End Question3_correct] \ No newline at end of file diff --git a/entry/src/main/ets/pages/Question3Incorrect.ets b/entry/src/main/ets/pages/Question3Incorrect.ets index bfe6cdf1c419b9b19e9266a38f4f88952d52d83e..84604094f39531692350c1730ebe1aad73a78408 100644 --- a/entry/src/main/ets/pages/Question3Incorrect.ets +++ b/entry/src/main/ets/pages/Question3Incorrect.ets @@ -17,7 +17,7 @@ export function Question3IncorrectBuilder() { Question3Incorrect() } - +// [Start Question3_incorrect] @Component export struct Question3Incorrect { build() { @@ -34,4 +34,5 @@ export struct Question3Incorrect { } .hideTitleBar(true) } -} \ No newline at end of file +} +// [End Question3_incorrect] \ No newline at end of file diff --git a/entry/src/main/ets/pages/Question4Correct.ets b/entry/src/main/ets/pages/Question4Correct.ets index b5aa92da1acbf4a10a6e2990abee297c969e6261..1cca5d65b10482b505c4aaa13e015203533158ea 100644 --- a/entry/src/main/ets/pages/Question4Correct.ets +++ b/entry/src/main/ets/pages/Question4Correct.ets @@ -22,35 +22,42 @@ export function Question4CorrectBuilder() { @Component export struct Question4Correct { + // [Start Question4_correct_custom_dialog_comp] @Builder customDialogComp() { Column() { Text('Top') + // [StartExclude Question4_correct_custom_dialog_comp] .height(60) .width('100%') .textAlign(TextAlign.Center) .fontSize(24) .fontWeight(FontWeight.Bold) .backgroundColor('#2887DA') + // [EndExclude Question4_correct_custom_dialog_comp] Scroll() { Text('Middle') + // [StartExclude Question4_correct_custom_dialog_comp] .height('100%') .width('100%') .textAlign(TextAlign.Center) .fontSize(24) .fontWeight(FontWeight.Bold) .backgroundColor('#18A98D') + // [EndExclude Question4_correct_custom_dialog_comp] } .layoutWeight(1) Text('Bottom') + // [StartExclude Question4_correct_custom_dialog_comp] .height(60) .width('100%') .textAlign(TextAlign.Center) .fontSize(24) .fontWeight(FontWeight.Bold) .backgroundColor('#F69C00') + // [EndExclude Question4_correct_custom_dialog_comp] } .height(500) .justifyContent(FlexAlign.SpaceBetween) @@ -58,6 +65,7 @@ export struct Question4Correct { maxHeight: '90%' }) } + // [End Question4_correct_custom_dialog_comp] build() { NavDestination() { diff --git a/entry/src/main/ets/pages/Question4Incorrect.ets b/entry/src/main/ets/pages/Question4Incorrect.ets index 0cc00d476eb83260bfc895fab071862361af1144..be7591b5411bad5189c1946a3b60844804050c09 100644 --- a/entry/src/main/ets/pages/Question4Incorrect.ets +++ b/entry/src/main/ets/pages/Question4Incorrect.ets @@ -19,44 +19,52 @@ import { promptAction } from '@kit.ArkUI'; export function Question4IncorrectBuilder() { Question4Incorrect() } - +// [Start Question4_Incorrect] @Component export struct Question4Incorrect { + @Builder customDialogComp() { Column() { Text('Top') + // [StartExclude Question4_Incorrect] .height(60) .width('100%') .textAlign(TextAlign.Center) .fontSize(24) .fontWeight(FontWeight.Bold) .backgroundColor('#2887DA') + // [EndExclude Question4_Incorrect] Scroll() { Text('Middle') + // [StartExclude Question4_Incorrect] .height('100%') .width('100%') .textAlign(TextAlign.Center) .fontSize(24) .fontWeight(FontWeight.Bold) .backgroundColor('#18A98D') + // [EndExclude Question4_Incorrect] } .layoutWeight(1) Text('Bottom') + // [StartExclude Question4_Incorrect] .height(60) .width('100%') .textAlign(TextAlign.Center) .fontSize(24) .fontWeight(FontWeight.Bold) .backgroundColor('#F69C00') + // [EndExclude Question4_Incorrect] } .height(500) .justifyContent(FlexAlign.SpaceBetween) } build() { + // [StartExclude Question4_Incorrect] NavDestination() { Column() { Button('Show Dialog') @@ -83,5 +91,7 @@ export struct Question4Incorrect { top: AppStorage.get('statusBarHeight') ?? 0, bottom: (AppStorage.get('naviIndicatorHeight') ?? 0) + 16 }) + // [EndExclude Question4_Incorrect] } -} \ No newline at end of file +} +// [End Question4_Incorrect] \ No newline at end of file diff --git a/entry/src/main/ets/pages/Question5Correct.ets b/entry/src/main/ets/pages/Question5Correct.ets index 63dcbe86f9f9671e63469d5a80b4d9d9292f23df..72b8321d67312056ea75ceec4e7154e43b048e6b 100644 --- a/entry/src/main/ets/pages/Question5Correct.ets +++ b/entry/src/main/ets/pages/Question5Correct.ets @@ -18,69 +18,89 @@ export function Question5CorrectBuilder() { Question5Correct() } +// [Start Question5_correct] @Component export struct Question5Correct { build() { NavDestination() { Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center }) { - Text($r('app.string.login_page')) + Text("Login Page") + // [StartExclude Question5_correct] .fontSize(24) .fontWeight(FontWeight.Medium) .fontColor($r('sys.color.font_primary')) + // [EndExclude Question5_correct] .displayPriority(4) - Text($r('app.string.login_more')) + Text("Login in to access more services") + // [StartExclude Question5_correct] .fontSize(16) .fontColor($r('sys.color.font_secondary')) + // [EndExclude Question5_correct] .displayPriority(3) Image($r('app.media.login_pic')) + // [StartExclude Question5_correct] .width(200) .height(200) .margin({ bottom: 12, top: 35 }) + // [EndExclude Question5_correct] .displayPriority(2) Column() { - TextInput({ placeholder: $r('app.string.account') }) + TextInput({ placeholder: "Account" }) + // [StartExclude Question5_correct] .maxLength(11) .type(InputType.Number) .inputStyle() + // [EndExclude Question5_correct] - TextInput({ placeholder: $r('app.string.password') }) + TextInput({ placeholder: "Password" }) + // [StartExclude Question5_correct] .maxLength(8) .type(InputType.Password) .inputStyle() + // [EndExclude Question5_correct] } + // [StartExclude Question5_correct] .margin({ top: 16 }) .borderRadius(24) + // [EndExclude Question5_correct] .displayPriority(5) - + // [StartExclude Question5_correct] Blank() .height(24) .displayPriority(3) - + // [EndExclude Question5_correct] Button($r('app.string.login')) + // [StartExclude Question5_correct] .width('100%') .height(40) .fontSize(16) .fontWeight(FontWeight.Medium) .backgroundColor($r('sys.color.brand')) .margin({ bottom: 12, top: 16 }) + // [EndExclude Question5_correct] .displayPriority(5) } + // [StartExclude Question5_correct] .height('100%') .width('100%') .align(Alignment.Center) .padding(12) + // [EndExclude Question5_correct] } + // [StartExclude Question5_correct] .hideTitleBar(true) .backgroundColor('#F1F3F5') .padding({ top: AppStorage.get('statusBarHeight') ?? 0 }) + // [EndExclude Question5_correct] } } +// [End Question5_correct] @Extend(TextInput) function inputStyle() { diff --git a/entry/src/main/ets/pages/Question5Incorrect.ets b/entry/src/main/ets/pages/Question5Incorrect.ets index 0dcc30b21ab307010bac4ad9979a520e04cdb556..b61fb573b4687683fec0fa17a5f095105b1ef2ee 100644 --- a/entry/src/main/ets/pages/Question5Incorrect.ets +++ b/entry/src/main/ets/pages/Question5Incorrect.ets @@ -18,30 +18,38 @@ export function Question5IncorrectBuilder() { Question5Incorrect() } +// [Start Question5_incorrect] @Component export struct Question5Incorrect { build() { NavDestination() { Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center }) { - Text($r('app.string.login_page')) + Text("Login Page") + // [StartExclude Question5_incorrect] .fontSize(24) .fontWeight(FontWeight.Medium) .fontColor($r('sys.color.font_primary')) .margin({ top: 30 }) - Text($r('app.string.login_more')) + // [EndExclude Question5_incorrect] + Text("Login in to access more services") + // [StartExclude Question5_incorrect] .fontSize(16) .fontColor($r('sys.color.font_secondary')) + // [EndExclude Question5_incorrect] Image($r('app.media.login_pic')) + // [StartExclude Question5_incorrect] .width(200) .height(200) .margin({ bottom: 12, top: 35 }) + // [EndExclude Question5_incorrect] Column() { - TextInput({ placeholder: $r('app.string.account') }) + TextInput({ placeholder: "Account" }) + // [StartExclude Question5_incorrect] .maxLength(11) .type(InputType.Number) .inputStyle() @@ -54,33 +62,45 @@ export struct Question5Incorrect { right: 12 }) .backgroundColor('#0D182431') + // [EndExclude Question5_incorrect] - TextInput({ placeholder: $r('app.string.password') }) + TextInput({ placeholder:"Password" }) + // [StartExclude Question5_incorrect] .maxLength(8) .type(InputType.Password) .inputStyle() + // [EndExclude Question5_incorrect] } + // [StartExclude Question5_incorrect] .margin({ top: 16 }) .borderRadius(24) + // [EndExclude Question5_incorrect] Button($r('app.string.login')) + // [StartExclude Question5_incorrect] .width('100%') .height(40) .fontSize(16) .fontWeight(FontWeight.Medium) .backgroundColor($r('sys.color.brand')) .margin({ bottom: 12, top: 36 }) + // [EndExclude Question5_incorrect] } + // [StartExclude Question5_incorrect] .height('100%') .width('100%') .align(Alignment.Center) .padding(12) + // [EndExclude Question5_incorrect] } + // [StartExclude Question5_incorrect] .hideTitleBar(true) .backgroundColor('#F1F3F5') .padding({ top: AppStorage.get('statusBarHeight') ?? 0 }) + // [EndExclude Question5_incorrect] } } +// [End Question5_incorrect] @Extend(TextInput) function inputStyle() { diff --git a/entry/src/main/ets/pages/Question6Correct.ets b/entry/src/main/ets/pages/Question6Correct.ets index db65921cae135a169fa64aec6c7dec75f2dffa59..1358e5b458b23a95c5d3f284021d05bbeddea523 100644 --- a/entry/src/main/ets/pages/Question6Correct.ets +++ b/entry/src/main/ets/pages/Question6Correct.ets @@ -18,38 +18,47 @@ export function Question6CorrectBuilder() { Question6Correct() } +// [Start Custom_dialog_comp] @CustomDialog struct CustomDialogComp { controller: CustomDialogController = new CustomDialogController({ 'builder': '' }); build() { Column() { - Text($r('app.string.welcome')) + Text("Welcome to My App") + // [StartExclude Custom_dialog_comp] .fontColor($r('sys.color.font_primary')) .height(56) .fontSize(20) .textAlign(TextAlign.Center) .fontWeight(700) + // [EndExclude Custom_dialog_comp] Column() { Scroll() { - Text($r('app.string.dialog_content')) + Text("This is a user notice,This is a user notice,This is a user notice,This is a user notice,This is a user notice,This is a user notice,This is a user notice,This is a user notice,This is a user notice,This is a user notice") + // [StartExclude Custom_dialog_comp] .fontSize(18) .lineHeight(25) .width('100%') + // [EndExclude Custom_dialog_comp] } } .layoutWeight(1) Row({ space: 12 }) { - Button($r('app.string.disagree')) + Button("Disagree") + // [StartExclude Custom_dialog_comp] .backgroundColor('rgba(0,0,0,0.05)') .fontColor('#0A59F7') .layoutWeight(1) .height(40) - Button($r('app.string.agree')) + // [EndExclude Custom_dialog_comp] + Button("Agree") + // [StartExclude Custom_dialog_comp] .layoutWeight(1) .height(40) + // [EndExclude Custom_dialog_comp] } .height(56) .alignItems(VerticalAlign.Top) @@ -58,6 +67,7 @@ struct CustomDialogComp { maxHeight: '80%' }) .height(400) + // [StartExclude Custom_dialog_comp] .width('calc(100% - 32vp)') .padding({ left: 16, @@ -65,8 +75,10 @@ struct CustomDialogComp { }) .borderRadius(24) .backgroundColor(Color.White) + // [EndExclude Custom_dialog_comp] } } +// [End Custom_dialog_comp] @Component export struct Question6Correct { @@ -98,4 +110,4 @@ export struct Question6Correct { bottom: AppStorage.get('naviIndicatorHeight') ?? 0 }) } -} \ No newline at end of file +} diff --git a/entry/src/main/ets/pages/Question6Incorrect.ets b/entry/src/main/ets/pages/Question6Incorrect.ets index c8337e6549bf65a474e8d9cf92b77e8f56324f49..5a92ba1dfb11cc04ceb3bb147b6426b63b92d69b 100644 --- a/entry/src/main/ets/pages/Question6Incorrect.ets +++ b/entry/src/main/ets/pages/Question6Incorrect.ets @@ -18,37 +18,46 @@ export function Question6IncorrectBuilder() { Question6Incorrect() } +// [Start Custom_dialog_comp1] @CustomDialog struct CustomDialogComp1 { controller: CustomDialogController = new CustomDialogController({ 'builder': '' }); build() { Column() { - Text($r('app.string.welcome')) + Text("Welcome to My App") + // [StartExclude Custom_dialog_comp1] .fontColor($r('sys.color.font_primary')) .height(56) .fontSize(20) .textAlign(TextAlign.Center) .fontWeight(700) + // [EndExclude Custom_dialog_comp1] Column() { Scroll() { - Text($r('app.string.dialog_content')) + Text("This is a user notice,This is a user notice,This is a user notice,This is a user notice,This is a user notice,This is a user notice,This is a user notice,This is a user notice,This is a user notice,This is a user notice") + // [StartExclude Custom_dialog_comp1] .fontSize(18) .lineHeight(25) .width('100%') + // [EndExclude Custom_dialog_comp1] } } Row({ space: 12 }) { - Button($r('app.string.disagree')) + Button("Disagree") + // [StartExclude Custom_dialog_comp1] .backgroundColor('rgba(0,0,0,0.05)') .fontColor('#0A59F7') .layoutWeight(1) .height(40) - Button($r('app.string.agree')) + // [EndExclude Custom_dialog_comp1] + Button("Agree") + // [StartExclude Custom_dialog_comp1] .layoutWeight(1) .height(40) + // [EndExclude Custom_dialog_comp1] } .height(56) .alignItems(VerticalAlign.Top) @@ -60,6 +69,7 @@ struct CustomDialogComp1 { .constraintSize({ maxHeight: '90%' }) + // [StartExclude Custom_dialog_comp1] .height(400) .width('calc(100% - 32vp)') .padding({ @@ -68,6 +78,7 @@ struct CustomDialogComp1 { }) .borderRadius(24) .backgroundColor(Color.White) + // [EndExclude Custom_dialog_comp1] } } @@ -101,4 +112,5 @@ export struct Question6Incorrect { bottom: AppStorage.get('naviIndicatorHeight') ?? 0 }) } -} \ No newline at end of file +} +// [End Custom_dialog_comp1] \ No newline at end of file diff --git a/entry/src/main/ets/pages/Question7Correct.ets b/entry/src/main/ets/pages/Question7Correct.ets index 16c2aa075f7a540d4ea3abd067f0524470d2b235..7851ff5f106aca96fd196780c78fe751ed81481e 100644 --- a/entry/src/main/ets/pages/Question7Correct.ets +++ b/entry/src/main/ets/pages/Question7Correct.ets @@ -20,6 +20,7 @@ export function Question7CorrectBuilder() { Question7Correct() } +// [Start Question7_correct] @Component export struct Question7Correct { private windowClass = (getContext(this) as common.UIAbilityContext).windowStage.getMainWindowSync(); @@ -49,6 +50,7 @@ export struct Question7Correct { } build() { + // [StartExclude Question7_correct] NavDestination() { Stack() { Image($r('app.media.game_bg')) @@ -74,5 +76,7 @@ export struct Question7Correct { } } .hideTitleBar(true) + // [EndExclude Question7_correct] } -} \ No newline at end of file +} +// [End Question7_correct] \ No newline at end of file diff --git a/entry/src/main/ets/pages/Question7Incorrect.ets b/entry/src/main/ets/pages/Question7Incorrect.ets index 7ed594ab462c2695d2b81d39942fcfd7e47535e5..51dcd1cb125daa29fc553a59dc36d6e51c5df866 100644 --- a/entry/src/main/ets/pages/Question7Incorrect.ets +++ b/entry/src/main/ets/pages/Question7Incorrect.ets @@ -20,6 +20,7 @@ export function Question7IncorrectBuilder() { Question7Incorrect() } +// [Start Question7_incorrect] @Component export struct Question7Incorrect { private windowClass = (getContext(this) as common.UIAbilityContext).windowStage.getMainWindowSync(); @@ -35,16 +36,20 @@ export struct Question7Incorrect { build() { NavDestination() { Stack() { + // [StartExclude Question7_incorrect] Image($r('app.media.game_bg')) .height('100%') + // [EndExclude Question7_incorrect] Row() { Image($r('app.media.icon_pause')) + // [StartExclude Question7_incorrect] .height(40) .margin({ right: 16, top: 5 }) + // [EndExclude Question7_incorrect] .onClick(() => { promptAction.showToast({ message: 'Action success' @@ -59,4 +64,5 @@ export struct Question7Incorrect { } .hideTitleBar(true) } -} \ No newline at end of file +} +// [End Question7_incorrect] \ No newline at end of file diff --git a/entry/src/main/ets/pages/Question8Correct.ets b/entry/src/main/ets/pages/Question8Correct.ets index c2cbd1f9c58a4eed907866acc9370c52021499f5..0cdccfb91fab705e3cfbade19e5a4244f69ad3e2 100644 --- a/entry/src/main/ets/pages/Question8Correct.ets +++ b/entry/src/main/ets/pages/Question8Correct.ets @@ -20,6 +20,7 @@ export function Question8CorrectBuilder() { Question8Correct() } +// [Start Question8_correct] @Component export struct Question8Correct { private windowClass = (getContext(this) as common.UIAbilityContext).windowStage.getMainWindowSync(); @@ -33,6 +34,7 @@ export struct Question8Correct { } build() { + // [StartExclude Question8_correct] NavDestination() { Column() { Video({ src: $rawfile('testVideo1.mp4') }) @@ -46,5 +48,7 @@ export struct Question8Correct { .width('100%') } .hideTitleBar(true) + // [EndExclude Question8_correct] } -} \ No newline at end of file +} +// [End Question8_correct] \ No newline at end of file diff --git a/entry/src/main/ets/pages/Question8Incorrect.ets b/entry/src/main/ets/pages/Question8Incorrect.ets index 18f53351bf2bd98629d3e2bb8fd8bc1d43d9385b..edf37a000e1a22af08e6759b935d561fb5926ab2 100644 --- a/entry/src/main/ets/pages/Question8Incorrect.ets +++ b/entry/src/main/ets/pages/Question8Incorrect.ets @@ -17,7 +17,7 @@ export function Question8IncorrectBuilder() { Question8Incorrect() } - +// [Start Question8_incorrect] @Component export struct Question8Incorrect { build() { @@ -35,4 +35,5 @@ export struct Question8Incorrect { } .hideTitleBar(true) } -} \ No newline at end of file +} +// [End Question8_incorrect] \ No newline at end of file