✨ feat: 对接支付宝H5立减金、红包接口
This commit is contained in:
parent
253878afba
commit
62de2ed128
|
@ -138,6 +138,7 @@
|
||||||
order_number: this.orderNumber,
|
order_number: this.orderNumber,
|
||||||
channel: "1", //立减金发放渠道,1:支付宝;2:微信小程序
|
channel: "1", //立减金发放渠道,1:支付宝;2:微信小程序
|
||||||
channel_user_id: this.openId, // "渠道用户id"
|
channel_user_id: this.openId, // "渠道用户id"
|
||||||
|
receive_mode: 1,
|
||||||
};
|
};
|
||||||
if (this.disabledBtn) {
|
if (this.disabledBtn) {
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -194,6 +194,7 @@
|
||||||
order_number: order_number,
|
order_number: order_number,
|
||||||
channel: "3", //立减金发放渠道,1:支付宝;2:微信 3:云闪付
|
channel: "3", //立减金发放渠道,1:支付宝;2:微信 3:云闪付
|
||||||
channel_user_id: this.account,
|
channel_user_id: this.account,
|
||||||
|
receive_mode: 1,
|
||||||
};
|
};
|
||||||
req.axiosPost("/voucher/grant", params)
|
req.axiosPost("/voucher/grant", params)
|
||||||
.then(({ code, message }) => {
|
.then(({ code, message }) => {
|
||||||
|
|
|
@ -307,7 +307,7 @@ body {
|
||||||
|
|
||||||
.type {
|
.type {
|
||||||
font-size: 0.1rem;
|
font-size: 0.1rem;
|
||||||
background-color: rgb(65, 139, 224);
|
background-color: rgb(244, 52, 43);
|
||||||
border-radius: 0.2rem;
|
border-radius: 0.2rem;
|
||||||
padding: 0.03rem 0.15rem;
|
padding: 0.03rem 0.15rem;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
|
|
@ -169,7 +169,7 @@
|
||||||
goods_id: this.goods.entity.goods_id,
|
goods_id: this.goods.entity.goods_id,
|
||||||
code_batch_id: this.goods.code_batch_id,
|
code_batch_id: this.goods.code_batch_id,
|
||||||
token: localStorage.getItem("token"),
|
token: localStorage.getItem("token"),
|
||||||
account: this.account
|
account: this.form.receive_account
|
||||||
};
|
};
|
||||||
/* 创建订单 */
|
/* 创建订单 */
|
||||||
req.axiosPost("/key/usage", data)
|
req.axiosPost("/key/usage", data)
|
||||||
|
@ -190,7 +190,9 @@
|
||||||
let params = {
|
let params = {
|
||||||
order_number: order_number,
|
order_number: order_number,
|
||||||
channel: "3", //立减金发放渠道,1:支付宝;2:微信 3:云闪付
|
channel: "3", //立减金发放渠道,1:支付宝;2:微信 3:云闪付
|
||||||
channel_user_id: this.account,
|
receive_mode: 2, /* 领取方式 1:支付宝 2:H5 */
|
||||||
|
channel_user_id: this.form.receive_account,
|
||||||
|
real_name: this.form.receive_name,
|
||||||
};
|
};
|
||||||
req.axiosPost("/voucher/grant", params)
|
req.axiosPost("/voucher/grant", params)
|
||||||
.then(({ code, message }) => {
|
.then(({ code, message }) => {
|
||||||
|
|
Loading…
Reference in New Issue