|
|
@ -259,11 +259,15 @@ |
|
|
|
Integrastu: 1, //返积分状态 |
|
|
|
Integrastu: 1, //返积分状态 |
|
|
|
contactPepole: '', //联系人 |
|
|
|
contactPepole: '', //联系人 |
|
|
|
contactPhone: '', //联系电话 |
|
|
|
contactPhone: '', //联系电话 |
|
|
|
contactAddress: '' //联系地址 |
|
|
|
contactAddress: '', //联系地址 |
|
|
|
|
|
|
|
postPayType: '' //请求支付方式 |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
onLoad(option) { |
|
|
|
onLoad(option) { |
|
|
|
this.couponId = option.id; |
|
|
|
this.couponId = option.id; |
|
|
|
|
|
|
|
if (option.postPayType != undefined && option.postPayType) { |
|
|
|
|
|
|
|
this.postPayType = option.postPayType; |
|
|
|
|
|
|
|
} |
|
|
|
// #ifdef H5 |
|
|
|
// #ifdef H5 |
|
|
|
this.identificationCode = app.globalData.staffCode; |
|
|
|
this.identificationCode = app.globalData.staffCode; |
|
|
|
// #endif |
|
|
|
// #endif |
|
|
@ -318,7 +322,8 @@ |
|
|
|
platformId: this.showType, |
|
|
|
platformId: this.showType, |
|
|
|
"companyId": this.couponList.companyId, |
|
|
|
"companyId": this.couponList.companyId, |
|
|
|
productType: 5, |
|
|
|
productType: 5, |
|
|
|
productId: this.couponList.couponSource |
|
|
|
productId: this.couponList.couponSource, |
|
|
|
|
|
|
|
payType: this.postPayType |
|
|
|
} |
|
|
|
} |
|
|
|
getThirdPartyByDetail(datas).then(res => { |
|
|
|
getThirdPartyByDetail(datas).then(res => { |
|
|
|
if (res.return_code == '000000') { |
|
|
|
if (res.return_code == '000000') { |
|
|
@ -356,12 +361,12 @@ |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
//支付返利积分 |
|
|
|
//支付返利积分 |
|
|
|
getRebateIntegral() { |
|
|
|
getRebateIntegral() { |
|
|
|
let datas = { |
|
|
|
let datas = { |
|
|
|
"companyId": this.couponList.companyId, |
|
|
|
"companyId": this.couponList.companyId, |
|
|
|
"price": this.paytheprice, |
|
|
|
"price": this.paytheprice, |
|
|
|
"type": 5, |
|
|
|
"type": 5, |
|
|
|
} |
|
|
|
} |
|
|
|
getRebateIntegral(datas).then(res => { |
|
|
|
getRebateIntegral(datas).then(res => { |
|
|
|
if (res.return_code == '000000') { |
|
|
|
if (res.return_code == '000000') { |
|
|
|
this.rebateIntegral = res.return_data; |
|
|
|
this.rebateIntegral = res.return_data; |
|
|
@ -386,7 +391,7 @@ |
|
|
|
this.couponList = res.return_data; |
|
|
|
this.couponList = res.return_data; |
|
|
|
this.paytheprice = res.return_data.discountPrice; |
|
|
|
this.paytheprice = res.return_data.discountPrice; |
|
|
|
this.saveprice = res.return_data.discountPrice; |
|
|
|
this.saveprice = res.return_data.discountPrice; |
|
|
|
this.orderPrice = res.return_data.salesPrice; |
|
|
|
this.orderPrice = res.return_data.salesPrice; |
|
|
|
this.getRebateIntegral(); |
|
|
|
this.getRebateIntegral(); |
|
|
|
this.getThirdPartyByDetail(); |
|
|
|
this.getThirdPartyByDetail(); |
|
|
|
} |
|
|
|
} |
|
|
@ -587,7 +592,7 @@ |
|
|
|
}], |
|
|
|
}], |
|
|
|
"payGold": this.priceValue[1], |
|
|
|
"payGold": this.priceValue[1], |
|
|
|
"promoteCode": this.identificationCode, |
|
|
|
"promoteCode": this.identificationCode, |
|
|
|
memDiscountId: this.memDiscountId, |
|
|
|
memDiscountId: this.memDiscountId, |
|
|
|
"companyId": app.globalData.companyId, |
|
|
|
"companyId": app.globalData.companyId, |
|
|
|
"storeId": this.storeId, |
|
|
|
"storeId": this.storeId, |
|
|
|
"postData": { |
|
|
|
"postData": { |
|
|
@ -757,7 +762,7 @@ |
|
|
|
}], |
|
|
|
}], |
|
|
|
"payGold": this.priceValue[1], |
|
|
|
"payGold": this.priceValue[1], |
|
|
|
"promoteCode": this.identificationCode, |
|
|
|
"promoteCode": this.identificationCode, |
|
|
|
"payPwd": this.PaymentPassword, |
|
|
|
"payPwd": this.PaymentPassword, |
|
|
|
"companyId": app.globalData.companyId, |
|
|
|
"companyId": app.globalData.companyId, |
|
|
|
memDiscountId: this.memDiscountId |
|
|
|
memDiscountId: this.memDiscountId |
|
|
|
} |
|
|
|
} |
|
|
|