|
@@ -4,33 +4,29 @@ var hlbPayMixin = function () {// 合利宝支付渠道
|
|
|
return {
|
|
|
methods: {
|
|
|
hlb_PayOrderPcMallPay(){// 正常订单网银支付通道
|
|
|
- const _this = this;
|
|
|
- const params = {//正常订单
|
|
|
- payType: 'YL',
|
|
|
- payAmount: _this.payAmount,
|
|
|
- bankCode: _this.payInfo.payBankNum,
|
|
|
- returnUrl: 'https://www.caimei365.com/pay/success.html?pageType=www&type=success&payAmount=' + _this.payAmount,
|
|
|
- shopOrderId: _this.payInfo.shopOrderId,
|
|
|
- userType: _this.payInfo.payUserType
|
|
|
+ var _this = this;
|
|
|
+ var params = {//正常订单
|
|
|
+ payType:'YL',
|
|
|
+ payAmount:_this.payAmount,
|
|
|
+ bankCode:_this.payInfo.payBankNum,
|
|
|
+ returnUrl:'https://www.caimei365.com/pay/success.html?pageType=www&type=success&payAmount='+_this.payAmount,
|
|
|
+ shopOrderId:_this.payInfo.shopOrderId,
|
|
|
+ userType:_this.payInfo.payUserType
|
|
|
};
|
|
|
_this.isSubMitStatus=true;
|
|
|
console.log('正常订单合利宝网银支付通道',params)
|
|
|
PayApi.PayOrderPcMallPay(params,function(response){
|
|
|
if(response.code === 0){
|
|
|
- _this.iframe = response.data
|
|
|
- _this.isIframe = true
|
|
|
+ _this.isPayAlert = true;
|
|
|
+ _this.iframe = response.data;
|
|
|
_this.$nextTick(() => {
|
|
|
- const onlineForm = document.getElementById('onlineForm');
|
|
|
+ var onlineForm = document.getElementById('onlineForm');
|
|
|
onlineForm.setAttribute('target', '_blank')
|
|
|
_this.mbOrderId = onlineForm.P2_orderId.value
|
|
|
console.log('mbOrderId',_this.mbOrderId)
|
|
|
_this.isSubMitStatus=false;
|
|
|
- $('input[type="submit"]').on('click', function(e) {
|
|
|
- _this.isPayAlert = true;
|
|
|
- _this.isIframe = false
|
|
|
- onlineForm.submit();
|
|
|
- document.getElementById('onlineForm').remove();
|
|
|
- })
|
|
|
+ onlineForm.submit();
|
|
|
+ document.getElementById('onlineForm').remove();
|
|
|
})
|
|
|
}else{
|
|
|
_this.isSubMitStatus=false;
|