Commit 72f96a98 authored by wildfirecode13's avatar wildfirecode13

1

parent 04293ffa
......@@ -4,7 +4,7 @@ export const homeInfo = {
{
"canUpdateNickName": false,
"figures": [{ "figureId": "1" }, { "figureId": "2" }, { "figureId": "3" }],
"newUser": 1,
"newUser": 0,
"userInfo": { "figureId": "3", "joyBeans": 10100, "nickName": "13" }
},
"message": null,
......@@ -26,8 +26,8 @@ export const doshare = {
export const signInfo = {
"code": null,
"data": {
"todaySigned": 1,
"continuousDays": 7,
"todaySigned": 0,
"continuousDays": 6,
"needPopup": 0,
"signLists": [
{
......@@ -97,6 +97,7 @@ export const dosign = {
"message": null,
"success": true
}
// export const dosign ={
// "code": null,
// "data": {
......
......@@ -2,9 +2,10 @@
width: 750px;
height: 1321px;
opacity: 1;
top: 77px;
top: 50%;
position: absolute;
transform-origin: 0px 0px 0px;
margin-top: -710px;
.prize_bg {
width: 750px;
height: 1321px;
......
......@@ -30,8 +30,14 @@ class Sign extends Component {
const continuousDays = this.state.continuousDays + 1;
this.setState({ todaySigned: true, continuousDays: continuousDays });
this.props.ctx.freshHomeInfo();
if (res.data.type !== 'joyBean')
if (res.data.type !== 'joyBean'){
Aup.show('PrizeRule', res.data, this);
}else{
this.props.onClose();
Toast(`恭喜你成功领取${res.data.awardName}`)
}
});
};
......
......@@ -113,9 +113,9 @@ class Loading extends Component {
}
}
// this.props.navigateTo('mainpage', {
// isnewUser,
// });
this.props.navigateTo('mainpage', {
isnewUser,
});
}
render() {
......
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