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
7095197f
Commit
7095197f
authored
Oct 31, 2019
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
大咖直播
parent
1f718141
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
+8
-1
src/components/blessingPreheat/live/index.js
+8
-1
No files found.
src/components/blessingPreheat/live/index.js
View file @
7095197f
...
@@ -5,9 +5,12 @@ import { http } from "@/utils"
...
@@ -5,9 +5,12 @@ import { http } from "@/utils"
import
{
Popup
}
from
"@common/index"
import
{
Popup
}
from
"@common/index"
import
QRCode
from
'qrcode'
import
QRCode
from
'qrcode'
import
{
uniqBy
}
from
'lodash'
import
{
uniqBy
}
from
'lodash'
import
{
connect
}
from
'react-redux'
import
{
withRouter
}
from
'react-router-dom'
const
isFormal
=
false
const
isFormal
=
false
@
connect
(
state
=>
({
user
:
state
.
user
}))
class
Live
extends
Component
{
class
Live
extends
Component
{
state
=
{
state
=
{
...
@@ -60,6 +63,10 @@ class Live extends Component {
...
@@ -60,6 +63,10 @@ class Live extends Component {
}
}
makeSubscribe
=
id
=>
{
makeSubscribe
=
id
=>
{
const
{
user
,
history
}
=
this
.
props
if
(
user
.
hasError
)
{
history
.
push
(
'/passport/login'
)
}
http
.
get
(
`
${
API
.
home
}
/sys/createLiveQrcode/
${
id
}
`
)
http
.
get
(
`
${
API
.
home
}
/sys/createLiveQrcode/
${
id
}
`
)
.
then
(
res
=>
{
.
then
(
res
=>
{
const
{
data
}
=
res
const
{
data
}
=
res
...
@@ -183,4 +190,4 @@ function LiveContent({item, makeSubscribe}) {
...
@@ -183,4 +190,4 @@ function LiveContent({item, makeSubscribe}) {
)
)
}
}
export
default
Live
export
default
withRouter
(
Live
)
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