|
|
@@ -0,0 +1,119 @@
|
|
|
+import { DiaLogCompControl, YTHeader, YTRequest, yTRouter } from 'basic'
|
|
|
+import { buttonComp } from '../../components/BuilderIndex'
|
|
|
+import { CustomTextStyle } from '../../style/CustomTextStyle'
|
|
|
+
|
|
|
+@ComponentV2
|
|
|
+struct CashPledgePage {
|
|
|
+
|
|
|
+ // 打开弹窗
|
|
|
+ openDiaLog(){
|
|
|
+ let control: DiaLogCompControl = new DiaLogCompControl(this.getUIContext())
|
|
|
+ yTRouter.router2CenterDialog({
|
|
|
+ control: control,
|
|
|
+ builder: () => { this.DiaLog(control) }
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ // 前往缴纳押金页面
|
|
|
+ router2CashPledgeSecond(){
|
|
|
+ yTRouter.router2CashPledgeSecond()
|
|
|
+ }
|
|
|
+
|
|
|
+ // 前往交易记录页面
|
|
|
+ router2CashPledgeRecord(){
|
|
|
+ yTRouter.router2CashPledgeRecord()
|
|
|
+ }
|
|
|
+
|
|
|
+ build() {
|
|
|
+ NavDestination() {
|
|
|
+ Column({space: 12}) {
|
|
|
+ YTHeader({
|
|
|
+ defaultStyle: { title: '租赁押金' },
|
|
|
+ bgc: Color.White
|
|
|
+ })
|
|
|
+
|
|
|
+ Column(){
|
|
|
+ Row(){
|
|
|
+ Text('如何退押金')
|
|
|
+ .attributeModifier(new CustomTextStyle({size: 12, weight: 500, color: '#FECF2F'}))
|
|
|
+ .onClick(() => { this.openDiaLog() })
|
|
|
+
|
|
|
+ Text('交易记录')
|
|
|
+ .attributeModifier(new CustomTextStyle({size: 12, weight: 500, color: '#FECF2F'}))
|
|
|
+ .onClick(() => { this.router2CashPledgeRecord() })
|
|
|
+ }.width('100%')
|
|
|
+ .justifyContent(FlexAlign.SpaceBetween)
|
|
|
+
|
|
|
+ Column(){
|
|
|
+ Text('自用卡')
|
|
|
+ .attributeModifier(new CustomTextStyle({size: 12, weight: 500, color: '#FFFFFF'}))
|
|
|
+
|
|
|
+ Text(`298.00`)
|
|
|
+ .attributeModifier(new CustomTextStyle({size: 28, weight: 500, color: '#FFFFFF'}))
|
|
|
+
|
|
|
+ }.width('100%').height(104)
|
|
|
+ .margin({top: 12})
|
|
|
+ .alignItems(HorizontalAlign.Start)
|
|
|
+ .justifyContent(FlexAlign.SpaceBetween)
|
|
|
+ .backgroundImage($r('[basic].media.png_cashBg'))
|
|
|
+ .padding({left: 15, right: 15, top: 14, bottom: 15})
|
|
|
+ .backgroundImageSize({width: '100%', height: '100%'})
|
|
|
+
|
|
|
+ Row(){
|
|
|
+ Text('自用卡')
|
|
|
+ .attributeModifier(new CustomTextStyle({size: 14, weight: 500, color: '#000000'}))
|
|
|
+
|
|
|
+ Row({space: 10}){
|
|
|
+ Text('去缴纳')
|
|
|
+ .attributeModifier(new CustomTextStyle({size: 14, weight: 500, color: '#C7C7CC'}))
|
|
|
+
|
|
|
+ Image($r('[basic].media.ic_public_arrow_left'))
|
|
|
+ .rotate({angle: 180})
|
|
|
+ .width(5.5)
|
|
|
+ .height(11)
|
|
|
+ .fillColor('#C7C7CC')
|
|
|
+ }
|
|
|
+ }.margin({top: 16}).width('100%')
|
|
|
+ .padding(15)
|
|
|
+ .borderRadius(8)
|
|
|
+ .backgroundColor(Color.White)
|
|
|
+ .justifyContent(FlexAlign.SpaceBetween)
|
|
|
+ .onClick(()=> { this.router2CashPledgeSecond() })
|
|
|
+ }.width('100%')
|
|
|
+ .layoutWeight(1)
|
|
|
+ .justifyContent(FlexAlign.Start)
|
|
|
+ .padding({left: 16, right: 16})
|
|
|
+ }
|
|
|
+ .backgroundColor('#F7F9FA')
|
|
|
+ }
|
|
|
+ .hideTitleBar(true)
|
|
|
+ }
|
|
|
+
|
|
|
+ @Builder
|
|
|
+ DiaLog(control: DiaLogCompControl){
|
|
|
+ Column(){
|
|
|
+ Text('如何退押金')
|
|
|
+ .attributeModifier(new CustomTextStyle({size: 16, weight: 600, color: '#000000'}))
|
|
|
+
|
|
|
+ Text('会员卡到期并且所有订单结算完成后,在本页面点击“押金退还”,预计到账时间0-3个工作日,原路退回。')
|
|
|
+ .attributeModifier(new CustomTextStyle({size: 14, weight: 400, color: '#000000'}))
|
|
|
+ .margin({ top: 7, bottom: 21 })
|
|
|
+
|
|
|
+ buttonComp('知道了', 227, 9, new CustomTextStyle({size: 16, weight: 500}), () => {
|
|
|
+ control._onBackPress()
|
|
|
+ })
|
|
|
+ }
|
|
|
+ .width(312)
|
|
|
+ .borderRadius(12)
|
|
|
+ .backgroundColor(Color.White)
|
|
|
+ .alignItems(HorizontalAlign.Center)
|
|
|
+ .border({width: 2,color: Color.Black})
|
|
|
+ .padding({left: 21, right: 21, top: 16, bottom: 16})
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+@Builder
|
|
|
+function CashPledgeBuilder() {
|
|
|
+ CashPledgePage()
|
|
|
+}
|