Commit 72e83e79 by zhanghaozhe

定金支付页

parent 63a5d142
......@@ -113,15 +113,7 @@ class PayOrder extends Component {
if (res.data.errno === 401) {
clearInterval(_this.intervalPayStatus)
_this.intervalPayStatus = null
// 获取课程类型
http.get(`${API['base-api']}/m/app_order/detail/${getParam('oid')}`).then(res => {
if (Number(res.data.data.course_type) === 2) {
_this.props.history.replace(`/togroup?id=${getParam('oid')}`)
} else {
// 跳转到已购课程 /purchased 不需要传递任何参数
_this.props.history.replace(`/purchased`)
}
})
_this.props.history.replace(`/expand/callback`)
}
})
}, 1000)
......@@ -203,10 +195,14 @@ class PayOrder extends Component {
componentDidMount() {
if(getParam('weixinpay')){
if (getParam('weixinpay')) {
this.payCallback()
}
if (browser.isWeixin) {
this.isweixinPay(getParam('oid'))
}
http.post(`${API["base-api"]}/m/deposit/detail`, {
order_id: this.state.orderId
......
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