123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. import React, { useState } from 'react'
  2. import Taro, { Current } from '@tarojs/taro'
  3. import SlidePopup from '@/components/SlidePopup/index'
  4. import UploadImg from '@/components/UploadImg/index'
  5. import '@/assets/css/reset.less'
  6. import '@/assets/css/iconfont.less'
  7. import './index.less'
  8. export default function BaoXiuFeiYong () {
  9. const [ShowPopup, setShowPopup] = useState(false)
  10. const [PopupType, setPopupType] = useState(0)
  11. const CurrnetBaoXiuId = Current.router.params.id
  12. const SlidePopupClose = () => {
  13. setShowPopup(false)
  14. }
  15. return (
  16. <view className='BaoXiuFeiYong'>
  17. {/* 费用信息 */}
  18. <view className='Info'>
  19. <view>
  20. <text>1栋3单元2楼-3楼走廊声控灯出现故障</text>
  21. <view className='flex-h'>
  22. <text className='flex-item'>报修类型</text>
  23. <text>公共区域问题</text>
  24. </view>
  25. <view className='flex-h'>
  26. <text className='flex-item'>报修单号</text>
  27. <text>201810120020</text>
  28. </view>
  29. <view className='flex-h'>
  30. <text className='flex-item'>报修时间</text>
  31. <text>2018-10-12 18:00</text>
  32. </view>
  33. <view className='flex-h'>
  34. <text className='flex-item'>报修进度</text>
  35. <text>已修缮</text>
  36. </view>
  37. <view className='flex-h'>
  38. <text className='flex-item'>处理人</text>
  39. <text>郭培军</text>
  40. </view>
  41. <view className='flex-h'>
  42. <text className='flex-item'>报修费用</text>
  43. <text className='Red'>¥150</text>
  44. </view>
  45. </view>
  46. <view className='InfoBottom'></view>
  47. </view>
  48. <view className='BottomBtn'>
  49. <text className='active' onClick={() => { setPopupType(1); setShowPopup(true) }}>我要缴费</text>
  50. <text onClick={() => { setPopupType(2); setShowPopup(true) }}>线下缴费</text>
  51. </view>
  52. {/* 弹窗 */}
  53. <SlidePopup Close={SlidePopupClose} Show={ShowPopup}>
  54. {/* 线上缴费 */}
  55. {
  56. PopupType - 0 === 1 &&
  57. <view className='JiaoFeiPopup XianShang'>
  58. <view className='Price'>立即支付<text>150</text>元</view>
  59. <view className='flex-h'>
  60. <text className='iconfont iconweixinzhifu'></text>
  61. <text className='flex-item'>微信支付</text>
  62. <text className='iconfont icongou'></text>
  63. </view>
  64. <view className='Btn'>
  65. <text>去付款</text>
  66. </view>
  67. </view>
  68. }
  69. {/* 线下缴费 */}
  70. {
  71. PopupType - 0 === 2 &&
  72. <view className='JiaoFeiPopup XianXia'>
  73. <text>上传线下支付凭证</text>
  74. <view className='UploadContainer'>
  75. <UploadImg></UploadImg>
  76. </view>
  77. </view>
  78. }
  79. </SlidePopup>
  80. </view>
  81. )
  82. }