Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mr-julyedu
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
baiguangyao
mr-julyedu
Commits
e8b69a8f
Commit
e8b69a8f
authored
Sep 23, 2019
by
FE
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
del debug
parent
db5de29f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
21 deletions
+20
-21
src/common/CallApp/index.js
+0
-1
src/common/Captcha/index.js
+20
-20
No files found.
src/common/CallApp/index.js
View file @
e8b69a8f
...
@@ -31,7 +31,6 @@ class OpenApp extends Component {
...
@@ -31,7 +31,6 @@ class OpenApp extends Component {
}
}
handleClick
=
()
=>
{
handleClick
=
()
=>
{
alert
(
typeof
this
.
callApp
)
this
.
callApp
.
open
({
this
.
callApp
.
open
({
path
:
this
.
props
.
path
,
path
:
this
.
props
.
path
,
// param:
// param:
...
...
src/common/Captcha/index.js
View file @
e8b69a8f
...
@@ -6,26 +6,26 @@ const CAPTCHAID = '6b0f5f6c8f334f3693ee754ba5692e36'
...
@@ -6,26 +6,26 @@ const CAPTCHAID = '6b0f5f6c8f334f3693ee754ba5692e36'
class
Captcha
extends
Component
{
class
Captcha
extends
Component
{
componentDidMount
()
{
componentDidMount
()
{
//
const {getInstance, handleError, onVerify} = this.props
const
{
getInstance
,
handleError
,
onVerify
}
=
this
.
props
//
const el = document.getElementById('captcha');
const
el
=
document
.
getElementById
(
'captcha'
);
//
el && initCaptcha(function () {
el
&&
initCaptcha
(
function
()
{
//
initNECaptcha({
initNECaptcha
({
//
element: el,
element
:
el
,
//
captchaId: CAPTCHAID,
captchaId
:
CAPTCHAID
,
//
mode: 'float',
mode
:
'float'
,
//
width: 'auto',
width
:
'auto'
,
//
onVerify: function (err, data) {
onVerify
:
function
(
err
,
data
)
{
//
onVerify(err,data)
onVerify
(
err
,
data
)
//
}
}
//
},
},
//
instance => {
instance
=>
{
//
getInstance && getInstance(instance)
getInstance
&&
getInstance
(
instance
)
//
},
},
//
err => {
err
=>
{
//
handleError && handleError(err)
handleError
&&
handleError
(
err
)
//
}
}
//
)
)
//
})
})
}
}
render
()
{
render
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment