From fa3470f48ebd003ff97eed1340483da7833c0832 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 15 七月 2020 09:29:23 +0800 Subject: [PATCH] 2020-07-15 --- src/views/pay/index.jsx | 24 +++++++++++++++++++----- 1 files changed, 19 insertions(+), 5 deletions(-) diff --git a/src/views/pay/index.jsx b/src/views/pay/index.jsx index 30c32d2..d759fcd 100644 --- a/src/views/pay/index.jsx +++ b/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() + } + }) } }) } -- Gitblit v1.8.0