Commit a0a393e1 by dazhou

组队开宝箱跳转链接h5调整为m

parent b1a57aea
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -363,13 +363,13 @@ class MyTreasure extends Component { ...@@ -363,13 +363,13 @@ class MyTreasure extends Component {
handleToInvite = (treasure_code) => { handleToInvite = (treasure_code) => {
if (getParam("version")) { if (getParam("version")) {
window.location.assign( window.location.assign(
`https://h5.julyedu.com/box/landing?treasure_code=${treasure_code}&origin=1&version=${getParam( `https://m.julyedu.com/box/landing?treasure_code=${treasure_code}&origin=1&version=${getParam(
"version" "version"
)}` )}`
) )
} else { } else {
window.location.assign( window.location.assign(
`https://h5.julyedu.com/box/landing?treasure_code=${treasure_code}&origin=1` `https://m.julyedu.com/box/landing?treasure_code=${treasure_code}&origin=1`
) )
} }
} }
......
...@@ -134,7 +134,7 @@ class TreasureTeam extends Component { ...@@ -134,7 +134,7 @@ class TreasureTeam extends Component {
is_captain ? ( is_captain ? (
<a <a
className="team-button" className="team-button"
href={`https://h5.julyedu.com/box/landing?treasure_code=${treasure_code}&origin=1&version=${getParam( href={`https://m.julyedu.com/box/landing?treasure_code=${treasure_code}&origin=1&version=${getParam(
"version" "version"
)}`} )}`}
> >
...@@ -143,7 +143,7 @@ class TreasureTeam extends Component { ...@@ -143,7 +143,7 @@ class TreasureTeam extends Component {
) : ( ) : (
<a <a
className="team-button" className="team-button"
href={`https://h5.julyedu.com/box/landing?treasure_code=${treasure_code}&origin=2&version=${getParam( href={`https://m.julyedu.com/box/landing?treasure_code=${treasure_code}&origin=2&version=${getParam(
"version" "version"
)}`} )}`}
> >
...@@ -153,14 +153,14 @@ class TreasureTeam extends Component { ...@@ -153,14 +153,14 @@ class TreasureTeam extends Component {
) : is_captain ? ( ) : is_captain ? (
<a <a
className="team-button" className="team-button"
href={`https://h5.julyedu.com/box/landing?treasure_code=${treasure_code}&origin=1`} href={`https://m.julyedu.com/box/landing?treasure_code=${treasure_code}&origin=1`}
> >
继续邀请队友 继续邀请队友
</a> </a>
) : ( ) : (
<a <a
className="team-button" className="team-button"
href={`https://h5.julyedu.com/box/landing?treasure_code=${treasure_code}&origin=2`} href={`https://m.julyedu.com/box/landing?treasure_code=${treasure_code}&origin=2`}
> >
帮好友完成组队 帮好友完成组队
</a> </a>
......
...@@ -120,12 +120,12 @@ class TeamInfo extends Component { ...@@ -120,12 +120,12 @@ class TeamInfo extends Component {
//todo 跳转 //todo 跳转
// this.props.history.push('/box/landing?origin=1&treasure_code=' + treasure_code); // this.props.history.push('/box/landing?origin=1&treasure_code=' + treasure_code);
window.location.assign( window.location.assign(
"https://h5.julyedu.com/box/landing?origin=1&treasure_code=" + "https://m.julyedu.com/box/landing?origin=1&treasure_code=" +
treasure_code treasure_code
) )
} else { } else {
window.location.assign( window.location.assign(
"https://h5.julyedu.com/box/landing?origin=1&treasure_code=" + "https://m.julyedu.com/box/landing?origin=1&treasure_code=" +
treasure_code + treasure_code +
"&version=" + "&version=" +
getParam("version") getParam("version")
...@@ -140,12 +140,12 @@ class TeamInfo extends Component { ...@@ -140,12 +140,12 @@ class TeamInfo extends Component {
const { treasure_code } = data const { treasure_code } = data
if (!getParam("version")) { if (!getParam("version")) {
window.location.assign( window.location.assign(
"https://h5.julyedu.com/box/landing?origin=1&treasure_code=" + "https://m.julyedu.com/box/landing?origin=1&treasure_code=" +
treasure_code treasure_code
) )
} else { } else {
window.location.assign( window.location.assign(
"https://h5.julyedu.com/box/landing?origin=1&treasure_code=" + "https://m.julyedu.com/box/landing?origin=1&treasure_code=" +
treasure_code + treasure_code +
"&version=" + "&version=" +
getParam("version") getParam("version")
......
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