Commit 2f1bfa52 by xuzhenghua

2

parent 64ba18b1
......@@ -118,8 +118,3 @@
outline: none;
}
}
.demo {
font-size: 30px;
color: red;
}
......@@ -34,13 +34,13 @@ class BlessingPreheat extends Component {
this.navTop = 183
this.prevY = 0
this.state = {
userInfoList: [],
// userInfoList: [{
// token:'fcfef221e60ab7a2-92a80d5d30196999',
// uid:'545292',
// uname:'xzhtest2',
// avatar_file:''
// }],
// userInfoList: [],
userInfoList: [{
token:'fcfef221e60ab7a2-92a80d5d30196999',
uid:'545292',
uname:'xzhtest2',
avatar_file:''
}],
isRule: false,
isCourse: false,
inviteUrl: '',
......@@ -110,7 +110,6 @@ class BlessingPreheat extends Component {
window['QQWXWBshare'] = result => {
this.handleToAddBlessing(result);
}
}
......@@ -129,11 +128,11 @@ class BlessingPreheat extends Component {
let expires = addDays(new Date(), 90)
this.state.userInfoList.map((item, index) => {
Toast.info(item.uid)
cookie.set("token", item.token, {expires, path: '/', domain: 'julyedu.com'});
cookie.set("plat", item.plat, {expires, path: '/', domain: 'julyedu.com'});
cookie.set("uid", item.uid, {expires, path: '/', domain: 'julyedu.com'});
cookie.set("uname", item.uname, {expires, path: '/', domain: 'julyedu.com'});
cookie.set("avatar_file", item.avatar_file, {expires, path: '/', domain: 'julyedu.com'});
cookie.set("token", item.token, {expires, path: '/', domain: '.julyedu.com'});
cookie.set("plat", item.plat, {expires, path: '/', domain: '.julyedu.com'});
cookie.set("uid", item.uid, {expires, path: '/', domain: '.julyedu.com'});
cookie.set("uname", item.uname, {expires, path: '/', domain: '.julyedu.com'});
cookie.set("avatar_file", item.avatar_file, {expires, path: '/', domain: '.julyedu.com'});
alert(cookie.get("uid"))
});
......@@ -442,9 +441,6 @@ class BlessingPreheat extends Component {
<ListHeader id={'lucky-value'} text="积福气,享受更多福利" styles={{margin: '60px 0 15px'}}/>
<Link className="luck-draw__button" to="/blessingRank">福气排行榜></Link>
<div className='demo'>{String(!this.props.user.hasError)}</div>
<CollectBlessing
isSign={isSign}
userInfo={userInfo}
......
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