king
2020-07-15 fa3470f48ebd003ff97eed1340483da7833c0832
src/views/pay/index.jsx
@@ -2,7 +2,7 @@
import moment from 'moment'
import md5 from 'md5'
import QRCode from 'qrcode.react'
import { notification, Tabs } from 'antd'
import { notification, Tabs, Modal } from 'antd'
import Api from '@/api'
import Utils from '@/utils/utils.js'
@@ -70,8 +70,7 @@
  getOrder = (Id) => {
    let param = {
      func: 's_get_weixin_pay_native',
      ID: Id,
      // sandbox: 'Y'
      ID: Id
    }
    param.LTextOut = md5(param.ID + window.GLOB.appkey)
@@ -99,6 +98,14 @@
        if (res.pay_status) {
          this.setState({
            overdone: true
          })
          Modal.success({
            title: '支付成功!',
            content: '请刷新订单页面,查看订单状态。',
            okText: '知道了',
            onOk() {
              window.close()
            }
          })
          return
        }
@@ -163,8 +170,7 @@
      if ((second - 1) % 5 === 0) {
        let param = {
          func: 's_get_weixin_pay_native_status',
          out_trade_no: orderNo,
          // sandbox: 'Y'
          out_trade_no: orderNo
        }
        param.LTextOut = md5(orderNo + window.GLOB.appkey)
@@ -176,6 +182,14 @@
            this.setState({
              overdone: true
            })
            Modal.success({
              title: '支付成功!',
              content: '请刷新订单页面,查看订单状态。',
              okText: '知道了',
              onOk() {
                window.close()
              }
            })
          }
        })
      }