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
183e350f
Commit
183e350f
authored
Nov 02, 2019
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '11-11' into dev
parents
c1fa1bf5
1213ac7e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
4 deletions
+14
-4
src/common/closable-popup/index.js
+4
-0
src/components/blessingPreheat/live/index.js
+3
-3
src/components/blessingRank/index.js
+7
-1
No files found.
src/common/closable-popup/index.js
View file @
183e350f
...
...
@@ -45,6 +45,10 @@ function ClosablePopup({
ReactDOM
.
render
(
closablePopup
,
div
)
return
{
close
:
_close
}
}
export
default
ClosablePopup
src/components/blessingPreheat/live/index.js
View file @
183e350f
...
...
@@ -131,7 +131,7 @@ class Live extends Component {
<
div
key
=
{
index
}
>
{
preheatLives
.
map
((
item
,
index
)
=>
{
return
<
LiveContent
key
=
{
index
}
item
=
{
item
}
makeSubscribe
=
{
this
.
makeSubscribe
}
/
>
return
<
LiveContent
key
=
{
index
}
item
=
{
item
}
makeSubscribe
=
{
this
.
makeSubscribe
}
toLiveRoom
=
{
this
.
toLiveRoom
}
/
>
})
}
<
/div
>
...
...
@@ -147,7 +147,7 @@ class Live extends Component {
}
}
function
LiveContent
({
item
,
makeSubscribe
})
{
function
LiveContent
({
item
,
makeSubscribe
,
toLiveRoom
})
{
return
(
<
div
className
=
"content"
>
{
...
...
@@ -181,7 +181,7 @@ function LiveContent({item, makeSubscribe}) {
<
/div
>
{
item
[
'on_live'
]
?
<
button
className
=
{
'on-living'
}
onClick
=
{
this
.
toLiveRoom
.
bind
(
this
,
item
[
'live_id'
])
}
>
正在直播
<
/button
>
?
<
button
className
=
{
'on-living'
}
onClick
=
{
()
=>
{
toLiveRoom
(
item
[
'live_id'
])}
}
>
正在直播
<
/button
>
:
item
[
'is_end'
]
?
<
button
className
=
{
'subscribed'
}
>
已结束
<
/button
>
...
...
src/components/blessingRank/index.js
View file @
183e350f
...
...
@@ -11,6 +11,7 @@ import './index.scss'
}
))
class
BlessingRank
extends
Component
{
popupInstance
=
null
constructor
(
props
)
{
super
(
props
)
this
.
state
=
{
...
...
@@ -44,10 +45,15 @@ class BlessingRank extends Component {
if
(
bool
&&
!
uid
)
{
history
.
push
(
'/passport'
)
}
else
{
Popup
({
if
(
bool
&&
!
this
.
popupInstance
)
{
this
.
popupInstance
=
Popup
({
title
:
'收货信息'
,
content
:
<
AddressPopup
handleToHide
=
{()
=>
this
.
handleToSwitch
(
false
)}
/
>
})
}
else
{
this
.
popupInstance
.
close
()
this
.
popupInstance
=
null
}
}
}
...
...
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