Commit c57daae5 by wangshuo

Merge branch '00' into pre

parents 31dfab2d c433c972
...@@ -264,8 +264,7 @@ class Landing extends Component { ...@@ -264,8 +264,7 @@ class Landing extends Component {
const {data} = res.data const {data} = res.data
return data.url return data.url
}).then(text => { }).then(text => {
//todo 使用线上二维码 QRCode.toDataURL(text)
QRCode.toDataURL('http://m.julyedu.com')
.then(url => { .then(url => {
Popup({ Popup({
title: '提醒服务', title: '提醒服务',
...@@ -275,8 +274,7 @@ class Landing extends Component { ...@@ -275,8 +274,7 @@ class Landing extends Component {
<div className="des">{type === 'create' ? '有好友加入队伍后第一时间通知我~' : '获得宝箱时第一时间通知我~'}</div> <div className="des">{type === 'create' ? '有好友加入队伍后第一时间通知我~' : '获得宝箱时第一时间通知我~'}</div>
<img src={url} alt=""/> <img src={url} alt=""/>
{browser.isAndroidApp ? <div> {browser.isAndroidApp ? <div>
//todo 使用线上二维码 <button className={'android-qr-code-btn'} onClick={this.saveImage.bind(this, text)}>保存二维码</button>
<button className={'android-qr-code-btn'} onClick={this.saveImage.bind(this, 'http://m.julyedu.com')}>保存二维码</button>
</div> : null} </div> : null}
<div className="des">长按识别/扫码 关注【七月在线】服务号即可预约</div> <div className="des">长按识别/扫码 关注【七月在线】服务号即可预约</div>
</div>, </div>,
......
...@@ -51,7 +51,7 @@ class LiveRoom extends Component { ...@@ -51,7 +51,7 @@ class LiveRoom extends Component {
this.setState({ this.setState({
showMark: true, showMark: true,
subUrl: url, subUrl: url,
QRCodeUrl: url, QRCodeUrl: data.url,
}) })
}) })
} else { } else {
......
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