|
@@ -1,4 +1,5 @@
|
|
|
-import { RouterPage, YTAvoid, YTHeader, YTRequest, yTRouter } from 'basic'
|
|
|
|
|
|
|
+import { DiaLogSheetControl, RouterPage, YTAvoid, YTHeader, yTRouter } from 'basic'
|
|
|
|
|
+import { AddressComp } from '../components/AddressComp'
|
|
|
import { buttonComp } from '../components/BuilderIndex'
|
|
import { buttonComp } from '../components/BuilderIndex'
|
|
|
import { CustomTextStyle } from '../style/CustomTextStyle'
|
|
import { CustomTextStyle } from '../style/CustomTextStyle'
|
|
|
|
|
|
|
@@ -7,6 +8,15 @@ import { CustomTextStyle } from '../style/CustomTextStyle'
|
|
|
struct OrderDetailPage {
|
|
struct OrderDetailPage {
|
|
|
safeBottom: number = AppStorage.get(YTAvoid.SAFE_BOTTOM_KEY) as number
|
|
safeBottom: number = AppStorage.get(YTAvoid.SAFE_BOTTOM_KEY) as number
|
|
|
|
|
|
|
|
|
|
+ // 打开选择地址弹窗
|
|
|
|
|
+ openAddressDialog() {
|
|
|
|
|
+ let control: DiaLogSheetControl = new DiaLogSheetControl(this.getUIContext())
|
|
|
|
|
+ yTRouter.router2BottomDialog({
|
|
|
|
|
+ control: control,
|
|
|
|
|
+ builder: () => { this.AddressSelection(control) },
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
build() {
|
|
build() {
|
|
|
NavDestination() {
|
|
NavDestination() {
|
|
|
Column() {
|
|
Column() {
|
|
@@ -42,7 +52,9 @@ struct OrderDetailPage {
|
|
|
.padding({left: 16, right: 16, top: 18, bottom: 18})
|
|
.padding({left: 16, right: 16, top: 18, bottom: 18})
|
|
|
}
|
|
}
|
|
|
.borderRadius(8)
|
|
.borderRadius(8)
|
|
|
|
|
+ .border({width: 2})
|
|
|
.backgroundColor(Color.White)
|
|
.backgroundColor(Color.White)
|
|
|
|
|
+ .onClick(() => { this.openAddressDialog() })
|
|
|
|
|
|
|
|
// 租借的图书
|
|
// 租借的图书
|
|
|
ListItem(){
|
|
ListItem(){
|
|
@@ -74,6 +86,7 @@ struct OrderDetailPage {
|
|
|
.padding({left: 16, right: 16, top: 9, bottom: 9})
|
|
.padding({left: 16, right: 16, top: 9, bottom: 9})
|
|
|
}
|
|
}
|
|
|
.borderRadius(8)
|
|
.borderRadius(8)
|
|
|
|
|
+ .border({width: 2})
|
|
|
.backgroundColor(Color.White)
|
|
.backgroundColor(Color.White)
|
|
|
|
|
|
|
|
// 订单信息
|
|
// 订单信息
|
|
@@ -102,6 +115,7 @@ struct OrderDetailPage {
|
|
|
.padding({left: 16, right: 16, top: 13, bottom: 13})
|
|
.padding({left: 16, right: 16, top: 13, bottom: 13})
|
|
|
}
|
|
}
|
|
|
.borderRadius(8)
|
|
.borderRadius(8)
|
|
|
|
|
+ .border({width: 2})
|
|
|
.backgroundColor(Color.White)
|
|
.backgroundColor(Color.White)
|
|
|
|
|
|
|
|
// 备注
|
|
// 备注
|
|
@@ -121,6 +135,7 @@ struct OrderDetailPage {
|
|
|
.padding(16)
|
|
.padding(16)
|
|
|
}
|
|
}
|
|
|
.borderRadius(8)
|
|
.borderRadius(8)
|
|
|
|
|
+ .border({width: 2})
|
|
|
.backgroundColor(Color.White)
|
|
.backgroundColor(Color.White)
|
|
|
}.width('100%').height('100%')
|
|
}.width('100%').height('100%')
|
|
|
.scrollBar(BarState.Off)
|
|
.scrollBar(BarState.Off)
|
|
@@ -142,6 +157,7 @@ struct OrderDetailPage {
|
|
|
.backgroundColor(Color.White)
|
|
.backgroundColor(Color.White)
|
|
|
.alignItems(VerticalAlign.Center)
|
|
.alignItems(VerticalAlign.Center)
|
|
|
.justifyContent(FlexAlign.SpaceBetween)
|
|
.justifyContent(FlexAlign.SpaceBetween)
|
|
|
|
|
+ .shadow({radius: 5, offsetY: 5})
|
|
|
.padding({bottom: this.safeBottom, top: 10, left: 15, right: 15})
|
|
.padding({bottom: this.safeBottom, top: 10, left: 15, right: 15})
|
|
|
}
|
|
}
|
|
|
.width('100%')
|
|
.width('100%')
|
|
@@ -150,9 +166,14 @@ struct OrderDetailPage {
|
|
|
}
|
|
}
|
|
|
.hideTitleBar(true)
|
|
.hideTitleBar(true)
|
|
|
}
|
|
}
|
|
|
-}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ @Builder
|
|
|
|
|
+ AddressSelection(control: DiaLogSheetControl) {
|
|
|
|
|
+ AddressComp({control: control})
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
@Builder
|
|
@Builder
|
|
|
function OrderDetailBuilder() {
|
|
function OrderDetailBuilder() {
|
|
|
OrderDetailPage()
|
|
OrderDetailPage()
|