Commit 842aba95 authored by wildfirecode13's avatar wildfirecode13

1

parent 1f01001c
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:8088/",
"webRoot": "${workspaceFolder}"
}
]
}
\ No newline at end of file
...@@ -13,7 +13,7 @@ export const homeInfo = { ...@@ -13,7 +13,7 @@ export const homeInfo = {
"figureId": "3" "figureId": "3"
} }
], ],
"newUser": false, "newUser": true,
"userInfo": { "userInfo": {
"figureId": "1", "figureId": "1",
"joyBeans": 10000, "joyBeans": 10000,
......
...@@ -48,36 +48,30 @@ ...@@ -48,36 +48,30 @@
position: relative; position: relative;
box-sizing: border-box; box-sizing: border-box;
width: 618px; width: 618px;
height: 91px; height: 109px;
padding: 25px 0 0 ;
// width: 618px;
// height: 91px;
// left: 65px;
// top: 235px;
// position: absolute;
.detail2_item_title { .detail2_item_title {
width: 193px; // width: 193px;
height: 23px; // height: 23px;
left: 53px; left: 53px;
top:20px;
position: absolute; position: absolute;
font-size: 24px; font-size: 24px;
color: #474747; color: #474747;
} }
.detail2_item_day { .detail2_item_day {
width: 284px; // width: 284px;
height: 16px; // height: 16px;
left: 52px; left: 52px;
top: 42px; top: 62px;
position: absolute; position: absolute;
font-size: 20px; font-size: 20px;
color: #949494; color: #949494;
} }
.detail2_item_num { .detail2_item_num {
width: 88px; // width: 88px;
height: 31px; // height: 31px;
left: 455px; left: 455px;
top: 8px; top: 23px;
position: absolute; position: absolute;
font-size: 40px; font-size: 40px;
color: #474747; color: #474747;
......
...@@ -91,8 +91,14 @@ class Loading extends Component { ...@@ -91,8 +91,14 @@ class Loading extends Component {
if(homeinfo){ if(homeinfo){
const {newUser} = homeinfo; const {newUser} = homeinfo;
if(newUser){ if(newUser){//新用户,走选择,然后再走引导,引导结束后,走签到
Aup.show('Select', {}, this); Aup.show('Select', {}, this);
}else {
API.signInfo().then((res)=>{
const {needPopup} =res.data;
if(needPopup)
Aup.show('Sign', res.data, this);
})
} }
} }
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
import React, { Component } from 'react'; import React, { Component } from 'react';
import resList from '../../resconfig/resList'; //import API from '../../api'; import resList from '../../resconfig/resList'; //import API from '../../api';
import API from '../../api';
import { Aup, AUPOP, AUP_MBX_STATE } from '../../pop'; import { Aup, AUPOP, AUP_MBX_STATE } from '../../pop';
import './main3.less'; import './main3.less';
import { CanvasWidget } from 'spark-utils'; import { CanvasWidget } from 'spark-utils';
...@@ -29,7 +29,9 @@ class Main3 extends Component { ...@@ -29,7 +29,9 @@ class Main3 extends Component {
} }
onClick_signBtn = () => { onClick_signBtn = () => {
Aup.show('Sign', {}, this); API.signInfo().then((res)=>{
Aup.show('Sign', res.data, this);
})
// console.log('onClick_signBtn') // console.log('onClick_signBtn')
} }
...@@ -48,13 +50,6 @@ class Main3 extends Component { ...@@ -48,13 +50,6 @@ class Main3 extends Component {
componentDidMount() { componentDidMount() {
this.initEvent(); this.initEvent();
// if (this.props.data) {
// setTimeout(() => {
// // Aup.show('PopRule', {}, this)
// // Aup.show('Userinfo', {}, this);
// // Aup.show('Sign', {}, this); // Aup.show('Select', {}, this);
// }, 200);
// }
} }
initEvent() { initEvent() {
GDispatcher.addEventListener(Store.homeinfo, this.freshHomeInfo, this); GDispatcher.addEventListener(Store.homeinfo, this.freshHomeInfo, this);
......
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