|
|
@@ -1,5 +1,5 @@
|
|
|
import {
|
|
|
- BasicType, ContextHelper, TkBannerAdComp, TkStartAdComp, YTAvoid, yTRouter
|
|
|
+ BasicType, ContextHelper, TkBannerAdComp, TkStartAdComp, userInfo, YTAvoid, yTRouter
|
|
|
} from 'basic';
|
|
|
import { Mine } from 'user/src/main/ets/views/Mine';
|
|
|
import { MainView, SecondView, ThirdView } from 'feature';
|
|
|
@@ -33,7 +33,6 @@ struct Index {
|
|
|
}
|
|
|
]
|
|
|
|
|
|
-
|
|
|
tabsController: TabsController = yTRouter.getTabControl()
|
|
|
|
|
|
aboutToAppear(): void {
|
|
|
@@ -80,7 +79,6 @@ struct Index {
|
|
|
.justifyContent(FlexAlign.SpaceAround)
|
|
|
.width('100%')
|
|
|
.padding({ bottom: this.bottom })
|
|
|
- // .shadow({ offsetY: -13, radius: 16, color: '#0A000000' })
|
|
|
.border({width: { top: 1 }, color: '#E2E2E2'})
|
|
|
}
|
|
|
.width('100%')
|
|
|
@@ -111,6 +109,11 @@ struct Index {
|
|
|
}
|
|
|
.margin({ top: 18 })
|
|
|
.onClick(() => {
|
|
|
+ if (item.index == 2 && !userInfo.checkLogin()) {
|
|
|
+ yTRouter.router2LoginPage(true)
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
this.currentIndex = item.index!
|
|
|
this.tabsController.changeIndex(this.currentIndex)
|
|
|
})
|