xcx il y a 4 ans
Parent
révision
739f07e88d
1 fichiers modifiés avec 1 ajouts et 4 suppressions
  1. 1
    4
      src/pages/WuYe/BaoXiuFeiYong/index.jsx

+ 1
- 4
src/pages/WuYe/BaoXiuFeiYong/index.jsx Voir le fichier

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