Commit cc86ca6d by wangshuo

合并00

parents 06436c37 4a26b69a
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -418,15 +418,15 @@ class MyTreasure extends Component { ...@@ -418,15 +418,15 @@ class MyTreasure extends Component {
render() { render() {
const { history, userInfo, country } = this.props; const { history, userInfo, country } = this.props;
const { const {
isEnd, isEnd,
isEmpty, isEmpty,
seconds, seconds,
teams, teams,
ids, ids,
isPhone, isPhone,
isAddress, isAddress,
isConfirm, isConfirm,
isSplit, isSplit,
splitInfo = {}, splitInfo = {},
confirmInfo: { confirmInfo: {
...@@ -474,7 +474,7 @@ class MyTreasure extends Component { ...@@ -474,7 +474,7 @@ class MyTreasure extends Component {
owner_uid: item.captain_uid owner_uid: item.captain_uid
})} })}
> >
<PrizeStatus <PrizeStatus
data={{ data={{
bind_phone: item.bind_phone, bind_phone: item.bind_phone,
bind_address: item.bind_address, bind_address: item.bind_address,
...@@ -493,7 +493,7 @@ class MyTreasure extends Component { ...@@ -493,7 +493,7 @@ class MyTreasure extends Component {
{/* 拆宝箱--弹窗,成功 */} {/* 拆宝箱--弹窗,成功 */}
<Mask visible={isSplit} handleToHide={() => this.handleToHideWindow('isSplit')}> <Mask visible={isSplit} handleToHide={() => this.handleToHideWindow('isSplit')}>
<SplitSuccess <SplitSuccess
ids={ids} ids={ids}
data={splitInfo} data={splitInfo}
handleToInvite={() => this.handleToInvite(splitInfo.treasure_code)} handleToInvite={() => this.handleToInvite(splitInfo.treasure_code)}
...@@ -501,7 +501,7 @@ class MyTreasure extends Component { ...@@ -501,7 +501,7 @@ class MyTreasure extends Component {
handleToBindAddress={this.handleToBindAddress} handleToBindAddress={this.handleToBindAddress}
successSplitTreasure={this.successSplitTreasure} successSplitTreasure={this.successSplitTreasure}
> >
<PrizeStatus <PrizeStatus
data={splitInfo} data={splitInfo}
handleToBindPhone={this.handleToBindPhone} handleToBindPhone={this.handleToBindPhone}
handleToBindAddress={this.handleToBindAddress} handleToBindAddress={this.handleToBindAddress}
...@@ -532,14 +532,14 @@ class MyTreasure extends Component { ...@@ -532,14 +532,14 @@ class MyTreasure extends Component {
{/* 绑定手机号--弹窗,确认 */} {/* 绑定手机号--弹窗,确认 */}
<Mask visible={isConfirm} handleToHide={() => this.handleToHideWindow('isConfirm')}> <Mask visible={isConfirm} handleToHide={() => this.handleToHideWindow('isConfirm')}>
<ConfirmPhone <ConfirmPhone
data={params} data={params}
bindInfo={bindInfo} bindInfo={bindInfo}
handleToCancle={() => this.handleToHideWindow('isConfirm')} handleToCancle={() => this.handleToHideWindow('isConfirm')}
successBindPhone={this.successBindPhone} successBindPhone={this.successBindPhone}
/> />
</Mask> </Mask>
{/* 绑定地址--弹窗 */} {/* 绑定地址--弹窗 */}
<Mask visible={isAddress} handleToHide={() => this.handleToHideWindow('isAddress')}> <Mask visible={isAddress} handleToHide={() => this.handleToHideWindow('isAddress')}>
<AddressPopup <AddressPopup
...@@ -556,8 +556,8 @@ class MyTreasure extends Component { ...@@ -556,8 +556,8 @@ class MyTreasure extends Component {
{/* 组队成功 */} {/* 组队成功 */}
<Mask visible={isCreate} handleToHide={() => this.handleToHideWindow('isCreate')}> <Mask visible={isCreate} handleToHide={() => this.handleToHideWindow('isCreate')}>
<CreateSuccess <CreateSuccess
data={createInfo} data={createInfo}
handleToInvite={() => { handleToInvite={() => {
this.handleToInvite(createInfo.treasure_code); this.handleToInvite(createInfo.treasure_code);
this.handleToHideWindow('isCreate'); this.handleToHideWindow('isCreate');
......
...@@ -63,6 +63,7 @@ class YearCourse extends Component { ...@@ -63,6 +63,7 @@ class YearCourse extends Component {
key: "" key: ""
}, },
followBarcode: '', followBarcode: '',
qrUrl:'',
sum:'', sum:'',
removable:'', removable:'',
currentId:'' currentId:''
...@@ -298,6 +299,9 @@ class YearCourse extends Component { ...@@ -298,6 +299,9 @@ class YearCourse extends Component {
.then(res => { .then(res => {
const {errno, data, msg} = res.data const {errno, data, msg} = res.data
if (errno == 0) { if (errno == 0) {
this.setState({
qrUrl:data.url
})
QRCode.toDataURL(data.url, (err, url) => { QRCode.toDataURL(data.url, (err, url) => {
this.setState({ this.setState({
followBarcode: url, followBarcode: url,
...@@ -380,7 +384,7 @@ class YearCourse extends Component { ...@@ -380,7 +384,7 @@ class YearCourse extends Component {
saveImage = () => { saveImage = () => {
let version = getParam('version') let version = getParam('version')
version = typeof version === 'string' ? version.replace('.', '').replace('.', '').slice(0, 3) : '' version = typeof version === 'string' ? version.replace('.', '').replace('.', '').slice(0, 3) : ''
const QRCodeUrl = '//julyedu-cdn.oss-cn-beijing.aliyuncs.com/2018christyear/h5/qrcode.jpg' const QRCodeUrl = this.state.qrUrl
if (version && parseInt(version) < 451) { if (version && parseInt(version) < 451) {
Toast.info('当前不支持此功能,升级到最新版本app可以点击保存二维码!', 3, null, false) Toast.info('当前不支持此功能,升级到最新版本app可以点击保存二维码!', 3, null, false)
} 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