|
@@ -1,4 +1,4 @@
|
|
|
-import { DiaLogSheetControl, YTAvoid } from 'basic';
|
|
|
|
|
|
|
+import { DiaLogSheetControl, YTAvoid, yTRouter } from 'basic';
|
|
|
import { CustomTextStyle } from '../style/CustomTextStyle';
|
|
import { CustomTextStyle } from '../style/CustomTextStyle';
|
|
|
import { AddressItemComp } from './AddressItemComp';
|
|
import { AddressItemComp } from './AddressItemComp';
|
|
|
import { buttonComp } from './BuilderIndex';
|
|
import { buttonComp } from './BuilderIndex';
|
|
@@ -12,6 +12,11 @@ export struct AddressComp{
|
|
|
@Local safeBottom: number = AppStorage.get(YTAvoid.SAFE_BOTTOM_KEY) as number
|
|
@Local safeBottom: number = AppStorage.get(YTAvoid.SAFE_BOTTOM_KEY) as number
|
|
|
@Local selectIndex: number = 0
|
|
@Local selectIndex: number = 0
|
|
|
|
|
|
|
|
|
|
+ // 前往添加地址页面
|
|
|
|
|
+ IncreaseAddressPage(){
|
|
|
|
|
+ yTRouter.router2IncreaseAddressPage()
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
build() {
|
|
build() {
|
|
|
Column(){
|
|
Column(){
|
|
|
Row(){
|
|
Row(){
|
|
@@ -20,7 +25,7 @@ export struct AddressComp{
|
|
|
.fontWeight(500)
|
|
.fontWeight(500)
|
|
|
.fontColor('#FF000000')
|
|
.fontColor('#FF000000')
|
|
|
|
|
|
|
|
- Image($r('[basic].media.icon_close'))
|
|
|
|
|
|
|
+ Image($r('[basic].media.ksad_icon_close'))
|
|
|
.width(22).aspectRatio(1)
|
|
.width(22).aspectRatio(1)
|
|
|
.onClick(() => { this.control._onBackPress() })
|
|
.onClick(() => { this.control._onBackPress() })
|
|
|
}.width('100%')
|
|
}.width('100%')
|
|
@@ -43,7 +48,7 @@ export struct AddressComp{
|
|
|
'100%',
|
|
'100%',
|
|
|
10,
|
|
10,
|
|
|
new CustomTextStyle({size: 18, weight: 400}),
|
|
new CustomTextStyle({size: 18, weight: 400}),
|
|
|
- () => {}
|
|
|
|
|
|
|
+ () => { this.IncreaseAddressPage() }
|
|
|
)
|
|
)
|
|
|
}.width('100%')
|
|
}.width('100%')
|
|
|
.backgroundColor(Color.White)
|
|
.backgroundColor(Color.White)
|