Commit e8b69a8f by FE

del debug

parent db5de29f
......@@ -31,7 +31,6 @@ class OpenApp extends Component {
}
handleClick = () => {
alert(typeof this.callApp)
this.callApp.open({
path: this.props.path,
// param:
......
......@@ -6,26 +6,26 @@ const CAPTCHAID = '6b0f5f6c8f334f3693ee754ba5692e36'
class Captcha extends Component {
componentDidMount() {
// const {getInstance, handleError, onVerify} = this.props
// const el = document.getElementById('captcha');
// el && initCaptcha(function () {
// initNECaptcha({
// element: el,
// captchaId: CAPTCHAID,
// mode: 'float',
// width: 'auto',
// onVerify: function (err, data) {
// onVerify(err,data)
// }
// },
// instance => {
// getInstance && getInstance(instance)
// },
// err => {
// handleError && handleError(err)
// }
// )
// })
const {getInstance, handleError, onVerify} = this.props
const el = document.getElementById('captcha');
el && initCaptcha(function () {
initNECaptcha({
element: el,
captchaId: CAPTCHAID,
mode: 'float',
width: 'auto',
onVerify: function (err, data) {
onVerify(err,data)
}
},
instance => {
getInstance && getInstance(instance)
},
err => {
handleError && handleError(err)
}
)
})
}
render() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment