Commit 239b2c4c authored by wildfirecode13's avatar wildfirecode13

1

parent 79b83181
export const homeInfo = { export const homeInfo = {
"code": null, "code": null,
"data": { "data":
"canUpdateNickName": null, {
"figures": [ "canUpdateNickName": false,
{ "figureId": "1" }, { "figureId": "2" }, { "figureId": "3" } "figures": [{ "figureId": "1" }, { "figureId": "2" }, { "figureId": "3" }], "newUser": false,
], "userInfo": { "figureId": "2", "joyBeans": 10100, "nickName": "13" }
"newUser": 0,
"userInfo": null
}, },
"message": null, "message": null,
"success": true "success": true
...@@ -85,7 +83,7 @@ export const signInfo = { ...@@ -85,7 +83,7 @@ export const signInfo = {
"message": null, "message": null,
"success": true "success": true
} }
export const pagelist ={ export const pagelist = {
"code": null, "code": null,
"data": { "data": {
"result": true, "result": true,
...@@ -96,7 +94,7 @@ export const pagelist ={ ...@@ -96,7 +94,7 @@ export const pagelist ={
"message": null, "message": null,
"success": true "success": true
} }
export const dosign ={ export const dosign = {
"code": null, "code": null,
"data": { "data": {
"result": true, "result": true,
......
...@@ -16,9 +16,9 @@ class Main3 extends Component { ...@@ -16,9 +16,9 @@ class Main3 extends Component {
super(props); super(props);
this.state = { this.state = {
resList: resList, resList: resList,
nickname: 'nickname', nickName: '',
avatar: 1, joyBeans: "0",
num: "1123", figureId:-1,
needguide: false needguide: false
}; };
} }
...@@ -76,7 +76,13 @@ class Main3 extends Component { ...@@ -76,7 +76,13 @@ class Main3 extends Component {
//首页信息显示更新 //首页信息显示更新
freshHomeInfo() { freshHomeInfo() {
let homeinfo = dataCenter.getData(Store.homeinfo); 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() { changeGuideShow() {
let needguide = dataCenter.getData(Store.needguide); let needguide = dataCenter.getData(Store.needguide);
...@@ -457,7 +463,7 @@ class Main3 extends Component { ...@@ -457,7 +463,7 @@ class Main3 extends Component {
} }
render() { render() {
const { avatar, nickname, num, needguide } = this.state; const { avatar, nickName, joyBeans, needguide } = this.state;
return ( return (
<div className="main3 diacontmidpos" uuid="8754a9d1-7453-474b-b722-7cb71483ae85" ref="main3" > <div className="main3 diacontmidpos" uuid="8754a9d1-7453-474b-b722-7cb71483ae85" ref="main3" >
<img <img
...@@ -494,10 +500,10 @@ class Main3 extends Component { ...@@ -494,10 +500,10 @@ class Main3 extends Component {
/> />
)} )}
<span className="main3_num " uuid="018875e0-9592-4854-ba0b-2cd58464a6a2"> <span className="main3_num " uuid="018875e0-9592-4854-ba0b-2cd58464a6a2">
欢趣豆:12352 欢趣豆:{joyBeans}
</span> </span>
<span onClick={this.onClick_userinfo} className="main3_nick " uuid="a7518930-17cc-427a-a6e5-27a593b309c4"> <span onClick={this.onClick_userinfo} className="main3_nick " uuid="a7518930-17cc-427a-a6e5-27a593b309c4">
用户昵称 {nickName}
</span> </span>
<img <img
onClick={() => { onClick={() => {
......
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