Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
icbcRPG
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
icbcRPG
Commits
9a532b8b
Commit
9a532b8b
authored
Dec 26, 2020
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
1eeee1fe
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
4 deletions
+18
-4
index.js
project/mock/e-family/index.js
+2
-2
select.jsx
project/src/components/select/select.jsx
+8
-1
userinfo.jsx
project/src/components/userinfo/userinfo.jsx
+8
-1
No files found.
project/mock/e-family/index.js
View file @
9a532b8b
...
...
@@ -4,7 +4,7 @@ export const homeInfo = {
{
"canUpdateNickName"
:
false
,
"figures"
:
[{
"figureId"
:
"1"
},
{
"figureId"
:
"2"
},
{
"figureId"
:
"3"
}],
"newUser"
:
0
,
"newUser"
:
1
,
"userInfo"
:
{
"figureId"
:
"3"
,
"joyBeans"
:
10100
,
"nickName"
:
"13"
}
},
"message"
:
null
,
...
...
@@ -23,7 +23,7 @@ export const signInfo = {
"data"
:
{
"todaySigned"
:
0
,
"continuousDays"
:
6
,
"needPopup"
:
1
,
"needPopup"
:
0
,
"signLists"
:
[
{
"awardName"
:
"欢趣豆"
,
...
...
project/src/components/select/select.jsx
View file @
9a532b8b
...
...
@@ -19,6 +19,13 @@ class Select extends Component {
};
}
onKeyUp
=
(
e
)
=>
{
let
planame
=
this
.
refs
.
planame
.
value
;
if
(
planame
.
length
>
6
)
{
this
.
refs
.
planame
.
value
=
planame
.
slice
(
0
,
6
)
}
}
componentDidMount
()
{
const
{
figures
}
=
dataCenter
.
getData
(
Store
.
homeinfo
);
//现只有三个
...
...
@@ -255,7 +262,7 @@ class Select extends Component {
src=
{
this
.
state
.
resList
[
'a4412ebd-65be-4908-8894-b0aea8cbd4cf'
].
url
}
onClick=
{
this
.
changeShowRole
.
bind
(
this
,
"left"
)
}
/>
<
input
onChange=
{
()
=>
{
this
.
setState
({
selected
:
false
})}
}
className=
"planame"
type=
"text"
placeholder=
"请输入昵称(不超过六字)"
ref=
"planame"
/>
<
input
on
KeyUp=
{
this
.
onKeyUp
}
on
Change=
{
()
=>
{
this
.
setState
({
selected
:
false
})}
}
className=
"planame"
type=
"text"
placeholder=
"请输入昵称(不超过六字)"
ref=
"planame"
/>
</
div
>
);
}
...
...
project/src/components/userinfo/userinfo.jsx
View file @
9a532b8b
...
...
@@ -16,6 +16,13 @@ class Userinfo extends Component {
};
}
onKeyUp
=
(
e
)
=>
{
let
planame
=
this
.
refs
.
planame
.
value
;
if
(
planame
.
length
>
6
)
{
this
.
refs
.
planame
.
value
=
planame
.
slice
(
0
,
6
)
}
}
onclick
=
async
()
=>
{
let
planame
=
this
.
refs
.
planame
.
value
;
if
(
planame
.
length
<
1
)
{
...
...
@@ -82,7 +89,7 @@ class Userinfo extends Component {
const
{
figureId
}
=
this
.
state
;
return
(
<
div
className=
"userinfo "
uuid=
"a9143822-c421-48d3-92c3-de9eafe5c234"
>
<
input
className=
"planame"
type=
"text"
placeholder=
"请输入昵称(不超过六字)"
ref=
"planame"
/>
<
input
onKeyUp=
{
this
.
onKeyUp
}
className=
"planame"
type=
"text"
placeholder=
"请输入昵称(不超过六字)"
ref=
"planame"
/>
<
img
className=
"userinfo_bg "
uuid=
"cf852278-516f-48f3-bad2-0e38a1431c4e"
...
...
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