Commit be6c51d0 by xuzhenghua

detail

parent a981fa38
......@@ -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) => {
......
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>
{
......
......@@ -17,7 +17,7 @@
background-color: $bg_fff;
position: relative;
}
.order-information::before {
content: '';
......
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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment