Commit 2f1bfa52 by xuzhenghua

2

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