zhengjinyi před 3 roky
rodič
revize
b33fb1ac70

+ 6 - 4
src/main/resources/static/js/pay/caimei-code.js

@@ -7,7 +7,8 @@ var payContainer = new Vue({
         orderInfo:{}
     },
     methods: {
-        authRedirect:function (orderInfo) {
+        authRedirect:function () {
+            var orderInfo = CAIMEI.getUrlParam('orderInfo');
             var wechatPayUrl = 'https://open.weixin.qq.com/connect/oauth2/authorize';
             var appId = 'wx91c4152b60ca91a3';
             var redirect_uri = 'https://www-b.caimei365.com/pay/wechatpay.html';
@@ -15,9 +16,10 @@ var payContainer = new Vue({
             window.location.href = url;
         }
     },
+    created:function () {
+        this.authRedirect()
+    },
     mounted: function () {
-        var _self = this;
-        var orderInfo = CAIMEI.getUrlParam('orderInfo');
-        _self.authRedirect(orderInfo)
+
     }
 });

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

@@ -45,6 +45,7 @@ var payContainer = new Vue({
             }
         },
         WxPaySubmit:function(){
+            this.isSubMitStatus=true;
             if(this.paymentChannel == 'HLB'){
                 this.hlbWechatPayFn()
             }else{

+ 0 - 5
src/main/resources/static/js/pay/mixin/hlb_wxMixin.js

@@ -14,7 +14,6 @@ var hlbWechatMixin = function () {
 					returnUrl:'https://www.caimei365.com/',
 				};
 				console.log('=========>普通订单合利宝公众号支付',params)
-				_this.isSubMitStatus=true;
 				PayApi.PayOrderPcScanWxPay(params,function(response){
 					_this.hlb_handlResponse(response)
 				})
@@ -30,7 +29,6 @@ var hlbWechatMixin = function () {
 					returnUrl: 'https://www.caimei365.com/',
 				};
 				console.log('=========>超级会员合利宝公众号支付',params)
-				_this.isSubMitStatus=true;
 				PayApi.PayVipMiniWxPay(params,function(response){
 					_this.hlb_handlResponse(response)
 				});
@@ -48,7 +46,6 @@ var hlbWechatMixin = function () {
 					source:2 //支付来源 1 小程序 2 WWW
 				};
 				console.log('=========>优惠券合利宝公众号支付',params)
-				_this.isSubMitStatus=true;
 				PayApi.PayCouponMiniWxPay(params,function(response){
 					_this.hlb_handlResponse(response)
 				});
@@ -64,7 +61,6 @@ var hlbWechatMixin = function () {
 					returnUrl: 'https://www.caimei365.com/',
 				};
 				console.log('=========>认证通会员合利宝公众号支付',params)
-				_this.isSubMitStatus=true;
 				PayApi.PayAuthVipMiniWxPay(params,function(response){
 					_this.hlb_handlResponse(response)
 				});
@@ -79,7 +75,6 @@ var hlbWechatMixin = function () {
 					returnUrl: 'https://www.caimei365.com/',
 				};
 				console.log('=========>二手发布合利宝公众号支付',params)
-				_this.isSubMitStatus=true;
 				PayApi.PayOrdersecondWechat(params,function(response){
 					_this.hlb_handlResponse(response)
 				});