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
d86b6025
Commit
d86b6025
authored
Dec 18, 2019
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
活动结束状态
parent
a35c8ab8
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
53 additions
and
9 deletions
+53
-9
src/components/activity/newyear-2019/landing/index.js
+22
-8
src/components/activity/newyear-2019/landing/landing.scss
+28
-0
src/components/activity/newyear-2019/treasure-box/team.js
+3
-1
No files found.
src/components/activity/newyear-2019/landing/index.js
View file @
d86b6025
...
@@ -276,14 +276,15 @@ class Landing extends Component {
...
@@ -276,14 +276,15 @@ class Landing extends Component {
}
}
remind
=
(
type
=
'create'
,
treasure_code
,
origin
=
1
)
=>
{
remind
=
(
type
=
'create'
,
trea
remind
sure_code
,
origin
=
1
)
=>
{
const
{
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
return
data
.
url
return
data
.
url
}).
then
(
text
=>
{
}).
then
(
text
=>
{
QRCode
.
toDataURL
(
text
)
//todo text
QRCode
.
toDataURL
(
'm.julyedu.com'
)
.
then
(
url
=>
{
.
then
(
url
=>
{
Popup
({
Popup
({
title
:
'提醒服务'
,
title
:
'提醒服务'
,
...
@@ -397,7 +398,8 @@ class Landing extends Component {
...
@@ -397,7 +398,8 @@ class Landing extends Component {
lack_member
,
lack_member
,
team_num
,
team_num
,
prize_info
,
prize_info
,
my_team
my_team
,
standby_plan
},
},
activityEnd
,
activityEnd
,
isCaptain
isCaptain
...
@@ -409,14 +411,23 @@ class Landing extends Component {
...
@@ -409,14 +411,23 @@ class Landing extends Component {
* 3-已加入当前队伍
* 3-已加入当前队伍
* 4-已加入别的队伍
* 4-已加入别的队伍
* */
* */
return
(
return
(
<
div
id
=
{
'landing'
}
>
<
div
id
=
{
'landing'
}
>
{
!
standby_plan
&&
<
div
id
=
"to-square"
>
<
div
id
=
"to-square"
>
<
a
href
=
'javascript:'
onClick
=
{
this
.
toSquare
}
>
前往活动会场,享更多福利!
>><
/a
>
<
a
href
=
'javascript:'
onClick
=
{
this
.
toSquare
}
>
前往活动会场,享更多福利!
>><
/a
>
<
/div
>
<
/div
>
}
<
BoxContainer
>
<
BoxContainer
>
<
i
className
=
"snow-deco"
/>
<
i
className
=
"snow-deco"
/>
{
standby_plan
&&
<>
<
WhiteSpace
className
=
{
'standby-space'
}
/
>
<
div
className
=
{
'standby-tip'
}
>
点击右上角,选择“在浏览器打开”
<
/div
>
<
/
>
}
<
img
className
=
'main-avatar'
<
img
className
=
'main-avatar'
src
=
{
head_img
}
alt
=
""
/>
src
=
{
head_img
}
alt
=
""
/>
{
{
...
@@ -474,9 +485,12 @@ class Landing extends Component {
...
@@ -474,9 +485,12 @@ class Landing extends Component {
<
div
className
=
"group-des"
>
<
div
className
=
"group-des"
>
还差
{
lack_member
}
名队员即可获得当前宝箱哦
~
还差
{
lack_member
}
名队员即可获得当前宝箱哦
~
<
/div
>
<
/div
>
{
!
standby_plan
&&
<
button
type
=
'button'
className
=
{
'invite-btn'
}
onClick
=
{
this
.
showShareTip
}
>
<
button
type
=
'button'
className
=
{
'invite-btn'
}
onClick
=
{
this
.
showShareTip
}
>
邀请好友加入队伍
邀请好友加入队伍
<
/button
>
<
/button
>
}
<
/
>
<
/
>
}
}
{
{
...
@@ -491,14 +505,14 @@ class Landing extends Component {
...
@@ -491,14 +505,14 @@ class Landing extends Component {
}
}
<
/div
>
<
/div
>
{
{
my_team
[
'is_team'
]
?
!
standby_plan
&&
(
my_team
[
'is_team'
]
?
<
button
type
=
'button'
className
=
{
'invite-btn'
}
<
button
type
=
'button'
className
=
{
'invite-btn'
}
onClick
=
{
this
.
inviteMembers
.
bind
(
this
,
my_team
[
'treasure_code'
])}
>
onClick
=
{
this
.
inviteMembers
.
bind
(
this
,
my_team
[
'treasure_code'
])}
>
继续组队
继续组队
<
/button
>
<
/button
>
:
<
button
type
=
'button'
className
=
{
'invite-btn'
}
onClick
=
{
this
.
createMyTeam
}
>
:
<
button
type
=
'button'
className
=
{
'invite-btn'
}
onClick
=
{
this
.
createMyTeam
}
>
创建我的队伍
创建我的队伍
<
/button
>
<
/button>
)
}
}
<
/
>
<
/
>
}
}
...
@@ -514,14 +528,14 @@ class Landing extends Component {
...
@@ -514,14 +528,14 @@ class Landing extends Component {
}
}
<
/div
>
<
/div
>
{
{
my_team
[
'is_team'
]
?
!
standby_plan
&&
(
my_team
[
'is_team'
]
?
<
button
type
=
'button'
className
=
{
'invite-btn'
}
<
button
type
=
'button'
className
=
{
'invite-btn'
}
onClick
=
{
this
.
inviteMembers
.
bind
(
this
,
my_team
[
'treasure_code'
])}
>
onClick
=
{
this
.
inviteMembers
.
bind
(
this
,
my_team
[
'treasure_code'
])}
>
继续组队
继续组队
<
/button
>
<
/button
>
:
<
button
type
=
'button'
className
=
{
'invite-btn'
}
onClick
=
{
this
.
createMyTeam
}
>
:
<
button
type
=
'button'
className
=
{
'invite-btn'
}
onClick
=
{
this
.
createMyTeam
}
>
创建我的队伍
创建我的队伍
<
/button
>
<
/button>
)
}
}
<
/
>
<
/
>
}
}
...
...
src/components/activity/newyear-2019/landing/landing.scss
View file @
d86b6025
...
@@ -69,6 +69,34 @@
...
@@ -69,6 +69,34 @@
}
}
}
}
.standby-space
{
height
:
55px
;
}
.standby-tip
{
position
:
relative
;
width
:
270px
;
height
:
32px
;
background
:
#FFDE00
;
border-radius
:
5px
;
margin
:
0
auto
;
line-height
:
32px
;
text-align
:
center
;
color
:
#202426
;
font-size
:
15px
;
&
:
:
after
{
content
:
''
;
display
:
block
;
position
:
absolute
;
top
:
-120%
;
right
:
-6%
;
width
:
50px
;
height
:
38px
;
background
:
url("https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/standby-share-tip-icon.png")
;
background-size
:
contain
;
}
}
.group
{
.group
{
ul
.member
{
ul
.member
{
...
...
src/components/activity/newyear-2019/treasure-box/team.js
View file @
d86b6025
...
@@ -102,7 +102,9 @@ class TeamInfo extends Component {
...
@@ -102,7 +102,9 @@ class TeamInfo extends Component {
// 直接跳转
// 直接跳转
if
(
!
getParam
(
'version'
))
{
if
(
!
getParam
(
'version'
))
{
window
.
location
.
assign
(
'https://h5.julyedu.com/activity/newyear-2019/landing?origin=1&treasure_code='
+
treasure_code
);
//todo 域名
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
{
window
.
location
.
assign
(
'https://h5.julyedu.com/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'
));
}
}
...
...
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