Commit 956b5adc by FE

Merge branch 'issue-python-share'

parents 0b6001b1 03246bfe
...@@ -89,17 +89,9 @@ class PythonClass extends Component { ...@@ -89,17 +89,9 @@ class PythonClass extends Component {
this.setState({ this.setState({
isGuide: true isGuide: true
}); });
let title = '';
let labelName = this.formatTitle(params);
if(entryMode !== 0 && !isShare) {
title = `我在${params.course_name}${labelName}遇到了困难`;
}
if(entryMode !== 0 && isShare) {
title = `我已在【${params.course_name}】上运行了行代码了${params.code_lines}`
}
wxShare({ wxShare({
title, title: isShare? `我已在【${params.course_name}】上运行了行代码了${params.code_lines}` : `我在${params.course_name}${labelName}遇到了困难`,
desc: labelName, 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