import React, { useState } from 'react' import Taro, { Current } from '@tarojs/taro' import SlidePopup from '@/components/SlidePopup/index' import UploadImg from '@/components/UploadImg/index' import '@/assets/css/reset.less' import '@/assets/css/iconfont.less' import './index.less' export default function BaoXiuFeiYong () { const [ShowPopup, setShowPopup] = useState(false) const [PopupType, setPopupType] = useState(0) const CurrnetBaoXiuId = Current.router.params.id const SlidePopupClose = () => { setShowPopup(false) } return ( {/* 费用信息 */} 1栋3单元2楼-3楼走廊声控灯出现故障 报修类型 公共区域问题 报修单号 201810120020 报修时间 2018-10-12 18:00 报修进度 已修缮 处理人 郭培军 报修费用 ¥150 { setPopupType(1); setShowPopup(true) }}>我要缴费 { setPopupType(2); setShowPopup(true) }}>线下缴费 {/* 弹窗 */} {/* 线上缴费 */} { PopupType - 0 === 1 && 立即支付150 微信支付 去付款 } {/* 线下缴费 */} { PopupType - 0 === 2 && 上传线下支付凭证 } ) }