Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
teddi
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
wildfirecode13
teddi
Commits
c5b280c8
Commit
c5b280c8
authored
Dec 12, 2020
by
AU-PRO
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add new code
parent
d8e6cfc3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
14 deletions
+7
-14
PopInput.jsx
project/src/components/pop/PopInput/PopInput.jsx
+2
-1
PageHome.jsx
project/src/pages/PageHome/PageHome.jsx
+4
-12
AUPopMobx.jsx
project/src/pop/AUPopMobx/AUPopMobx.jsx
+1
-1
No files found.
project/src/components/pop/PopInput/PopInput.jsx
View file @
c5b280c8
...
@@ -31,7 +31,8 @@ class PopInput extends Component {
...
@@ -31,7 +31,8 @@ class PopInput extends Component {
Toast
(
'请输入正确的手机号'
)
Toast
(
'请输入正确的手机号'
)
return
return
}
}
this
.
props
.
ctx
.
parentConsoleFunction
(
this
.
state
.
phone
)
console
.
log
(
this
.
props
.
data
.
aa
)
this
.
props
.
data
.
parentConsoleFunction
(
this
.
state
.
phone
)
this
.
props
.
onClose
()
this
.
props
.
onClose
()
}
}
...
...
project/src/pages/PageHome/PageHome.jsx
View file @
c5b280c8
...
@@ -18,26 +18,18 @@ class PageHome extends Component {
...
@@ -18,26 +18,18 @@ class PageHome extends Component {
}
}
openDefault
=
()
=>
{
openDefault
=
()
=>
{
// AUPOP 1.0
// this.props.showPop({
// type: 'PopDefault',
// data:
// fn: () => {
// console.log('simple callback, param "fn" ')
// },
// ctx: this
// })
// AUPOP 2.0
// AUPOP 2.0
Aup
.
show
(
'PopDefault'
)
Aup
.
show
(
'PopDefault'
)
}
}
openRule
=
()
=>
{
openRule
=
()
=>
{
// AUPOP 2.0
Aup
.
show
(
'PopRule'
,
{
ruler
:
'something'
})
}
}
openInput
=
()
=>
{
openInput
=
()
=>
{
// AUPOP 2.0
Aup
.
show
(
'PopInput'
,
{
aa
:
'123'
,
parentConsoleFunction
:
()
=>
{
this
.
parentConsoleFunction
()}
})
}
}
parentConsoleFunction
=
(
data
)
=>
{
parentConsoleFunction
=
(
data
)
=>
{
...
...
project/src/pop/AUPopMobx/AUPopMobx.jsx
View file @
c5b280c8
...
@@ -22,7 +22,7 @@ class AUPopMobx extends Component {
...
@@ -22,7 +22,7 @@ class AUPopMobx extends Component {
console
.
log
(
`%c AUPopMobx nextProprs is: \n`
,
ConsoleStyleComponents
,
nextProprs
)
console
.
log
(
`%c AUPopMobx nextProprs is: \n`
,
ConsoleStyleComponents
,
nextProprs
)
if
(
nextProprs
.
popArr
.
length
===
0
)
{
if
(
nextProprs
.
popArr
.
length
===
0
)
{
allowScroll
()
allowScroll
()
}
else
if
(
nextProprs
.
popArr
.
length
&&
preState
.
length
==
0
)
{
}
else
if
(
nextProprs
.
popArr
.
length
&&
preState
.
popArr
.
length
==
0
)
{
disableScroll
()
disableScroll
()
}
}
return
{
return
{
...
...
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