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
11465701
Commit
11465701
authored
Dec 16, 2019
by
FE
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '00' into pre
parents
9ab6492a
1601c3e8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
9 deletions
+33
-9
src/components/activity/newyear-2019/myTreasure/index.js
+21
-6
src/components/activity/newyear-2019/preheat/YearCourse/index.js
+7
-1
src/components/activity/newyear-2019/treasure-box/team.js
+5
-2
No files found.
src/components/activity/newyear-2019/myTreasure/index.js
View file @
11465701
...
@@ -8,10 +8,9 @@ import CreateSuccess from './../common/createSuccess/index';
...
@@ -8,10 +8,9 @@ import CreateSuccess from './../common/createSuccess/index';
import
TreasureTeam
from
'./team'
;
import
TreasureTeam
from
'./team'
;
import
PrizeStatus
from
'./prize'
;
import
PrizeStatus
from
'./prize'
;
import
SplitSuccess
from
'./../common/splitSuccess/index'
;
import
SplitSuccess
from
'./../common/splitSuccess/index'
;
import
{
http
,
getParam
}
from
'@/utils'
;
import
{
http
,
getParam
,
SendMessageToApp
}
from
'@/utils'
;
import
Mask
from
'./mask'
;
import
Mask
from
'./mask'
;
import
'./index.scss'
;
import
'./index.scss'
;
import
{
split
}
from
'react-ace'
;
@
connect
(({
country
,
user
})
=>
({
@
connect
(({
country
,
user
})
=>
({
country
,
country
,
...
@@ -357,25 +356,41 @@ class MyTreasure extends Component {
...
@@ -357,25 +356,41 @@ class MyTreasure extends Component {
// 奖品,代金券碎片--合成
// 奖品,代金券碎片--合成
toComposeCoupon
=
()
=>
{
toComposeCoupon
=
()
=>
{
const
{
history
}
=
this
.
props
;
const
{
history
}
=
this
.
props
;
history
.
push
(
'/coupons/my-patch'
);
if
(
getParam
(
'version'
))
{
SendMessageToApp
(
"toCoupon"
)
}
else
{
history
.
push
(
'/coupons/my-patch'
);
}
}
}
// 奖品,指定课程代金券--使用
// 奖品,指定课程代金券--使用
toUseCoupon
=
(
id
)
=>
{
toUseCoupon
=
(
id
)
=>
{
const
{
history
}
=
this
.
props
;
const
{
history
}
=
this
.
props
;
history
.
push
(
`/detail?id=
${
id
}
`
);
if
(
getParam
(
'version'
))
{
SendMessageToApp
(
"toCourse"
,
id
)
}
else
{
history
.
push
(
`/detail?id=
${
id
}
`
);
}
}
}
// 第三:奖品,通用课程代金券--使用
// 第三:奖品,通用课程代金券--使用
toCourseList
=
()
=>
{
toCourseList
=
()
=>
{
const
{
history
}
=
this
.
props
;
const
{
history
}
=
this
.
props
;
history
.
push
(
'/classify'
);
if
(
getParam
(
'version'
))
{
SendMessageToApp
(
'toQualityCourse'
)
}
else
{
history
.
push
(
'/classify'
);
}
}
}
// 第三:奖品,现金红包--提现
// 第三:奖品,现金红包--提现
toFecthMoney
=
()
=>
{
toFecthMoney
=
()
=>
{
const
{
history
}
=
this
.
props
;
const
{
history
}
=
this
.
props
;
history
.
push
(
'/scholarship'
);
if
(
getParam
(
'version'
))
{
SendMessageToApp
(
'toAccount'
)
}
else
{
history
.
push
(
'/scholarship'
);
}
}
}
// 弹窗--隐藏
// 弹窗--隐藏
...
...
src/components/activity/newyear-2019/preheat/YearCourse/index.js
View file @
11465701
...
@@ -87,6 +87,8 @@ class YearCourse extends Component {
...
@@ -87,6 +87,8 @@ class YearCourse extends Component {
shouldComponentUpdate
(
nextProps
,
nextState
,
nextContext
)
{
shouldComponentUpdate
(
nextProps
,
nextState
,
nextContext
)
{
if
(
this
.
props
.
isAppUpdate
!==
nextProps
.
isAppUpdate
)
{
if
(
this
.
props
.
isAppUpdate
!==
nextProps
.
isAppUpdate
)
{
this
.
getTeamInfo
()
this
.
getLength
()
this
.
fetchBigCourse
()
this
.
fetchBigCourse
()
this
.
fetchFreeCourse
()
this
.
fetchFreeCourse
()
this
.
fetchGroupCourse
()
this
.
fetchGroupCourse
()
...
@@ -414,7 +416,11 @@ class YearCourse extends Component {
...
@@ -414,7 +416,11 @@ class YearCourse extends Component {
search
=
`?id=
${
currentId
}
`
search
=
`?id=
${
currentId
}
`
}
}
if
(
isLogin
)
{
if
(
isLogin
)
{
this
.
props
.
history
.
push
(
`/year/yearTreasure
${
search
}
`
)
if
(
!
getParam
(
'version'
))
{
this
.
props
.
history
.
push
(
`/year/yearTreasure
${
search
}
`
)
}
else
{
this
.
props
.
history
.
push
(
`/year/yearTreasure
${
search
}
?version=
${
getParam
(
'version'
)}
`
)
}
}
else
{
}
else
{
this
.
toLogin
()
this
.
toLogin
()
}
}
...
...
src/components/activity/newyear-2019/treasure-box/team.js
View file @
11465701
...
@@ -64,9 +64,12 @@ class TeamInfo extends Component {
...
@@ -64,9 +64,12 @@ class TeamInfo extends Component {
search
=
`?id=
${
current
.
id
}
`
;
search
=
`?id=
${
current
.
id
}
`
;
}
}
}
}
this
.
props
.
history
.
push
(
`/year/yearTreasure
${
search
}
`
);
if
(
!
getParam
(
'version'
))
{
this
.
props
.
history
.
push
(
`/year/yearTreasure
${
search
}
`
);
}
else
{
this
.
props
.
history
.
push
(
`/year/yearTreasure
${
search
}
?version=
${
getParam
(
'version'
)}
`
);
}
}
}
}
}
// 去登录
// 去登录
...
...
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