Commit be6c51d0 by xuzhenghua

detail

parent a981fa38
...@@ -69,9 +69,8 @@ class OutLine extends Component { ...@@ -69,9 +69,8 @@ class OutLine extends Component {
2-已购买直播结束已上传视频 2-已购买直播结束已上传视频
3-已购买未开课、已购买直播结束 3-已购买未开课、已购买直播结束
4-已购买直播中 4-已购买直播中
5-课程不能试听 5-可试听且有试听权限
6-可试听且有试听权限 6-可试听但无试听权限
7-可试听但无试听权限
*/} */}
{ // 试听 { // 试听
item.class_status === 7 && item.class_status === 7 &&
...@@ -100,7 +99,6 @@ class OutLine extends Component { ...@@ -100,7 +99,6 @@ class OutLine extends Component {
item.class_status === 2 && item.class_status === 2 &&
<i className='iconfont icondanseshixintubiao-23 icon-right-22'></i> <i className='iconfont icondanseshixintubiao-23 icon-right-22'></i>
} }
</h2> </h2>
{ {
item.point.map((item, index) => { item.point.map((item, index) => {
......
import React, {Component} from 'react' import React, {Component} from 'react'
import './index.scss' import './index.scss'
import {api, getParam, http, is_weixin} from "@/utils";
class Single extends Component { class Single extends Component {
constructor(props) { constructor(props) {
...@@ -11,9 +13,14 @@ class Single extends Component { ...@@ -11,9 +13,14 @@ class Single extends Component {
// 确定购买 // 确定购买
toBuy = () => { toBuy = () => {
this.setState({ http.get(`${api.home}/sys/createClassOrder/${this.props.data.video_id}`).then((res) => {
status: 2 if (res.data.code === 200) {
}
}) })
// this.setState({
// status: 2
// })
} }
// 关闭弹窗 // 关闭弹窗
...@@ -25,6 +32,7 @@ class Single extends Component { ...@@ -25,6 +32,7 @@ class Single extends Component {
} }
render() { render() {
{console.log(is_weixin(),1)}
return ( return (
<div> <div>
{ {
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
background-color: $bg_fff; background-color: $bg_fff;
position: relative; position: relative;
} }
.order-information::before { .order-information::before {
content: ''; content: '';
......
export { default as http } from './http' export {default as http} from './http'
export { default as api } from './api' export {default as api} from './api'
export { html } export {html}
export const getParam = (key, str) => { export const getParam = (key, str) => {
...@@ -21,3 +19,10 @@ const htmlDecode = content => { ...@@ -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