Bläddra i källkod

美博会活动优惠券

zhengjinyi 3 år sedan
förälder
incheckning
48172d5259

+ 2 - 0
src/main/resources/static/js/pay/caimei-paycash.js

@@ -561,6 +561,8 @@ var payContainer = new Vue({
                 window.location.href = '/pay/success.html?pageType=second&type='+state+'&payAmount='+_self.payAmount;
             }else if(_self.pageType === '2'){
                 window.location.href = '/pay/success.html?pageType=vip&type='+state+'&payAmount='+_self.payAmount;
+            }else if(_self.pageType === '3') {
+                window.location.href = '/pay/success.html?pageType=coupon&type=' + state + '&payAmount=' + _self.couponInfo.moneyCouponPrice;
             }else{
                 window.location.href = '/pay/success.html?pageType=www&type='+state+'&payAmount='+_self.payAmount;
             }

+ 1 - 0
src/main/resources/static/js/pay/caimei-paymobile.js

@@ -234,6 +234,7 @@ var payContainer = new Vue({
         }else if(_self.pageType === '3'){
             _self.payInfo.payType = payData.type;
             _self.payAmount = _self.payableAmount = payData.amount;
+            _self.mbOrderId = payData.mbOrderId;
             _self.payInfo.payMobileUrl = payData.url;
             _self.couponId = payData.couponId;
             _self.userId = payData.userId;

+ 9 - 0
src/main/resources/static/js/pay/caimei-success.js

@@ -60,6 +60,15 @@ var payContainer = new Vue({
                         _self.openLink = '/user/member.html';
                     }
                     break;
+                case 'coupon':
+                    if (_self.payFlag) {
+                        _self.linkText = '采美商城首页';
+                        _self.openLink = '/index.html';
+                    } else {
+                        _self.linkText = '优惠券列表';
+                        _self.openLink = '/user/coupon.html';
+                    }
+                    break;
                 default:
                     _self.linkText = '采美商城首页';
                     _self.openLink = '/index.html';