Commit 6fb92842 by FE

Merge branch 'pythonClass' into pre

parents ee112c31 9bc037aa
...@@ -83,14 +83,14 @@ class PythonClass extends Component { ...@@ -83,14 +83,14 @@ class PythonClass extends Component {
handleToSend = (params) => { handleToSend = (params) => {
const { history } = this.props; const { history } = this.props;
const { isShare, entryMode } = this.state; const { isShare } = this.state;
if(browser.isWeixin) { if(browser.isWeixin) {
history.push(`/pythonShare?id=${getParam('id')}&type=${getParam('type')}&ques=${getParam('ques')}&origin=python`); history.push(`/pythonShare?id=${getParam('id')}&type=${getParam('type')}&ques=${getParam('ques')}&origin=python`);
this.setState({ this.setState({
isGuide: true isGuide: true
}); });
wxShare({ wxShare({
title: isShare? `我已在【${params.course_name}】上运行了行代码了${params.code_lines}` : `我在${params.course_name}${labelName}遇到了困难`, title: isShare? `我已在【${params.course_name}】上运行了行代码了${params.code_lines}` : `我在${params.course_name}${this.formatTitle(params)}遇到了困难`,
desc: this.formatTitle(params), desc: this.formatTitle(params),
link: encodeURI(location.href), link: encodeURI(location.href),
imgUrl: params.course_img, imgUrl: params.course_img,
......
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