| | |
| | | Modal.success({ |
| | | title: msg, |
| | | onOk: () => { |
| | | this.successContinue(sign, id) |
| | | this.successContinue(sign, id, res) |
| | | } |
| | | }) |
| | | return |
| | |
| | | |
| | | } |
| | | |
| | | this.successContinue(sign, id) |
| | | this.successContinue(sign, id, res) |
| | | } |
| | | |
| | | successContinue = (sign, id) => { |
| | | successContinue = (sign, id, res) => { |
| | | const { btn } = this.props |
| | | const { btnconfig } = this.state |
| | | |
| | |
| | | } else { |
| | | url = btn.verify.linkUrl |
| | | } |
| | | |
| | | if (/@/.test(url)) { |
| | | Object.keys(res).forEach(key => { |
| | | url = url.replace(new RegExp('@' + key + '@', 'ig'), res[key]) |
| | | }) |
| | | } |
| | | if (!/^http/.test(url)) { |
| | | url = window.location.origin + url |
| | | } |
| | | |
| | | window.open(url) |
| | | } |
| | | } |