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
be6c51d0
Commit
be6c51d0
authored
Jun 11, 2019
by
xuzhenghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
detail
parent
a981fa38
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
11 deletions
+22
-11
src/components/detail/outline/index.js
+2
-4
src/components/detail/single/index.js
+10
-2
src/components/order/order.scss
+0
-0
src/utils/index.js
+10
-5
No files found.
src/components/detail/outline/index.js
View file @
be6c51d0
...
...
@@ -69,9 +69,8 @@ class OutLine extends Component {
2-已购买直播结束已上传视频
3-已购买未开课、已购买直播结束
4-已购买直播中
5-课程不能试听
6-可试听且有试听权限
7-可试听但无试听权限
5-可试听且有试听权限
6-可试听但无试听权限
*/
}
{
// 试听
item
.
class_status
===
7
&&
...
...
@@ -100,7 +99,6 @@ class OutLine extends Component {
item
.
class_status
===
2
&&
<
i
className
=
'iconfont icondanseshixintubiao-23 icon-right-22'
><
/i
>
}
<
/h2
>
{
item
.
point
.
map
((
item
,
index
)
=>
{
...
...
src/components/detail/single/index.js
View file @
be6c51d0
import
React
,
{
Component
}
from
'react'
import
'./index.scss'
import
{
api
,
getParam
,
http
,
is_weixin
}
from
"@/utils"
;
class
Single
extends
Component
{
constructor
(
props
)
{
...
...
@@ -11,9 +13,14 @@ class Single extends Component {
// 确定购买
toBuy
=
()
=>
{
this
.
setState
({
status
:
2
http
.
get
(
`
${
api
.
home
}
/sys/createClassOrder/
${
this
.
props
.
data
.
video_id
}
`
).
then
((
res
)
=>
{
if
(
res
.
data
.
code
===
200
)
{
}
})
// this.setState({
// status: 2
// })
}
// 关闭弹窗
...
...
@@ -25,6 +32,7 @@ class Single extends Component {
}
render
()
{
{
console
.
log
(
is_weixin
(),
1
)}
return
(
<
div
>
{
...
...
src/components/order/order.scss
View file @
be6c51d0
src/utils/index.js
View file @
be6c51d0
export
{
default
as
http
}
from
'./http'
export
{
default
as
api
}
from
'./api'
export
{
html
}
export
{
default
as
http
}
from
'./http'
export
{
default
as
api
}
from
'./api'
export
{
html
}
export
const
getParam
=
(
key
,
str
)
=>
{
...
...
@@ -21,3 +19,10 @@ const htmlDecode = content => {
}
export
const
is_weixin
=
()
=>
{
var
ua
=
window
.
navigator
.
userAgent
.
toLowerCase
();
if
(
ua
.
match
(
/MicroMessenger/i
)
==
'micromessenger'
)
{
return
true
;
}
return
false
;
}
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