|
|
@@ -0,0 +1,68 @@
|
|
|
+import { RouterPage, YTHeader, YTRequest, yTRouter } from 'basic'
|
|
|
+import { buttonComp } from '../components/BuilderIndex'
|
|
|
+import { CustomTextStyle } from '../style/CustomTextStyle'
|
|
|
+
|
|
|
+@ComponentV2
|
|
|
+@RouterPage
|
|
|
+struct BorrowAnsPage {
|
|
|
+ @Local ans: boolean = true
|
|
|
+
|
|
|
+
|
|
|
+ onBackPress_(): boolean {
|
|
|
+ yTRouter.clear()
|
|
|
+ return true
|
|
|
+ }
|
|
|
+
|
|
|
+ build() {
|
|
|
+ NavDestination() {
|
|
|
+ Column() {
|
|
|
+ YTHeader({defaultStyle:{title: '借阅结果'}})
|
|
|
+
|
|
|
+ Column({space: 20}){
|
|
|
+
|
|
|
+ Image(this.ans ? $r('[basic].media.png_Borrow_success') : $r('[basic].media.png_Borrow_fail'))
|
|
|
+ .width(200).height(192)
|
|
|
+
|
|
|
+ Text(this.ans ? '借阅成功!' : '借阅失败!')
|
|
|
+ .attributeModifier(new CustomTextStyle({size: 16, weight: 500}))
|
|
|
+
|
|
|
+ Text(this.ans ? '您可以再我的订单中查看借阅进程' : '您可以再我的订单中重新发起支付,完成借阅')
|
|
|
+ .attributeModifier(new CustomTextStyle({size: 16, weight: 500, color: '#80000000'}))
|
|
|
+
|
|
|
+
|
|
|
+ Row({space: 18}){
|
|
|
+ Row(){
|
|
|
+ Text('返回首页')
|
|
|
+ .attributeModifier(new CustomTextStyle({size: 18, weight: 400, color: '#FFFECF2F'}))
|
|
|
+ }
|
|
|
+ .width(143)
|
|
|
+ .borderRadius(24.5)
|
|
|
+ .backgroundColor(Color.White)
|
|
|
+ .justifyContent(FlexAlign.Center)
|
|
|
+ .border({width: 2, color: '#FFFECF2F'})
|
|
|
+ .padding({top: 10, bottom: 10})
|
|
|
+ .onClick(() => {
|
|
|
+ this.onBackPress_()
|
|
|
+ })
|
|
|
+
|
|
|
+ buttonComp(
|
|
|
+ '查看订单详情', 143, 10,
|
|
|
+ new CustomTextStyle({size: 18, weight: 400}),
|
|
|
+ () => {}
|
|
|
+ )
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .width('100%')
|
|
|
+ .layoutWeight(1)
|
|
|
+ .alignItems(HorizontalAlign.Center)
|
|
|
+ .justifyContent(FlexAlign.Center)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .hideTitleBar(true)
|
|
|
+ .onBackPressed(() => { return this.onBackPress_() })
|
|
|
+ }
|
|
|
+}
|
|
|
+@Builder
|
|
|
+function BorrowAnsBuilder() {
|
|
|
+ BorrowAnsPage()
|
|
|
+}
|