张延森 vor 4 Jahren
Ursprung
Commit
fb306f05e5
1 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. 3
    3
      src/pages/WuYe/BaoXiuFeiYong/index.jsx

+ 3
- 3
src/pages/WuYe/BaoXiuFeiYong/index.jsx Datei anzeigen

20
   const [DetailInfo, setDetailInfo] = useState(null)
20
   const [DetailInfo, setDetailInfo] = useState(null)
21
   const [BillInfo, setBillInfo] = useState(null)
21
   const [BillInfo, setBillInfo] = useState(null)
22
 
22
 
23
-  useEffect(() => {
23
+  useDidShow(() => {
24
     Init()
24
     Init()
25
-  }, [CurrnetBaoXiuId])
25
+  })
26
 
26
 
27
   const Init = () => {
27
   const Init = () => {
28
     request({ ...apis.getGongDanDetail, args: { orgId: user.orgId }, params: { ticketId: CurrnetBaoXiuId } }).then((res) => { // 获取工单详情
28
     request({ ...apis.getGongDanDetail, args: { orgId: user.orgId }, params: { ticketId: CurrnetBaoXiuId } }).then((res) => { // 获取工单详情
86
         if (res.confirm) {
86
         if (res.confirm) {
87
           WechatPay([BillInfo.id - 0]).then(() => {
87
           WechatPay([BillInfo.id - 0]).then(() => {
88
             setShowPopup(false)
88
             setShowPopup(false)
89
-            console.log(`弹窗已设置关闭`)
89
+            console.log(`弹窗已关闭`)
90
             Taro.showToast({
90
             Taro.showToast({
91
               title: '缴费成功',
91
               title: '缴费成功',
92
               icon: 'success'
92
               icon: 'success'