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
c4760d7e
Commit
c4760d7e
authored
Sep 24, 2019
by
wangshuo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
详情页大纲中的试听修改
parent
bba9926f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
src/components/detail/index.js
+2
-4
src/components/detail/outline/index.js
+2
-2
No files found.
src/components/detail/index.js
View file @
c4760d7e
...
...
@@ -318,15 +318,13 @@ class Detail extends Component {
}
// 点击子组件试听按钮
toAudition
=
()
=>
{
toAudition
=
(
v_course_id
,
video_id
)
=>
{
const
{
user
}
=
this
.
props
const
uid
=
user
&&
user
.
data
&&
user
.
data
.
uid
if
(
!
uid
)
{
this
.
props
.
history
.
push
(
'/passport/login'
)
}
else
{
this
.
setState
({
auditionBox
:
true
,
})
this
.
props
.
history
.
push
(
`/play/video?id=
${
v_course_id
}
&video_id=
${
video_id
}
`
);
}
}
// 点击子组件单集购买按钮
...
...
src/components/detail/outline/index.js
View file @
c4760d7e
...
...
@@ -93,9 +93,9 @@ class OutLine extends Component {
6-可试听但无试听权限
*/
}
{
// 试听
!
introduce
.
is_aist
&&
item
.
class_status
===
6
&&
!
introduce
.
is_aist
&&
(
item
.
class_status
===
6
||
item
.
class_status
===
5
)
&&
<
span
className
=
'btn-right-10 audition'
onClick
=
{
this
.
props
.
toAudition
}
>
试听
onClick
=
{
e
=>
this
.
props
.
toAudition
(
introduce
.
v_course_id
,
item
.
video_id
)
}
>
试听
<
i
className
=
'iconfont iconcelluar'
><
/i
>
<
/span
>
}
...
...
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