BindSheetSwiper.ets 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. // import { BuilderHeader } from "./BuilderHeader"
  2. // import { SwiperCom } from "./SwiperCom"
  3. // import { TaskItem } from "./TaskItem"
  4. //
  5. // @ComponentV2
  6. // export struct BindSheetSwiper{
  7. // @Param swiperController:SwiperController=new SwiperController()
  8. // @Event cancel:()=>void=()=>{}
  9. // @Event confirm:()=>void=()=>{}
  10. // build() {
  11. // Swiper(this.swiperController){
  12. // Column(){
  13. // Row(){
  14. // BuilderHeader({
  15. // leftTitle:"取消",
  16. // centerTitle:"养护打卡",
  17. // rightTitle:'打卡',
  18. // leftClick:()=>{
  19. // this.cancel()
  20. // // this.isShowMaintenanceBuilder=false
  21. // },
  22. // rightClick:()=>{
  23. // this.confirm()
  24. // // this.isShowMaintenanceBuilder=true
  25. // }
  26. // })
  27. // }.width('100%')
  28. // .margin({bottom:16})
  29. //
  30. // Column({space:20}) {
  31. // Column() {
  32. // TaskItem({
  33. // title:"打卡事项",
  34. // TaskText:"xxx",
  35. // swiperChange:()=>{
  36. // this.swiperController.changeIndex(1,true)
  37. // }
  38. // })
  39. // TaskItem({
  40. // title:"打卡植物",
  41. // TaskText:"xxx",
  42. // swiperChange:()=>{
  43. // this.swiperController.changeIndex(2,true)
  44. // }
  45. // })
  46. // }.backgroundColor('#F8F8F8')
  47. // .padding({left:10,right:10})
  48. // .borderRadius(12)
  49. //
  50. // Column() {
  51. // Row() {
  52. // Text('打卡日期')
  53. // Image($r('app.media.startIcon')).width(18)
  54. // }.width('100%')
  55. // .justifyContent(FlexAlign.SpaceBetween)
  56. // .padding({ top: 16, bottom: 16 })
  57. // .onClick(()=>{
  58. // this.swiperController.changeIndex(3,true)
  59. // })
  60. //
  61. // Row() {
  62. // Text('打卡时间')
  63. // Image($r('app.media.startIcon')).width(18)
  64. // }.width('100%')
  65. // .justifyContent(FlexAlign.SpaceBetween)
  66. // .padding({ top: 16, bottom: 16 })
  67. // }.backgroundColor('#F8F8F8')
  68. // .padding({left:10,right:10})
  69. // .borderRadius(12)
  70. // .onClick(()=>{
  71. // this.swiperController.changeIndex(4,true)
  72. //
  73. // })
  74. // }.width('100%')
  75. //
  76. //
  77. // }.width('100%')
  78. // .height(530)
  79. // .padding({top:19,left:16,right:16})
  80. // .backgroundColor(Color.White)
  81. // .borderRadius({topLeft:20,topRight:20})
  82. // //打卡事项swiper
  83. // SwiperCom({
  84. // swiperBuilder1:()=>{
  85. // this.SelectClockTask()
  86. // },
  87. // swiperBuilder2:()=>{
  88. // this.AddClockTask()
  89. // },
  90. // swiperBuilder3: () => { this.AddClockTaskAndSelectIcon() },
  91. // swiperComController:this.vm.swiperComController[0]
  92. // })
  93. //
  94. // SwiperCom({
  95. // swiperBuilder1:()=>{
  96. // //选择打卡植物
  97. // this.SelectClockTaskGreenPlant()
  98. // },
  99. // swiperComController:this.vm.swiperComController[1]
  100. // })
  101. // SwiperCom({
  102. // swiperBuilder1:()=>{
  103. // //选择打卡日期
  104. // this.SelectDate()
  105. // },
  106. // swiperComController:this.vm.swiperComController[2]
  107. // })
  108. // SwiperCom({
  109. // swiperBuilder1:()=>{
  110. // //选择打卡时间
  111. // this.SelectTime()
  112. // },
  113. // swiperComController:this.vm.swiperComController[3]
  114. // })
  115. // TextArea({ placeholder:"您正在进行养护打卡,点击此处进行备注", text:"xxxx" }).width('100%')
  116. // .height(165)
  117. // .backgroundColor('#F8F8F8')
  118. // .borderRadius(12)
  119. // .placeholderColor('#4D333333')
  120. // .placeholderFont({size:14})
  121. // .fontColor('#FF206D43')
  122. // .fontSize(16)
  123. //
  124. // }
  125. // .width('100%')
  126. // .height(530)
  127. // .autoPlay(false)
  128. // .indicator(false)
  129. // .disableSwipe(true)
  130. // .curve(Curve.EaseIn)
  131. // .duration(100)
  132. // }
  133. // }