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
239b2c4c
Commit
239b2c4c
authored
Dec 22, 2020
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
79b83181
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
16 deletions
+20
-16
index.js
project/mock/e-family/index.js
+7
-9
main3.jsx
project/src/pages/main3/main3.jsx
+13
-7
No files found.
project/mock/e-family/index.js
View file @
239b2c4c
export
const
homeInfo
=
{
"code"
:
null
,
"data"
:
{
"canUpdateNickName"
:
null
,
"figures"
:
[
{
"figureId"
:
"1"
},
{
"figureId"
:
"2"
},
{
"figureId"
:
"3"
}
],
"newUser"
:
0
,
"userInfo"
:
null
"data"
:
{
"canUpdateNickName"
:
false
,
"figures"
:
[{
"figureId"
:
"1"
},
{
"figureId"
:
"2"
},
{
"figureId"
:
"3"
}],
"newUser"
:
false
,
"userInfo"
:
{
"figureId"
:
"2"
,
"joyBeans"
:
10100
,
"nickName"
:
"13"
}
},
"message"
:
null
,
"success"
:
true
...
...
@@ -85,7 +83,7 @@ export const signInfo = {
"message"
:
null
,
"success"
:
true
}
export
const
pagelist
=
{
export
const
pagelist
=
{
"code"
:
null
,
"data"
:
{
"result"
:
true
,
...
...
@@ -96,7 +94,7 @@ export const pagelist ={
"message"
:
null
,
"success"
:
true
}
export
const
dosign
=
{
export
const
dosign
=
{
"code"
:
null
,
"data"
:
{
"result"
:
true
,
...
...
project/src/pages/main3/main3.jsx
View file @
239b2c4c
...
...
@@ -16,9 +16,9 @@ class Main3 extends Component {
super
(
props
);
this
.
state
=
{
resList
:
resList
,
nick
name
:
'nickname
'
,
avatar
:
1
,
num
:
"1123"
,
nick
Name
:
'
'
,
joyBeans
:
"0"
,
figureId
:
-
1
,
needguide
:
false
};
}
...
...
@@ -76,7 +76,13 @@ class Main3 extends Component {
//首页信息显示更新
freshHomeInfo
()
{
let
homeinfo
=
dataCenter
.
getData
(
Store
.
homeinfo
);
console
.
log
(
'freshHomeInfo'
)
console
.
log
(
'freshHomeInfo'
,
homeinfo
.
userInfo
);
this
.
setState
({
nickName
:
homeinfo
.
userInfo
.
nickName
,
joyBeans
:
homeinfo
.
userInfo
.
joyBeans
,
figureId
:
homeinfo
.
userInfo
.
figureId
,
})
}
changeGuideShow
()
{
let
needguide
=
dataCenter
.
getData
(
Store
.
needguide
);
...
...
@@ -457,7 +463,7 @@ class Main3 extends Component {
}
render
()
{
const
{
avatar
,
nick
name
,
num
,
needguide
}
=
this
.
state
;
const
{
avatar
,
nick
Name
,
joyBeans
,
needguide
}
=
this
.
state
;
return
(
<
div
className=
"main3 diacontmidpos"
uuid=
"8754a9d1-7453-474b-b722-7cb71483ae85"
ref=
"main3"
>
<
img
...
...
@@ -494,10 +500,10 @@ class Main3 extends Component {
/>
)
}
<
span
className=
"main3_num "
uuid=
"018875e0-9592-4854-ba0b-2cd58464a6a2"
>
欢趣豆:
12352
欢趣豆:
{
joyBeans
}
</
span
>
<
span
onClick=
{
this
.
onClick_userinfo
}
className=
"main3_nick "
uuid=
"a7518930-17cc-427a-a6e5-27a593b309c4"
>
用户昵称
{
nickName
}
</
span
>
<
img
onClick=
{
()
=>
{
...
...
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