Commit 80e044d0 by xuzhenghua

bug

parent 654bc3ba
...@@ -12,7 +12,7 @@ import BtnStatus from "./btnstatus" ...@@ -12,7 +12,7 @@ import BtnStatus from "./btnstatus"
import Carouselw from "./carousel" import Carouselw from "./carousel"
import {connect} from "react-redux" import {connect} from "react-redux"
import {getCourses, addCourseToCart} from "./actions" import {getCourses, addCourseToCart} from "./actions"
import {getParam, http, browser} from "@/utils" import {getParam, http, browser,wxShare} from "@/utils"
import {Toast} from 'antd-mobile' import {Toast} from 'antd-mobile'
import {compose, bindActionCreators} from "redux"; import {compose, bindActionCreators} from "redux";
...@@ -46,6 +46,14 @@ class Detail extends Component { ...@@ -46,6 +46,14 @@ class Detail extends Component {
} }
componentDidMount() { componentDidMount() {
wxShare({
title: `课程详情页`,
content: `课程详情页`,
link: window.location.href,
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) {
......
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