Commit 3d747862 by zhanghaozhe

定金支付页

parent 72e83e79
......@@ -55,12 +55,12 @@ class PayOrder extends Component {
})
}
}
print = (...e) => {
console.log(e)
}
// 确定购买
pay = () => {
const {payType, orderId} = this.state
if(!this.state.agree){
return
}
if (payType === 0) {
this.alipayPay(orderId)
} else if (payType === 1) {
......@@ -113,7 +113,7 @@ class PayOrder extends Component {
if (res.data.errno === 401) {
clearInterval(_this.intervalPayStatus)
_this.intervalPayStatus = null
_this.props.history.replace(`/expand/callback`)
_this.props.history.replace(`/expand/callback?order_id=${getParam('oid')}`)
}
})
}, 1000)
......@@ -183,7 +183,6 @@ class PayOrder extends Component {
// 支付宝支付
alipayPay = (orderId) => {
http.get(`${API['base-api']}/pay/alipay/wap_charge_new/oid/${orderId}`).then((res) => {
console.log(JSON.stringify(res.data.data))
if (res.data.errno === 0) {
this.payCallback()
window.location = res.data.data.url
......@@ -262,7 +261,7 @@ class PayOrder extends Component {
</div>
)
return (
<VList handleClick={this.print} key={index} img={item.image_name}
<VList key={index} img={item.image_name}
id={item.course_id}
info={Info}></VList>
)
......
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