Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mr-julyedu
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
baiguangyao
mr-julyedu
Commits
27037c04
Commit
27037c04
authored
Dec 18, 2019
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '00'
parents
5d85c60e
8dda649f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
10 deletions
+9
-10
src/components/activity/newyear-2019/myTreasure/index.js
+2
-2
src/components/activity/newyear-2019/myTreasure/team.js
+3
-4
src/components/activity/newyear-2019/treasure-box/team.js
+4
-4
No files found.
src/components/activity/newyear-2019/myTreasure/index.js
View file @
27037c04
...
@@ -345,9 +345,9 @@ class MyTreasure extends Component {
...
@@ -345,9 +345,9 @@ class MyTreasure extends Component {
handleToInvite
=
(
treasure_code
)
=>
{
handleToInvite
=
(
treasure_code
)
=>
{
const
{
history
}
=
this
.
props
const
{
history
}
=
this
.
props
if
(
getParam
(
'version'
))
{
if
(
getParam
(
'version'
))
{
history
.
push
(
`
/activity/newyear-2019/landing?treasure_code=
${
treasure_code
}
&origin=1&version=
${
getParam
(
'version'
)}
`
)
window
.
location
.
assign
(
`https://h5.julyedu.com
/activity/newyear-2019/landing?treasure_code=
${
treasure_code
}
&origin=1&version=
${
getParam
(
'version'
)}
`
)
}
else
{
}
else
{
history
.
push
(
`
/activity/newyear-2019/landing?treasure_code=
${
treasure_code
}
&origin=1`
)
window
.
location
.
assign
(
`https://h5.julyedu.com
/activity/newyear-2019/landing?treasure_code=
${
treasure_code
}
&origin=1`
)
}
}
}
}
...
...
src/components/activity/newyear-2019/myTreasure/team.js
View file @
27037c04
...
@@ -138,8 +138,8 @@ class TreasureTeam extends Component {
...
@@ -138,8 +138,8 @@ class TreasureTeam extends Component {
<>
<>
{
{
is_captain
is_captain
?
<
Link
className
=
"team-button"
to
=
{
`/activity/newyear-2019/landing?treasure_code=
${
treasure_code
}
&origin=1`
}
>
继续邀请队友
<
/Link
>
?
<
a
className
=
"team-button"
href
=
{
`https://h5.julyedu.com/activity/newyear-2019/landing?treasure_code=
${
treasure_code
}
&origin=1`
}
>
继续邀请队友
<
/a
>
:
<
Link
className
=
"team-button"
to
=
{
`/activity/newyear-2019/landing?treasure_code=
${
treasure_code
}
&origin=2`
}
>
帮好友完成组队
<
/Link
>
:
<
a
className
=
"team-button"
href
=
{
`https://h5.julyedu.com/activity/newyear-2019/landing?treasure_code=
${
treasure_code
}
&origin=2`
}
>
帮好友完成组队
<
/a
>
}
}
<
/
>
<
/
>
}
}
...
@@ -176,4 +176,4 @@ class TreasureTeam extends Component {
...
@@ -176,4 +176,4 @@ class TreasureTeam extends Component {
}
}
}
}
export
default
TreasureTeam
;
export
default
TreasureTeam
;
\ No newline at end of file
src/components/activity/newyear-2019/treasure-box/team.js
View file @
27037c04
...
@@ -102,9 +102,9 @@ class TeamInfo extends Component {
...
@@ -102,9 +102,9 @@ class TeamInfo extends Component {
// 直接跳转
// 直接跳转
if
(
!
getParam
(
'version'
))
{
if
(
!
getParam
(
'version'
))
{
this
.
props
.
history
.
push
(
'
/activity/newyear-2019/landing?origin=1&treasure_code='
+
treasure_code
);
window
.
location
.
assign
(
'https://h5.julyedu.com
/activity/newyear-2019/landing?origin=1&treasure_code='
+
treasure_code
);
}
else
{
}
else
{
this
.
props
.
history
.
push
(
'
/activity/newyear-2019/landing?origin=1&treasure_code='
+
treasure_code
+
'&version='
+
getParam
(
'version'
));
window
.
location
.
assign
(
'https://h5.julyedu.com
/activity/newyear-2019/landing?origin=1&treasure_code='
+
treasure_code
+
'&version='
+
getParam
(
'version'
));
}
}
}
else
{
// 没自己的队伍
}
else
{
// 没自己的队伍
...
@@ -114,9 +114,9 @@ class TeamInfo extends Component {
...
@@ -114,9 +114,9 @@ class TeamInfo extends Component {
if
(
code
===
200
)
{
if
(
code
===
200
)
{
const
{
treasure_code
}
=
data
;
const
{
treasure_code
}
=
data
;
if
(
!
getParam
(
'version'
))
{
if
(
!
getParam
(
'version'
))
{
this
.
props
.
history
.
push
(
'
/activity/newyear-2019/landing?origin=1&treasure_code='
+
treasure_code
);
window
.
location
.
assign
(
'https://h5.julyedu.com
/activity/newyear-2019/landing?origin=1&treasure_code='
+
treasure_code
);
}
else
{
}
else
{
this
.
props
.
history
.
push
(
'
/activity/newyear-2019/landing?origin=1&treasure_code='
+
treasure_code
+
'&version='
+
getParam
(
'version'
));
window
.
location
.
assign
(
'https://h5.julyedu.com
/activity/newyear-2019/landing?origin=1&treasure_code='
+
treasure_code
+
'&version='
+
getParam
(
'version'
));
}
}
}
else
{
}
else
{
Toast
.
info
(
msg
);
Toast
.
info
(
msg
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment