Browse Source

静态页面

xcx 4 years ago
parent
commit
739f07e88d
1 changed files with 1 additions and 4 deletions
  1. 1
    4
      src/pages/WuYe/BaoXiuFeiYong/index.jsx

+ 1
- 4
src/pages/WuYe/BaoXiuFeiYong/index.jsx View File

12
 
12
 
13
 export default function BaoXiuFeiYong () {
13
 export default function BaoXiuFeiYong () {
14
 
14
 
15
-  console.log(Current.router.params, `params`)
16
-
17
   const { user } = useModel('user')
15
   const { user } = useModel('user')
18
   const [ShowPopup, setShowPopup] = useState(false)
16
   const [ShowPopup, setShowPopup] = useState(false)
19
   const [PopupType, setPopupType] = useState(0)
17
   const [PopupType, setPopupType] = useState(0)
20
-  const [CurrnetBaoXiuId] = useState(Current.router.params.id)
18
+  const [CurrnetBaoXiuId] = useState(Current.router.params !== null ? Current.router.params.id : null)
21
   const [DetailInfo, setDetailInfo] = useState(null)
19
   const [DetailInfo, setDetailInfo] = useState(null)
22
   const [BillInfo, setBillInfo] = useState(null)
20
   const [BillInfo, setBillInfo] = useState(null)
23
 
21
 
87
         if (res.confirm) {
85
         if (res.confirm) {
88
           WechatPay([BillInfo.id - 0]).then(() => {
86
           WechatPay([BillInfo.id - 0]).then(() => {
89
             setShowPopup(false)
87
             setShowPopup(false)
90
-            console.log(`弹窗已设置关闭`)
91
             Taro.showToast({
88
             Taro.showToast({
92
               title: '缴费成功',
89
               title: '缴费成功',
93
               icon: 'success'
90
               icon: 'success'