Commit 58f42a10 authored by mengcuiguang's avatar mengcuiguang

支付成功添加类型区分

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