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
c4e339dd
Commit
c4e339dd
authored
Oct 29, 2019
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分享到朋友圈弹框
parent
11673138
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
3 deletions
+25
-3
src/components/blessingPreheat/index.js
+10
-3
src/components/blessingPreheat/index.scss
+15
-0
No files found.
src/components/blessingPreheat/index.js
View file @
c4e339dd
...
...
@@ -13,8 +13,9 @@ class BlessingPreheat extends Component {
this
.
state
=
{
isRule
:
false
,
isCourse
:
false
,
inviteVisible
:
true
,
joinLottery
:
true
inviteVisible
:
false
,
joinLotteryVisible
:
false
,
timelineShareVisible
:
true
}
}
...
...
@@ -55,7 +56,7 @@ class BlessingPreheat extends Component {
<
button
>
一键复制网址
<
/button
>
<
/CopyToClipboard
>
<
/Popup
>
<
Popup
visible
=
{
this
.
state
.
joinLottery
}
<
Popup
visible
=
{
this
.
state
.
joinLottery
Visible
}
title
=
{
'你已成功参与本时段抽奖'
}
className
=
{
'join-lottery'
}
>
...
...
@@ -68,6 +69,12 @@ class BlessingPreheat extends Component {
<
button
onClick
=
{()
=>
{
this
.
setState
({
joinLottery
:
false
})}}
>
知道了
<
/button
>
<
/Popup
>
<
Popup
title
=
{
'微信扫码分享到微信朋友圈'
}
visible
=
{
this
.
state
.
timelineShareVisible
}
className
=
{
'timeline-share'
}
>
<
img
src
=
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_weixin.png"
alt
=
""
className
=
"qr-code"
/>
<
/Popup
>
<
/div
>
)
}
...
...
src/components/blessingPreheat/index.scss
View file @
c4e339dd
...
...
@@ -83,4 +83,19 @@
border
:
none
;
}
}
.timeline-share
{
height
:
215px
;
padding-bottom
:
30px
;
.title
{
margin-bottom
:
20px
;
}
.content
{
text-align
:
center
;
.qr-code
{
width
:
120px
;
height
:
120px
;
}
}
}
}
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