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
d0dd8f31
Commit
d0dd8f31
authored
Dec 14, 2019
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '00' into dev
parents
ba54e94b
ec64983b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
125 deletions
+18
-125
src/components/activity/newyear-2019/common/prizes/index.js
+0
-1
src/components/activity/newyear-2019/landing/index.js
+17
-36
src/components/activity/newyear-2019/landing/landing.scss
+1
-88
No files found.
src/components/activity/newyear-2019/common/prizes/index.js
View file @
d0dd8f31
...
...
@@ -26,7 +26,6 @@ class Prizes extends Component {
componentDidMount
()
{
this
.
getPrizes
()
}
getPrizes
=
()
=>
{
...
...
src/components/activity/newyear-2019/landing/index.js
View file @
d0dd8f31
...
...
@@ -169,13 +169,14 @@ class Landing extends Component {
if
(
browser
.
isWeixin
)
{
wxShare
({
title
:
`@
${
user
.
data
.
username
}
邀您一起组队拿豪礼!`
,
desc
:
`加
我
我的队伍,机械键盘,纸质书籍等超多奖品等你拿!`
,
desc
:
`加
入
我的队伍,机械键盘,纸质书籍等超多奖品等你拿!`
,
link
:
`
${
window
.
location
.
origin
}
/
${
location
.
pathname
}
?treasure_code=
${
treasure_code
}
&origin=2`
,
//todo 分享图片更换
imgUrl
:
'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newIndex/community/tou5_bj.png'
})
}
sessionStorage
.
setItem
(
'showShareTip'
,
'1'
)
history
.
replace
(
`
${
match
.
path
}
?treasure_code=
${
treasure_code
}
&origin=
${
1
}
`
)
history
.
replace
(
`
${
match
.
url
}
?treasure_code=
${
treasure_code
}
&origin=
${
1
}
`
)
this
.
createTeamSuccessPopup
&&
this
.
createTeamSuccessPopup
.
remove
()
&&
(
this
.
createTeamSuccessPopup
=
null
)
this
.
joinSuccessPopup
&&
this
.
joinSuccessPopup
.
remove
()
&&
(
this
.
joinSuccessPopup
=
null
)
this
.
fetchPageData
({
treasure_code
,
origin
:
1
})
...
...
@@ -261,41 +262,20 @@ class Landing extends Component {
})
}
unpackTreasureBox
=
()
=>
{
Popup
({
title
:
'恭喜你获得'
,
className
:
'landing-unpack-treasure-box'
,
closeIcon
:
this
.
closeIcon
,
content
:
<
div
className
=
'unpack-box-wrapper'
>
<
div
className
=
"prize-wrapper"
>
<
img
className
=
'prize'
src
=
"https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1575544072904&di=474bca496055f1141a40ae2df45d1bbb&imgtype=0&src=http%3A%2F%2Fphotocdn.sohu.com%2F20110926%2FImg320518331.jpg"
alt
=
""
/>
<
/div
>
<
div
className
=
"prize-name"
>
AI100
题纸质书
<
/div
>
<
a
className
=
"delivery-info"
href
=
'javascript:;'
>
查看
/
修改收货信息
<
/a
>
<
ul
className
=
"members"
>
{
new
Array
(
4
).
fill
(
'a'
).
map
((
item
,
index
)
=>
{
return
<
li
key
=
{
index
}
>
<
div
className
=
"avatar-wrapper"
>
{
index
===
0
&&
<
sup
>
队长
<
/sup
>
}
<
img
src
=
"https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/default/robot.png"
alt
=
""
/>
<
/div
>
<
span
className
=
'prize-name'
>
AI100
题纸质书
<
/span
>
<
/li
>
})
}
<
/ul
>
<
button
>
继续组队开宝箱
<
/button
>
<
/div
>
})
}
showShareTip
=
()
=>
{
if
(
browser
.
isAndroidApp
)
{
}
else
if
(
browser
.
isIOSApp
)
{
}
else
{
const
{
history
,
match
}
=
this
.
props
if
(
browser
.
isWeixin
&&
getParam
(
'origin'
)
==
1
)
{
history
.
replace
(
`
${
match
.
url
}
?treasure_code=
${
getParam
(
'treasure_code'
)}
&origin=2`
)
}
Popup
({
title
:
<
div
>
还差
<
span
>
{
this
.
state
.
teamData
.
lack_member
}
<
/span>名队友即可获得宝箱 快分享给好友吧~</
div
>
,
className
:
`landing-share-tip
${
browser
.
isWeixin
?
'wechat'
:
''
}
`
,
...
...
@@ -309,6 +289,7 @@ class Landing extends Component {
}
})
}
}
showOpenInBrowserTip
=
()
=>
{
Popup
({
...
...
src/components/activity/newyear-2019/landing/landing.scss
View file @
d0dd8f31
...
...
@@ -236,7 +236,7 @@
}
.content
{
padding
:
0
2
9px
15px
;
padding
:
0
1
9px
15px
;
margin-top
:
22px
;
color
:
#666666
;
font-size
:
14px
;
...
...
@@ -353,93 +353,6 @@
}
}
.landing-unpack-treasure-box
{
text-align
:
center
;
&
.popup-container
{
width
:
320px
;
padding
:
20px
18px
;
top
:
62px
;
.title
{
font-size
:
18px
;
color
:
#111
;
margin-bottom
:
10px
;
}
}
.prize-wrapper
{
width
:
130px
;
height
:
103px
;
margin
:
0
auto
5px
;
border
:
1px
solid
#CDCDCD
;
img
{
width
:
100%
;
height
:
100%
;
}
}
.prize-name
{
font-size
:
15px
;
color
:
#FF232D
;
margin-bottom
:
5px
;
}
.members
{
background
:
#EFEFEF
;
text-align
:
left
;
padding
:
12px
;
margin-top
:
12px
;
li
:nth-last-child
(
1
)
{
margin-bottom
:
0
;
}
li
{
display
:
flex
;
align-items
:
center
;
height
:
25px
;
margin-bottom
:
8px
;
font-size
:
12px
;
line-height
:
25px
;
.avatar-wrapper
{
position
:
relative
;
width
:
25px
;
height
:
25px
;
margin-right
:
8px
;
sup
{
@extend
.sup
;
top
:
-50%
;
right
:
-80%
;
}
}
img
{
width
:
100%
;
height
:
100%
;
border-radius
:
50%
;
}
.prize-name
{
color
:
#090909
;
margin-bottom
:
0
;
}
.unopened
{
color
:
#9A9A9A
;
}
}
}
button
{
@extend
.popup-button
;
}
}
.landing-open-in-browser-tip
,
.landing-share-tip
{
font-size
:
17px
;
color
:
#111
;
...
...
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