Parcourir la source

feat: 新增多个跳转逻辑

YuJing il y a 1 mois
Parent
commit
f5d2605968

+ 3 - 0
features/feature/src/main/ets/components/BookItemComp.ets

@@ -75,6 +75,9 @@ export struct BookItemComp {
   .padding({right: 19, bottom: 15, top: 2})
   .backgroundImageSize({width: '100%', height: '100%'})
   .backgroundImage($r('[basic].media.png_book_CompCover'))
+  .onClick(() => {
+    this.router2DetailPage()
+  })
 }
 
   // 书籍Item - 列表模式

+ 1 - 1
features/feature/src/main/ets/pages/Address/AddressManagementPage.ets

@@ -10,7 +10,7 @@ struct AddressManagementPage {
   @Local safeBottom: number = AppStorage.get(YTAvoid.SAFE_BOTTOM_KEY) as number
 
   editAddress(index?: number){
-    if(index){
+    if(index != undefined){
       yTRouter.router2IncreaseAddressPage(AddressAddPageState.EDIT)
     } else {
       yTRouter.router2IncreaseAddressPage(AddressAddPageState.ADD)

+ 3 - 0
features/feature/src/main/ets/view/MainView.ets

@@ -106,6 +106,9 @@ export struct MainView {
 
                   Text('查看更多>>')
                     .attributeModifier(new CustomTextStyle({size: 12, weight: 600, color: '#807A66'}))
+                    .onClick(() => {
+                      yTRouter.changeIndex(1)
+                    })
                 }
                 .width("100%")
                 .justifyContent(FlexAlign.Start)