Commit d9ff8bb7 by zhanghaozhe

android

parent a318b046
...@@ -119,9 +119,9 @@ class Landing extends Component { ...@@ -119,9 +119,9 @@ class Landing extends Component {
handleToMyTreasure = () => { handleToMyTreasure = () => {
this.joinSuccessPopup && this.joinSuccessPopup.remove() this.joinSuccessPopup && this.joinSuccessPopup.remove()
if(getParam('version')) { if (getParam('version')) {
history.push(`/year/yearTreasure?id=${id}&version=${getParam('version')}`) history.push(`/year/yearTreasure?id=${id}&version=${getParam('version')}`)
}else { } else {
history.push(`/year/yearTreasure?id=${id}`) history.push(`/year/yearTreasure?id=${id}`)
} }
} }
...@@ -276,17 +276,13 @@ class Landing extends Component { ...@@ -276,17 +276,13 @@ class Landing extends Component {
showShareTip = () => { showShareTip = () => {
const {user} = this.props const {user} = this.props
if (browser.isAndroidApp) { if (browser.isAndroidApp || browser.isIOSApp) {
} else if (browser.isIOSApp) {
SendMessageToApp('toShare', { SendMessageToApp('toShare', {
title: `@${user.data.username} 邀您一起组队拿豪礼!`, title: `@${user.data.username} 邀您一起组队拿豪礼!`,
desc: `加入我的队伍,机械键盘,纸质书籍等超多奖品等你拿!`, desc: `加入我的队伍,机械键盘,纸质书籍等超多奖品等你拿!`,
link: `${window.location.origin}/${location.pathname}?treasure_code=${getParam('treasure_code')}&origin=2`, link: `${window.location.origin}/${location.pathname}?treasure_code=${getParam('treasure_code')}&origin=2`,
//todo 分享图片更换 imgUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png'
imgUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newIndex/community/tou5_bj.png'
}) })
} 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