Commit f05b612c authored by wildfirecode13's avatar wildfirecode13

1

parent 2c5e04c3
......@@ -15,7 +15,7 @@ export const updateUinfo = {
"code": null,
"data": 1,
"message": 'dfs',
"success": false
"success": true
}
export const doshare = {
"code": null,
......
......@@ -2,14 +2,17 @@
import React, { Component } from 'react';
import resList from '../../resconfig/resList'; //import API from '../../api';
import dataCenter, { getAPIdata, getHomeInfo, netErrMsg, Role, Store } from '../../dataCenter';
import './rule.less';
class Rule extends Component {
constructor(props) {
super(props);
const ruledata = dataCenter.getData(Store.ruledata);
console.log('ruledata',ruledata)
this.state = {
resList: resList,
resList: resList,ruledata
};
}
......@@ -22,10 +25,7 @@ class Rule extends Component {
src={this.state.resList['8fbd72d3-7dcf-40b4-a22d-0ec8499725f8'].url}
/>
<span className="rule_txt " uuid="b1275bdd-01e4-42f2-81c2-12a732f7f38c">
1.活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则
2.活动规则活动规则活动规则活动规则活动规则活动规则活动规则
3.活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则
4.活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则
{this.state.ruledata}
</span>
<img
onClick={this.props.onClose}
......
......@@ -14,12 +14,13 @@
position: absolute;
}
.rule_txt {
width: 452px;
width: 462px;
height: 515px;
left: 70px;
top: 183px;
position: absolute;
font-size: 26px;
overflow: scroll;
color: #535353;
}
.rule_close {
......
'use strict';
import { Toast } from '@spark/ui';
import React, { Component } from 'react';
import API from '../../api';
import { getHomeInfo } from '../../dataCenter';
import { Aup } from '../../pop';
import resList from '../../resconfig/resList'; //import API from '../../api';
import { Aup, AUPOP, AUP_MBX_STATE } from '../../pop';
import './sign.less';
import { Toast, Loading, Badge, CountDownButton, InputNumber } from '@spark/ui';
import API from '../../api';
class Sign extends Component {
constructor(props) {
......@@ -29,7 +30,7 @@ class Sign extends Component {
API.dosign().then((res) => {
const continuousDays = this.state.continuousDays + 1;
this.setState({ todaySigned: true, continuousDays: continuousDays });
this.props.ctx.freshHomeInfo();
getHomeInfo();
if (res.data.type !== 'joyBean'){
Aup.show('PrizeRule', res.data, this);
......
'use strict';
import { Toast } from '@spark/ui';
import React, { Component } from 'react';
import { Aup } from '../../pop';
import API from '../../api';
import { getHomeInfo } from '../../dataCenter';
import resList from '../../resconfig/resList';
import './userinfo.less';
import dataCenter, { getAPIdata, getHomeInfo, netErrMsg, Role, Store } from '../../dataCenter';
import { Toast, Loading, Badge, CountDownButton, InputNumber } from '@spark/ui';
import API from '../../api';
class Userinfo extends Component {
constructor(props) {
......@@ -26,7 +25,7 @@ class Userinfo extends Component {
API.updateUinfo({ type: 2, nickName: planame }).then(res => {
console.log('res', res);
if (res && res.success) {
this.props.ctx.freshHomeInfo();
getHomeInfo();
this.props.onClose();
} else {
Toast(res.message || '网络异常,请稍后重试~')
......
......@@ -11,6 +11,7 @@ import { getStepData, widgetConfig } from './widgetConfig';
import { GDispatcher } from "spark-wrapper-fyge"
import dataCenter, { Store } from '../../dataCenter';
let _widget;
class Main3 extends Component {
constructor(props) {
super(props);
......@@ -24,8 +25,16 @@ class Main3 extends Component {
};
}
freshHomeInfo() {
this.freshHomeInfo();
gotoURL=(type)=>{
const urlmap = {
ganji:'https://baidu.com?ganji',
equnongchang:'https://baidu.com?equnongchang',
renwudating:'https://baidu.com?renwudating',
xiaomaibu:'https://baidu.com?xiaomaibu',
wodeejia:'https://baidu.com?wodeejia',
}
console.log('goto',urlmap[type])
location.href=urlmap[type]
}
onClick_userinfo = () => {
......@@ -224,26 +233,31 @@ class Main3 extends Component {
/>
</div>
<img
onClick={()=>this.gotoURL('wodeejia')}
className="main3_btn5 md9"
uuid="72de3087-a678-4c8e-90f0-98174bb08c70"
src={this.state.resList['bd2d0b8b-f567-4146-be92-dc1704f06b4a'].url}
/>
<img
onClick={()=>this.gotoURL('xiaomaibu')}
className="main3_btn4 md8"
uuid="031a922c-6690-49a4-9659-2055ef8c174f"
src={this.state.resList['197b83b3-3d8a-47ed-bede-dd07bf533edc'].url}
/>
<img
className="md7"
onClick={()=>this.gotoURL('renwudating')}
className="main3_btn3 md7"
uuid="06d08e49-d168-4d83-93cb-422e8053ffa1"
src={this.state.resList['febc6038-d4f1-48ad-a855-b45656bdc9f9'].url}
/>
<img
onClick={()=>this.gotoURL('equnongchang')}
className="main3_btn2 md6"
uuid="7bd21565-f46e-4c72-ad2c-d978d90ff4b3"
src={this.state.resList['b1c1b1ea-7d5e-40b5-b95f-e66ed468ac18'].url}
/>
<img
onClick={()=>this.gotoURL('ganji')}
className="main3_btn1 md5"
uuid="cbdb75d5-b009-403b-98b2-056b8bdfaa71"
src={this.state.resList['3e030f90-a5de-4c99-b717-9b9e89b7eaa1'].url}
......
......@@ -129,6 +129,7 @@
.main3_btn1 {
width: 283px;
height: 303px;
left:0;
top: 308px;
position: absolute;
opacity: 0;
......
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