Commit 415e45e3 by wangshuo

单集购买

parent 0f4a912a
...@@ -222,7 +222,7 @@ class Detail extends Component { ...@@ -222,7 +222,7 @@ class Detail extends Component {
// //
// } // }
payCallBack = (singleType, nowPrice, laterPrice) => { payCallBack = (singleType, nowPrice, laterPrice) => {
Toast.info(singleType, 2); // Toast.info(singleType, 2);
const _this = this; const _this = this;
if(singleType === 2) { if(singleType === 2) {
_this.setState({ _this.setState({
......
...@@ -27,14 +27,14 @@ class Single extends Component { ...@@ -27,14 +27,14 @@ class Single extends Component {
} }
componentDidMount() { componentDidMount() {
if (getParam('is_class') === 1 || getParam('weixinpay')) { // if (getParam('is_class') === 1 || getParam('weixinpay')) {
console.log(0); // console.log(0);
this.payCallback() // this.payCallback()
// this.props.payCallback(); // // this.props.payCallback();
} // }
if (browser.isWeixin) { // if (browser.isWeixin) {
this.isweixinPay() // this.isweixinPay()
} // }
} }
componentWillReceiveProps(nextProps, nextContext) { componentWillReceiveProps(nextProps, nextContext) {
......
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