Commit 5443c31a by wangshuo

需要登录

parent 1060de5f
...@@ -56,7 +56,8 @@ class CollectBlessing extends Component { ...@@ -56,7 +56,8 @@ class CollectBlessing extends Component {
handleToShowNotice, handleToShowNotice,
handleToShowList, handleToShowList,
handleToShowInvite, handleToShowInvite,
handleToShow handleToShow,
toLogin
} = this.props; } = this.props;
const { rules, welfareRuleList } = this.state; const { rules, welfareRuleList } = this.state;
return ( return (
...@@ -69,7 +70,7 @@ class CollectBlessing extends Component { ...@@ -69,7 +70,7 @@ class CollectBlessing extends Component {
: ( : (
<ListHeader size="middle" styles={{margin: '20px 0 0 0'}} > <ListHeader size="middle" styles={{margin: '20px 0 0 0'}} >
<span className="text_nologin">我的福气值:</span> <span className="text_nologin">我的福气值:</span>
<Link to='/passport' className="login__btn">登录</Link> <span onClick={toLogin} className="login__btn">登录</span>
</ListHeader> </ListHeader>
) )
} }
......
import React, { Component } from 'react'; import React, { Component } from 'react';
import QRCode from 'qrcode'; import QRCode from 'qrcode';
import { http } from '@/utils'; import { http, SendMessageToApp } from '@/utils';
import RulePopup from './rulePopup/index' import RulePopup from './rulePopup/index'
import CoursePopup from './coursePopup/index' import CoursePopup from './coursePopup/index'
import RecordPopup from './recordPopup/index' import RecordPopup from './recordPopup/index'
...@@ -141,6 +141,10 @@ class BlessingPreheat extends Component { ...@@ -141,6 +141,10 @@ class BlessingPreheat extends Component {
}); });
} }
toLogin = () => {
}
onCopy = () => { onCopy = () => {
Toast.info('复制成功', 2,null,false) Toast.info('复制成功', 2,null,false)
} }
...@@ -159,6 +163,7 @@ class BlessingPreheat extends Component { ...@@ -159,6 +163,7 @@ class BlessingPreheat extends Component {
handleToShowInvite={this.handleToShowInvite} handleToShowInvite={this.handleToShowInvite}
handleToShowNotice={this.handleToShowNotice} handleToShowNotice={this.handleToShowNotice}
handleToShow={this.handleToShow} handleToShow={this.handleToShow}
toLogin={this.toLogin}
/> />
{/* 幸运大抽奖--预热 */} {/* 幸运大抽奖--预热 */}
...@@ -239,7 +244,7 @@ class BlessingPreheat extends Component { ...@@ -239,7 +244,7 @@ class BlessingPreheat extends Component {
<ListHeader id={'ai-test'} text="全国AI工程师水平测试" styles={{margin: '30px 0 15px'}} /> <ListHeader id={'ai-test'} text="全国AI工程师水平测试" styles={{margin: '30px 0 15px'}} />
<div className="test__record" onClick={() => this.handleToShow('showRecordList')}> <div className="test__record" onClick={() => this.handleToShow('showRecordList', true)}>
测试记录> 测试记录>
</div> </div>
<LevelTest></LevelTest> <LevelTest></LevelTest>
......
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