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
62cd42f3
Commit
62cd42f3
authored
Dec 16, 2019
by
xuzhenghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pull
parent
963ff35b
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
66 additions
and
30 deletions
+66
-30
src/components/activity/newyear-2019/common/prizes/index.js
+1
-1
src/components/activity/newyear-2019/common/splitSuccess/index.js
+1
-1
src/components/activity/newyear-2019/common/system-bullet-screen/index.js
+4
-6
src/components/activity/newyear-2019/common/user-bullet-screen/bullet-screen.scss
+2
-0
src/components/activity/newyear-2019/landing/index.js
+10
-12
src/components/activity/newyear-2019/landing/landing.scss
+4
-0
src/components/activity/newyear-2019/myTreasure/team.js
+1
-1
src/components/activity/newyear-2019/preheat/LiveRoom/index.js
+12
-3
src/components/activity/newyear-2019/preheat/YearCourse/index.js
+1
-1
src/components/activity/newyear-2019/preheat/index.js
+17
-1
src/components/activity/newyear-2019/treasure-box/team.js
+13
-4
No files found.
src/components/activity/newyear-2019/common/prizes/index.js
View file @
62cd42f3
...
@@ -85,7 +85,7 @@ class Prizes extends Component {
...
@@ -85,7 +85,7 @@ class Prizes extends Component {
}
=
this
.
props
}
=
this
.
props
return
(
return
(
<>
<>
{
showSystemNotices
&&
<
SystemBulletScreen
/>
}
{
showSystemNotices
&&
<
SystemBulletScreen
bullets
=
{
this
.
state
.
notices
}
/>
}
<
div
className
=
{
'prizes-box'
}
ref
=
{
el
=>
this
.
prizeBox
=
el
}
>
<
div
className
=
{
'prizes-box'
}
ref
=
{
el
=>
this
.
prizeBox
=
el
}
>
<
a
href
=
"javascript:;"
className
=
'rule-btn'
onClick
=
{
this
.
showRules
}
>
活动规则
>
<
/a
>
<
a
href
=
"javascript:;"
className
=
'rule-btn'
onClick
=
{
this
.
showRules
}
>
活动规则
>
<
/a
>
<
div
className
=
{
`bg`
}
ref
=
{
el
=>
this
.
bg
=
el
}
/
>
<
div
className
=
{
`bg`
}
ref
=
{
el
=>
this
.
bg
=
el
}
/
>
...
...
src/components/activity/newyear-2019/common/splitSuccess/index.js
View file @
62cd42f3
...
@@ -70,7 +70,7 @@ class SplitSuccess extends Component {
...
@@ -70,7 +70,7 @@ class SplitSuccess extends Component {
{
{
item
.
prize
item
.
prize
?
<
span
className
=
"member-item__prize"
>
{
item
.
prize
}
<
/span
>
?
<
span
className
=
"member-item__prize"
>
{
item
.
prize
}
<
/span
>
:
<
span
className
=
"member-item__prize"
>
尚未
拆
开宝箱
<
/span
>
:
<
span
className
=
"member-item__prize"
>
尚未开宝箱
<
/span
>
}
}
<
/div
>
<
/div
>
))
))
...
...
src/components/activity/newyear-2019/common/system-bullet-screen/index.js
View file @
62cd42f3
...
@@ -61,17 +61,15 @@ class SystemBulletScreen extends Component {
...
@@ -61,17 +61,15 @@ class SystemBulletScreen extends Component {
content
.
style
.
transform
=
`translate3d(
${
-
(
contentWidth
-
wrapperWidth
)
-
10
}
px,0,0)`
content
.
style
.
transform
=
`translate3d(
${
-
(
contentWidth
-
wrapperWidth
)
-
10
}
px,0,0)`
},
1000
)
},
1000
)
}
else
{
}
else
{
this
.
swiper
.
slideNext
()
setTimeout
(()
=>
{
swiper
.
slideNext
()
},
3000
)
}
}
}
}
transitionEnd
=
()
=>
{
transitionEnd
=
()
=>
{
const
{
const
{
bullets
=
[
bullets
=
[]
'第一条消息,第一条消息,第一条消息,第一条消息,第一条消息,第一条消息,'
,
'第二条消息,第二条消息,第二条消息,第二条消息,第二条消息,第二条消息,'
,
'第三条消息,第三条消息,第三条消息,第三条消息,第三条消息,第三条消息,'
,
]
}
=
this
.
props
}
=
this
.
props
const
len
=
bullets
.
length
*
3
const
len
=
bullets
.
length
*
3
...
...
src/components/activity/newyear-2019/common/user-bullet-screen/bullet-screen.scss
View file @
62cd42f3
...
@@ -11,6 +11,8 @@
...
@@ -11,6 +11,8 @@
height
:
100%
;
height
:
100%
;
padding
:
2px
;
padding
:
2px
;
line-height
:
26px
;
line-height
:
26px
;
display
:
flex
;
align-items
:
center
;
}
}
.avatar
{
.avatar
{
...
...
src/components/activity/newyear-2019/landing/index.js
View file @
62cd42f3
...
@@ -34,6 +34,7 @@ class Landing extends Component {
...
@@ -34,6 +34,7 @@ class Landing extends Component {
componentDidMount
()
{
componentDidMount
()
{
this
.
fetchPageData
()
this
.
fetchPageData
()
window
.
showFollowAlert
=
this
.
remind
.
bind
(
this
,
'create'
)
}
}
componentDidUpdate
(
prevProps
)
{
componentDidUpdate
(
prevProps
)
{
...
@@ -54,7 +55,8 @@ class Landing extends Component {
...
@@ -54,7 +55,8 @@ class Landing extends Component {
this
.
setState
({
this
.
setState
({
teamData
:
data
,
teamData
:
data
,
isCaptain
:
sessionStorage
.
getItem
(
'isCaptain'
)
?
sessionStorage
.
getItem
(
'isCaptain'
)
:
getParam
(
'origin'
)
==
1
isCaptain
:
sessionStorage
.
getItem
(
'isCaptain'
)
?
sessionStorage
.
getItem
(
'isCaptain'
)
:
getParam
(
'origin'
)
==
1
,
activityEnd
:
data
.
status
==
5
})
})
let
searchParams
=
new
URLSearchParams
(
window
.
location
.
search
)
let
searchParams
=
new
URLSearchParams
(
window
.
location
.
search
)
...
@@ -67,12 +69,6 @@ class Landing extends Component {
...
@@ -67,12 +69,6 @@ class Landing extends Component {
this
.
showSharePromptWithParam
()
this
.
showSharePromptWithParam
()
}
else
if
(
code
===
12005
)
{
this
.
setState
({
activityEnd
:
true
})
}
else
{
}
else
{
Toast
.
info
(
msg
,
2
,
null
,
false
)
Toast
.
info
(
msg
,
2
,
null
,
false
)
}
}
...
@@ -235,7 +231,7 @@ class Landing extends Component {
...
@@ -235,7 +231,7 @@ class Landing extends Component {
}
}
remind
=
(
type
=
'create'
,
treasure_code
,
origin
=
1
)
=>
{
remind
=
(
type
=
'create'
,
treasure_code
,
origin
=
1
)
=>
{
const
{
match
,
history
,
user
}
=
this
.
props
const
{
user
}
=
this
.
props
http
.
get
(
`
${
API
[
"base-api"
]}
/wx/user_temporary_qrcode/
${
user
.
data
.
uid
}
`
)
http
.
get
(
`
${
API
[
"base-api"
]}
/wx/user_temporary_qrcode/
${
user
.
data
.
uid
}
`
)
.
then
(
res
=>
{
.
then
(
res
=>
{
const
{
data
}
=
res
.
data
const
{
data
}
=
res
.
data
...
@@ -289,10 +285,12 @@ class Landing extends Component {
...
@@ -289,10 +285,12 @@ class Landing extends Component {
closable
:
false
,
closable
:
false
,
close
:
()
=>
{
close
:
()
=>
{
sessionStorage
.
removeItem
(
'showShareTip'
)
sessionStorage
.
removeItem
(
'showShareTip'
)
this
.
getFollowStatus
()
if
(
!
user
.
hasError
)
{
.
then
(
isFollow
=>
{
this
.
getFollowStatus
()
!
isFollow
&&
this
.
remind
(
'create'
,
getParam
(
'treasure_code'
),
1
)
.
then
(
isFollow
=>
{
})
!
isFollow
&&
this
.
remind
(
'create'
,
getParam
(
'treasure_code'
),
1
)
})
}
}
}
})
})
}
}
...
...
src/components/activity/newyear-2019/landing/landing.scss
View file @
62cd42f3
...
@@ -391,3 +391,7 @@
...
@@ -391,3 +391,7 @@
width
:
312px
;
width
:
312px
;
}
}
}
}
.year19-index
{
display
:
none
;
}
src/components/activity/newyear-2019/myTreasure/team.js
View file @
62cd42f3
...
@@ -161,7 +161,7 @@ class TreasureTeam extends Component {
...
@@ -161,7 +161,7 @@ class TreasureTeam extends Component {
{
{
currentMember
.
prize_name
currentMember
.
prize_name
?
<
p
className
=
"team-prize"
>
{
currentMember
.
prize_name
}
<
/p
>
?
<
p
className
=
"team-prize"
>
{
currentMember
.
prize_name
}
<
/p
>
:
<
p
className
=
"team-prize"
>
尚未
拆
开宝箱
<
/p
>
:
<
p
className
=
"team-prize"
>
尚未开宝箱
<
/p
>
}
}
{
{
currentMember
.
uid
==
userInfo
.
uid
currentMember
.
uid
==
userInfo
.
uid
...
...
src/components/activity/newyear-2019/preheat/LiveRoom/index.js
View file @
62cd42f3
...
@@ -41,7 +41,7 @@ class LiveRoom extends Component {
...
@@ -41,7 +41,7 @@ class LiveRoom extends Component {
// 检查是否已登录
// 检查是否已登录
const
{
hasError
,
data
=
{}}
=
this
.
props
.
user
;
const
{
hasError
,
data
=
{}}
=
this
.
props
.
user
;
if
(
hasError
)
{
if
(
hasError
)
{
this
.
props
.
history
.
push
(
'/passport/login'
);
this
.
toLogin
(
);
}
else
{
}
else
{
http
.
get
(
`
${
API
[
'base-api'
]}
/sys/createLiveQrcode/
${
id
}
`
).
then
(
res
=>
{
http
.
get
(
`
${
API
[
'base-api'
]}
/sys/createLiveQrcode/
${
id
}
`
).
then
(
res
=>
{
let
{
errno
,
data
,
msg
}
=
res
.
data
;
let
{
errno
,
data
,
msg
}
=
res
.
data
;
...
@@ -67,7 +67,7 @@ class LiveRoom extends Component {
...
@@ -67,7 +67,7 @@ class LiveRoom extends Component {
toLivingRoom
=
(
id
)
=>
{
toLivingRoom
=
(
id
)
=>
{
const
{
hasError
,
data
=
{}}
=
this
.
props
.
user
;
const
{
hasError
,
data
=
{}}
=
this
.
props
.
user
;
if
(
hasError
)
{
if
(
hasError
)
{
this
.
props
.
history
.
push
(
'/passport/login'
);
this
.
toLogin
(
);
}
else
{
}
else
{
window
.
location
.
href
=
`
${
window
.
location
.
protocol
}
//www.julyedu.com/live/m_room/
${
id
}
`
window
.
location
.
href
=
`
${
window
.
location
.
protocol
}
//www.julyedu.com/live/m_room/
${
id
}
`
}
}
...
@@ -76,7 +76,7 @@ class LiveRoom extends Component {
...
@@ -76,7 +76,7 @@ class LiveRoom extends Component {
checkVideo
=
(
url
)
=>
{
checkVideo
=
(
url
)
=>
{
const
{
hasError
,
data
=
{}}
=
this
.
props
.
user
;
const
{
hasError
,
data
=
{}}
=
this
.
props
.
user
;
if
(
hasError
)
{
if
(
hasError
)
{
this
.
props
.
history
.
push
(
'/passport/login'
);
this
.
toLogin
(
);
}
else
{
}
else
{
const
vCourseId
=
url
.
split
(
'/'
)[
0
];
const
vCourseId
=
url
.
split
(
'/'
)[
0
];
history
.
push
(
`/play/video?id=
${
vCourseId
}
`
)
history
.
push
(
`/play/video?id=
${
vCourseId
}
`
)
...
@@ -103,6 +103,15 @@ class LiveRoom extends Component {
...
@@ -103,6 +103,15 @@ class LiveRoom extends Component {
}
}
}
}
// 去登录
toLogin
=
()
=>
{
if
(
!
getParam
(
'version'
))
{
this
.
props
.
history
.
push
(
'/passport/login'
)
}
else
{
SendMessageToApp
(
"toLogin"
)
}
}
render
()
{
render
()
{
const
{
list
,
showMark
,
subUrl
}
=
this
.
state
;
const
{
list
,
showMark
,
subUrl
}
=
this
.
state
;
return
(
return
(
...
...
src/components/activity/newyear-2019/preheat/YearCourse/index.js
View file @
62cd42f3
...
@@ -438,7 +438,7 @@ class YearCourse extends Component {
...
@@ -438,7 +438,7 @@ class YearCourse extends Component {
{
/*浮框*/
}
{
/*浮框*/
}
<
div
className
=
'nav-right'
>
<
div
className
=
'nav-right'
>
<
span
onClick
=
{
this
.
toBoxList
}
className
=
'nav-right__link'
>
<
span
onClick
=
{
this
.
toBoxList
}
className
=
'nav-right__link'
>
未
拆
宝箱
未
开
宝箱
{
{
removable
>
0
&&
removable
>
0
&&
<
i
className
=
"nav-right__number"
>
{
removable
}
<
/i
>
<
i
className
=
"nav-right__number"
>
{
removable
}
<
/i
>
...
...
src/components/activity/newyear-2019/preheat/index.js
View file @
62cd42f3
...
@@ -131,7 +131,23 @@ export default class index extends Component {
...
@@ -131,7 +131,23 @@ export default class index extends Component {
<
/div
>
<
/div
>
<
div
className
=
"banner-treasure__decorate"
><
/div
>
<
div
className
=
"banner-treasure__decorate"
><
/div
>
<
/div
>
<
/div
>
{
/*浮框*/
}
<
div
className
=
'nav-right'
>
<
span
onClick
=
{
this
.
toBoxList
}
className
=
'nav-right__link'
>
未开宝箱
{
removable
>
0
&&
<
i
className
=
"nav-right__number"
>
{
removable
}
<
/i
>
}
<
/span
>
<
a
onClick
=
{()
=>
this
.
toYearWish
()}
className
=
'nav-right__link'
>
心愿单
{
this
.
state
.
txt1
>
0
&&
<
i
className
=
"nav-right__number"
>
{
this
.
state
.
txt1
}
<
/i
>
}
<
/a
>
<
/div
>
{
/* 大咖直播 */
}
{
/* 大咖直播 */
}
<
LiveRoom
/>
<
LiveRoom
/>
...
...
src/components/activity/newyear-2019/treasure-box/team.js
View file @
62cd42f3
import
React
,
{
Component
}
from
'react'
;
import
React
,
{
Component
}
from
'react'
;
import
'./team.scss'
import
'./team.scss'
import
{
getParam
,
http
,
SendMessageToApp
,
browser
}
from
"@/utils"
import
{
getParam
,
http
,
SendMessageToApp
}
from
"@/utils"
import
{
Toast
}
from
'antd-mobile'
;
import
{
Toast
}
from
'antd-mobile'
;
import
{
withRouter
}
from
'react-router-dom'
;
import
{
withRouter
}
from
'react-router-dom'
;
import
{
compose
}
from
"redux"
import
{
compose
}
from
"redux"
...
@@ -54,7 +54,7 @@ class TeamInfo extends Component {
...
@@ -54,7 +54,7 @@ class TeamInfo extends Component {
// 跳转到我的宝箱页
// 跳转到我的宝箱页
toYearTreasure
=
(
close
)
=>
{
toYearTreasure
=
(
close
)
=>
{
if
(
this
.
props
.
user
.
hasError
)
{
if
(
this
.
props
.
user
.
hasError
)
{
this
.
props
.
history
.
push
(
'/passport/login'
);
this
.
toLogin
(
);
}
else
{
}
else
{
let
search
=
''
;
let
search
=
''
;
if
(
close
)
{
if
(
close
)
{
...
@@ -69,10 +69,19 @@ class TeamInfo extends Component {
...
@@ -69,10 +69,19 @@ class TeamInfo extends Component {
}
}
// 去登录
toLogin
=
()
=>
{
if
(
!
getParam
(
'version'
))
{
this
.
props
.
history
.
push
(
'/passport/login'
)
}
else
{
SendMessageToApp
(
"toLogin"
)
}
}
// 邀请好友组队
// 邀请好友组队
createTeam
=
()
=>
{
createTeam
=
()
=>
{
if
(
this
.
props
.
user
.
hasError
)
{
if
(
this
.
props
.
user
.
hasError
)
{
this
.
props
.
history
.
push
(
'/passport/login'
);
this
.
toLogin
(
);
}
else
{
}
else
{
const
{
is_my_team
,
my_team
:
{
treasure_code
}}
=
this
.
state
;
const
{
is_my_team
,
my_team
:
{
treasure_code
}}
=
this
.
state
;
if
(
is_my_team
)
{
// 有自己的队伍
if
(
is_my_team
)
{
// 有自己的队伍
...
@@ -120,7 +129,7 @@ class TeamInfo extends Component {
...
@@ -120,7 +129,7 @@ class TeamInfo extends Component {
}
else
if
(
removable
===
0
)
{
}
else
if
(
removable
===
0
)
{
Text
=
`共
${
total
}
个宝箱`
;
Text
=
`共
${
total
}
个宝箱`
;
}
else
{
}
else
{
Text
=
`共
${
total
}
个宝箱/
${
removable
}
个未
拆
`
;
Text
=
`共
${
total
}
个宝箱/
${
removable
}
个未
开
`
;
}
}
return
(
return
(
...
...
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