|
@@ -522,28 +522,36 @@ var payContainer = new Vue({
|
|
|
},
|
|
|
RefreshBody:function(){//刷新页面
|
|
|
var _self = this;
|
|
|
- // 验证支付(支付会员)
|
|
|
- if( _self.pageType == 2 ){
|
|
|
- PayApi.PayOrderFindOrderStatus({mbOrderId:_self.mbOrderId},function(response){
|
|
|
- _self.isPayAlert = false;
|
|
|
- var data = response.data.data;
|
|
|
- if(data.status === '1'){
|
|
|
- _self.windowLocationHref('success');
|
|
|
- }else{
|
|
|
- _self.windowLocationHref('error');
|
|
|
- }
|
|
|
- });
|
|
|
- return;
|
|
|
- }
|
|
|
+
|
|
|
if(_self.payInfo.payBankNum == 'WEIXIN'){
|
|
|
- PayApi.PayOrderPayWhetherSuccess({orderId: _self.payInfo.payOrderId, paySuccessCounter:_self.paySuccessCounter},function(response){
|
|
|
- _self.isPayAlert = false;
|
|
|
- if(response.code === 0){
|
|
|
- _self.windowLocationHref('success');
|
|
|
- }else{
|
|
|
- _self.windowLocationHref('error');
|
|
|
- }
|
|
|
- });
|
|
|
+ if( _self.pageType == '2' ){ // 验证支付(支付会员)
|
|
|
+ PayApi.PayOrderPayVipCheck({recordId : _self.vipRecordId},function(response){
|
|
|
+ // console.log(response);
|
|
|
+ if(response.code === 0){
|
|
|
+ _self.windowLocationHref('success');
|
|
|
+ }else{
|
|
|
+ _self.windowLocationHref('error');
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }else if(_self.pageType == '3'){ // 验证支付(优惠券)
|
|
|
+ PayApi.PayOrderPayCouponCheck({ couponRecordId: _self.couponRecordId },function(response){
|
|
|
+ // console.log(response);
|
|
|
+ if(response.code === 0){
|
|
|
+ _self.windowLocationHref('success');
|
|
|
+ }else{
|
|
|
+ _self.windowLocationHref('error');
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }else{
|
|
|
+ PayApi.PayOrderPayWhetherSuccess({orderId: _self.payInfo.payOrderId, paySuccessCounter:_self.paySuccessCounter},function(response){
|
|
|
+ _self.isPayAlert = false;
|
|
|
+ if(response.code === 0){
|
|
|
+ _self.windowLocationHref('success');
|
|
|
+ }else{
|
|
|
+ _self.windowLocationHref('error');
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
}else{
|
|
|
PayApi.PayOrderFindOrderStatus({mbOrderId:_self.mbOrderId},function(response){
|
|
|
_self.isPayAlert = false;
|