Commit 58f42a10 authored by mengcuiguang's avatar mengcuiguang

支付成功添加类型区分

parent 8e8a75e0
...@@ -93,8 +93,8 @@ ...@@ -93,8 +93,8 @@
}, },
methods: { methods: {
// 支付完成回调 // 支付完成回调
paySuccess() { paySuccess(largeType) {
this.$emit('paySuccess'); this.$emit('paySuccess',largeType);
this.handleClose(); this.handleClose();
}, },
handleShow() { handleShow() {
...@@ -146,11 +146,11 @@ ...@@ -146,11 +146,11 @@
success: ({ success: ({
data data
}) => { }) => {
that.wxPay(data); that.wxPay(data,vipBean.largeType);
} }
}); });
}, },
wxPay(wxData) { wxPay(wxData,largeType) {
let wxParams = wxData.params; let wxParams = wxData.params;
let that = this; let that = this;
// 发起微信支付 // 发起微信支付
...@@ -161,7 +161,7 @@ ...@@ -161,7 +161,7 @@
signType: wxParams.signType, signType: wxParams.signType,
paySign: wxParams.paySign, paySign: wxParams.paySign,
success(res) { success(res) {
that.paySuccess(); that.paySuccess(largeType);
}, },
fail(res) { fail(res) {
} }
......
...@@ -204,7 +204,9 @@ ...@@ -204,7 +204,9 @@
} }
}) })
}, },
paySuccess() { paySuccess(largeType) {
// largeType=vip 开通vip
// largeType=point 购买看点
message.notify('支付成功'); message.notify('支付成功');
this.post({ this.post({
......
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