Commit f8655443 by xuzhenghua

bug

parent 7b936552
...@@ -47,13 +47,6 @@ class Detail extends Component { ...@@ -47,13 +47,6 @@ class Detail extends Component {
componentDidMount() { componentDidMount() {
wxShare({
title: `课程详情页`,
content: `课程详情页`,
link: 'http://m.julyedu.com/detail?id=151',
logo: 'https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/home/4aaf78c7d2.png',
});
this.fetchCourseInfo(); this.fetchCourseInfo();
const { location: { state = {} } } = this.props; const { location: { state = {} } } = this.props;
if(state.oid) { if(state.oid) {
...@@ -442,6 +435,13 @@ class Detail extends Component { ...@@ -442,6 +435,13 @@ class Detail extends Component {
} }
render() { render() {
wxShare({
title: `课程详情页`,
desc: `课程详情页`,
link: location.href,
imgUrl: 'https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/home/4aaf78c7d2.png'
});
const { course: { course_info={} }, barInfo, singleBox, singleType } = this.state; const { course: { course_info={} }, barInfo, singleBox, singleType } = this.state;
let courseInfo = '', let courseInfo = '',
service = '', service = '',
......
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