Commit 239b2c4c authored by wildfirecode13's avatar wildfirecode13

1

parent 79b83181
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,
......
......@@ -16,9 +16,9 @@ class Main3 extends Component {
super(props);
this.state = {
resList: resList,
nickname: 'nickname',
avatar: 1,
num: "1123",
nickName: '',
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, nickname, num, needguide } = this.state;
const { avatar, nickName, 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={() => {
......
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