fix: 增加组合商品, 结算
This commit is contained in:
parent
10cf4e586f
commit
d0942afaec
|
@ -167,7 +167,7 @@
|
||||||
|
|
||||||
/* ******************************************** 官方领取 ******************************************** */
|
/* ******************************************** 官方领取 ******************************************** */
|
||||||
/* 直接领取 */
|
/* 直接领取 */
|
||||||
directSubmit () {
|
directSubmit() {
|
||||||
/* 公众号打开 */
|
/* 公众号打开 */
|
||||||
if (this.goods.group_info.channel == 2 && this.goods.group_info.is_webview == 1 && !this.openId) {
|
if (this.goods.group_info.channel == 2 && this.goods.group_info.is_webview == 1 && !this.openId) {
|
||||||
const linkId = localStorage.getItem('linkId');
|
const linkId = localStorage.getItem('linkId');
|
||||||
|
@ -209,7 +209,7 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
/* 公众号领取 */
|
/* 公众号领取 */
|
||||||
publicCollection () {
|
publicCollection() {
|
||||||
let params = {
|
let params = {
|
||||||
token: this.token,
|
token: this.token,
|
||||||
code_batch_id: this.code_batch_id,
|
code_batch_id: this.code_batch_id,
|
||||||
|
@ -219,8 +219,19 @@
|
||||||
req.axiosPost("/voucher/groupVoucherGrant", params)
|
req.axiosPost("/voucher/groupVoucherGrant", params)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
|
// 领取成功结算 5
|
||||||
|
if (bm_obj_data && !bm_obj_data.settlement_data.is_settlement && bm_obj_data.settlement_data.settlement_type === 5) {
|
||||||
|
settlementFun(bm_obj_data.token, bm_obj_data.settlement_data.settlement_type);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 使用结算 6
|
||||||
|
if (bm_obj_data && !bm_obj_data.settlement_data.is_settlement && bm_obj_data.settlement_data.settlement_type === 6) {
|
||||||
|
settlementFun(bm_obj_data.token, bm_obj_data.settlement_data.settlement_type);
|
||||||
|
}
|
||||||
|
|
||||||
this.message = '领取成功';
|
this.message = '领取成功';
|
||||||
this.getProductDetail();
|
this.getProductDetail();
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
this.axiosErrorFun(res.code, res.message);
|
this.axiosErrorFun(res.code, res.message);
|
||||||
}
|
}
|
||||||
|
@ -230,6 +241,16 @@
|
||||||
|
|
||||||
/* 支付宝官方领取H5跳转 */
|
/* 支付宝官方领取H5跳转 */
|
||||||
toLinkAlipay() {
|
toLinkAlipay() {
|
||||||
|
// 领取成功结算 5
|
||||||
|
if (bm_obj_data && !bm_obj_data.settlement_data.is_settlement && bm_obj_data.settlement_data.settlement_type === 5) {
|
||||||
|
settlementFun(bm_obj_data.token, bm_obj_data.settlement_data.settlement_type);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 使用结算 6
|
||||||
|
if (bm_obj_data && !bm_obj_data.settlement_data.is_settlement && bm_obj_data.settlement_data.settlement_type === 6) {
|
||||||
|
settlementFun(bm_obj_data.token, bm_obj_data.settlement_data.settlement_type);
|
||||||
|
}
|
||||||
|
|
||||||
let self = this;
|
let self = this;
|
||||||
let banklink = encodeURIComponent(
|
let banklink = encodeURIComponent(
|
||||||
window.location.origin +
|
window.location.origin +
|
||||||
|
|
Loading…
Reference in New Issue