Explorar el Código

整理优化支付

zhengjinyi hace 3 años
padre
commit
a06e5fb202

+ 12 - 0
src/main/resources/static/js/common/serviceapi/pay.service.js

@@ -296,6 +296,18 @@ var PayApi = {
                 callback(res);
             });
         },
+        PayOrderPcScanWxPay: function (params, callback) {// 正常订单合利宝微信公众号支付
+            Http.AjaxService({
+                url:'/order/pay/online',
+                type:'POST',
+                data:params,
+                json:false,
+                isHost:true
+            })
+            .then(function(res){
+                callback(res);
+            });
+        },
         PayOrdersecondScanAliPay: function (params, callback) {//二手发布合利宝支付宝支付
             Http.AjaxService({
                 url:'/order/pay/second/scan',

+ 3 - 3
src/main/resources/static/js/pay/caimei-hlbpay.js

@@ -250,7 +250,7 @@ var payContainer = new Vue({
                     orderID:_self.payInfo.payOrderId,
                     payAmount:_self.payAmount
                 };
-                _self.payInfo.payMobileUrl = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxea43a0f9ebce9e66&redirect_uri=https://www.caimei365.com/pay/wechatpay.html&response_type=code&scope=snsapi_base&state="+JSON.stringify(orderInfo)+"#wechat_redirect";
+                _self.payInfo.payMobileUrl = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx91c4152b60ca91a3&redirect_uri=https://www.caimei365.com/pay/wechatpay.html&response_type=code&scope=snsapi_base&state="+JSON.stringify(orderInfo)+"#wechat_redirect";
                 location.href = _self.payInfo.payMobileUrl;
             }else{
                 _self.payInfo.payData = {//正常订单
@@ -333,7 +333,7 @@ var payContainer = new Vue({
                     productId:_self.productID,
                     payAmount:_self.payAmount
                 };
-                _self.payInfo.payMobileUrl = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxea43a0f9ebce9e66&redirect_uri=https://www.caimei365.com/pay/wechatpay.html&response_type=code&scope=snsapi_base&state="+JSON.stringify(orderInfo)+"#wechat_redirect";
+                _self.payInfo.payMobileUrl = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx91c4152b60ca91a3&redirect_uri=https://www.caimei365.com/pay/wechatpay.html&response_type=code&scope=snsapi_base&state="+JSON.stringify(orderInfo)+"#wechat_redirect";
                 location.href = _self.payInfo.payMobileUrl;
             }else{// PC 跳扫码支付页
                 _self.payInfo.payData = {//二手
@@ -409,7 +409,7 @@ var payContainer = new Vue({
                     vipRecordId: _self.vipRecordId,
                     payAmount: _self.payAmount
                 };
-                _self.payInfo.payMobileUrl = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxea43a0f9ebce9e66&redirect_uri=https://www.caimei365.com/pay/wechatpay.html&response_type=code&scope=snsapi_base&state=" + JSON.stringify(orderInfo) + "#wechat_redirect";
+                _self.payInfo.payMobileUrl = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx91c4152b60ca91a3&redirect_uri=https://www.caimei365.com/pay/wechatpay.html&response_type=code&scope=snsapi_base&state=" + JSON.stringify(orderInfo) + "#wechat_redirect";
                 location.href = _self.payInfo.payMobileUrl;
             } else {
                 _self.payInfo.payData = {

+ 34 - 190
src/main/resources/static/js/pay/caimei-wechatpay.js

@@ -3,9 +3,11 @@
  */
 var payContainer = new Vue({
     el:"#payContainer",
+    mixins: [mhWechatMixin,hlbWechatMixin],
     data: {
+        paymentChannel:'HLB',
         orderID:'',
-        pageType:'',//页面跳转类型 1为二手 0为订单
+        pageType:0,//页面跳转类型 0:订单 1:二手 2:超级会员 3:优惠券 4:认证通会员
         payAmount:0,//本次支付金额
         wechatcode:'',//微信code
         state:0,//随机数
@@ -23,10 +25,10 @@ var payContainer = new Vue({
     methods: {
         infoPayOrderCheckoutCounter:function(){//初始化订单数据
             var _this = this;
-            _this.wechatcode = CAIMEI.getUrlParam('code');
-            _this.state = JSON.parse(decodeURIComponent(CAIMEI.getUrlParam('state')));
-            _this.payAmount = _this.state.payAmount;
-            _this.pageType = _this.state.pageType;
+            // _this.wechatcode = CAIMEI.getUrlParam('code');
+            // _this.state = JSON.parse(decodeURIComponent(CAIMEI.getUrlParam('state')));
+            // _this.payAmount = _this.state.payAmount;
+            // _this.pageType = _this.state.pageType;
             _this.isRequest = true;
             if( _this.pageType == 1){
                 _this.productId = _this.state.productId;
@@ -42,197 +44,39 @@ var payContainer = new Vue({
             }
         },
         WxPaySubmit:function(){
-            if (this.pageType == 1) {
-                this.WxRequestsecondHandPay();
+            if(this.paymentChannel == 'HLB'){
+                this.hlbWechatPayFn()
+            }else{
+                this.mhWechatPayFn()
+            }
+        },
+        hlbWechatPayFn:function () {// 合利宝
+            console.log('=========>合利宝')
+            if (this.pageType == 1) {// 二手
+                this.hlb_WxRequestsecondHandPay();
             } else if (this.pageType == 2) {
-                this.WxRequestPaymentVipFn();
+                this.hlb_WxRequestPaymentVipFn();
             } else if (this.pageType == 3) {
-                this.WxRequestPaymentCouponFn();
+                this.hlb_WxRequestPaymentCouponFn();
             } else if (this.pageType === 4){
-                this.WxRequestPaymentAuthVipFn();
+                this.hlb_WxRequestPaymentAuthVipFn();
             } else {
-                this.WxRequestPaymentFn();
+                this.hlb_WxRequestPaymentFn();
             }
         },
-        // 会员支付
-        WxRequestPaymentVipFn: function(){
-            var _this = this;
-            var params = {
-                code: _this.wechatcode,
-                state: _this.rand(1000, 9999),
-                vipId: _this.vipId,
-                vipRecordId: _this.vipRecordId,
-                returnUrl: 'https://www.caimei365.com/',
-            };
-            PayApi.PayVipMiniWxPay(params,function(response){
-                if(response.code == 0){
-                    var PayInfo = JSON.parse(response.data.data.payInfo);
-                    if (typeof WeixinJSBridge == "undefined"){
-                        if( document.addEventListener ){
-                            document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false);
-                        }else if (document.attachEvent){
-                            document.attachEvent('WeixinJSBridgeReady', onBridgeReady);
-                            document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);
-                        }
-                    }else{
-                        _this.onBridgeReady(PayInfo);
-                    }
-                }else{
-                     CAIMEI.dialog("支付链接已失效,请重新扫码支付");
-                    setTimeout(function(){
-                        WeixinJSBridge.call('closeWindow');
-                    },3000);
-                }
-            });
-        },
-        WxRequestPaymentAuthVipFn: function(){
-            var _this = this;
-            var params = {
-                code: _this.wechatcode,
-                state: _this.rand(1000, 9999),
-                vipId: _this.vipId,
-                vipRecordId: _this.vipRecordId,
-                returnUrl: 'https://www.caimei365.com/',
-            };
-            PayApi.PayAuthVipMiniWxPay(params,function(response){
-                if(response.code == 0){
-                    var PayInfo = JSON.parse(response.data.data.payInfo);
-                    if (typeof WeixinJSBridge == "undefined"){
-                        if( document.addEventListener ){
-                            document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false);
-                        }else if (document.attachEvent){
-                            document.attachEvent('WeixinJSBridgeReady', onBridgeReady);
-                            document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);
-                        }
-                    }else{
-                        _this.onBridgeReady(PayInfo);
-                    }
-                }else{
-                     CAIMEI.dialog("支付链接已失效,请重新扫码支付");
-                    setTimeout(function(){
-                        WeixinJSBridge.call('closeWindow');
-                    },3000);
-                }
-            });
-        },
-        // 优惠券支付
-        WxRequestPaymentCouponFn: function(){
-            var _this = this;
-            var params = {
-                code: _this.wechatcode,
-                state: _this.rand(1000, 9999),
-                userId: _this.userId,
-                couponId: _this.couponId,
-                couponRecordId:_this.couponRecordId,
-                returnUrl: 'https://www.caimei365.com/',
-                source:2 //支付来源 1 小程序 2 WWW
-            };
-            PayApi.PayCouponMiniWxPay(params,function(response){
-                if(response.code == 0){
-                    var PayInfo = JSON.parse(response.data.data.payInfo);
-                    if (typeof WeixinJSBridge == "undefined"){
-                        if( document.addEventListener ){
-                            document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false);
-                        }else if (document.attachEvent){
-                            document.attachEvent('WeixinJSBridgeReady', onBridgeReady);
-                            document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);
-                        }
-                    }else{
-                        _this.onBridgeReady(PayInfo);
-                    }
-                }else{
-                    CAIMEI.dialog("支付链接已失效,请重新扫码支付");
-                    setTimeout(function(){
-                        WeixinJSBridge.call('closeWindow');
-                    },3000);
-                }
-            });
-        },
-        WxRequestsecondHandPay:function(){ // 二手商品支付
-            var _this = this;
-            var params = {
-                code: _this.wechatcode,
-                state: _this.rand(1000, 9999),
-                productId: _this.productId,
-                returnUrl: 'https://www.caimei365.com/',
-            };
-            PayApi.PayOrdersecondWechat(params,function(response){
-                if(response.code == 0){
-                    var PayInfo = JSON.parse(response.data.data.payInfo);
-                    if (typeof WeixinJSBridge == "undefined"){
-                        if( document.addEventListener ){
-                            document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false);
-                        }else if (document.attachEvent){
-                            document.attachEvent('WeixinJSBridgeReady', onBridgeReady);
-                            document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);
-                        }
-                    }else{
-                        _this.onBridgeReady(PayInfo);
-                    }
-                }else{
-                     CAIMEI.dialog("支付链接已失效,请重新扫码支付");
-                    setTimeout(function(){
-                        WeixinJSBridge.call('closeWindow');
-                    },3000);
-                }
-            });
-        },
-        WxRequestPaymentFn:function(){ // 普通订单支付
-            var _this = this;
-            var params={
-                    payAmount:Math.round(_this.payAmount*100),
-                    code:_this.wechatcode,
-                    state:_this.rand(1000,9999),
-                    orderId:_this.orderID,
-                    returnUrl:'https://www.caimei365.com/',
-            };
-            PayApi.PayOrderMiniWxPay(params,function(response){
-                if(response.code == 0){
-                    var PayInfo = JSON.parse(response.data.data.payInfo);
-                    if (typeof WeixinJSBridge == "undefined"){
-                        if( document.addEventListener ){
-                            document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false);
-                        }else if (document.attachEvent){
-                            document.attachEvent('WeixinJSBridgeReady', onBridgeReady);
-                            document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);
-                        }
-                    }else{
-                        _this.onBridgeReady(PayInfo);
-                    }
-                }else{
-                    CAIMEI.dialog('支付链接已失效,请重新扫码支付');
-                    setTimeout(function(){
-                        WeixinJSBridge.call('closeWindow');
-                    },3000);
-                }
-            })
-        },
-        onBridgeReady:function(data){
-            console.log('支付验证签名',data);
-            WeixinJSBridge.invoke('getBrandWCPayRequest', {
-                        "appId":data.appId,     //公众号名称,由商户传入
-                        "timeStamp":data.timeStamp,//时间戳,自1970年以来的秒数
-                        "nonceStr":data.nonceStr, //随机串
-                        "package":data.package,
-                        "signType":data.signType,        //微信签名方式:
-                        "paySign":data.paySign,  //微信签名
-                    },
-                function(res) {
-                    if(res.err_msg == "get_brand_wcpay_request:ok"){
-                         CAIMEI.dialog('支付成功');
-                        window.open("https://www.caimei365.com/");
-                    }else if(res.err_msg == "get_brand_wcpay_request:cancel"){
-                         CAIMEI.dialog("用户取消支付,请重新扫码支付");
-                        setTimeout(function(){
-                            WeixinJSBridge.call('closeWindow');
-                        },3000);
-                    }else{
-                         CAIMEI.dialog("支付失败,请重新扫码支付");
-                        setTimeout(function(){
-                            WeixinJSBridge.call('closeWindow');
-                        },3000);
-                    }
-            });
+        mhWechatPayFn:function () {// 米花
+            console.log('=========>米花')
+            if (this.pageType == 1) {
+                this.mh_WxRequestsecondHandPay();
+            } else if (this.pageType == 2) {
+                this.mh_WxRequestPaymentVipFn();
+            } else if (this.pageType == 3) {
+                this.mh_WxRequestPaymentCouponFn();
+            } else if (this.pageType === 4){
+                this.mh_WxRequestPaymentAuthVipFn();
+            } else {
+                this.mh_WxRequestPaymentFn();
+            }
         },
         rand:function (min,max) {//随机数
             return Math.floor(Math.random()*(max-min))+min;

+ 127 - 0
src/main/resources/static/js/pay/mixin/hlb_mixin.js

@@ -0,0 +1,127 @@
+'use strict';
+
+var hlbWechatMixin = function () {
+	return {
+		methods: {
+			hlb_WxRequestPaymentFn:function(){ // 普通订单合利宝公众号支付
+				var _this = this;
+				var params={
+					payType:'GZH',
+					payAmount:Math.round(_this.payAmount*100),
+					code:_this.wechatcode,
+					state:_this.rand(1000,9999),
+					orderId:_this.orderID,
+					returnUrl:'https://www.caimei365.com/',
+				};
+				console.log('=========>普通订单合利宝公众号支付',params)
+				PayApi.PayOrderPcScanWxPay(params,function(response){
+					_this.hlb_handlResponse(response)
+				})
+			},
+			hlb_WxRequestPaymentVipFn: function(){ // 超级会员合利宝公众号支付
+				var _this = this;
+				var params = {
+					payType:'GZH',
+					code: _this.wechatcode,
+					state: _this.rand(1000, 9999),
+					vipId: _this.vipId,
+					vipRecordId: _this.vipRecordId,
+					returnUrl: 'https://www.caimei365.com/',
+				};
+				PayApi.PayVipMiniWxPay(params,function(response){
+					_this.hlb_handlResponse(response)
+				});
+			},
+			hlb_WxRequestPaymentCouponFn: function(){// 优惠券合利宝公众号支付
+				var _this = this;
+				var params = {
+					payType:'GZH',
+					code: _this.wechatcode,
+					state: _this.rand(1000, 9999),
+					userId: _this.userId,
+					couponId: _this.couponId,
+					couponRecordId:_this.couponRecordId,
+					returnUrl: 'https://www.caimei365.com/',
+					source:2 //支付来源 1 小程序 2 WWW
+				};
+				PayApi.PayCouponMiniWxPay(params,function(response){
+					_this.hlb_handlResponse(response)
+				});
+			},
+			hlb_WxRequestPaymentAuthVipFn: function(){// 认证通会员合利宝公众号支付
+				var _this = this;
+				var params = {
+					payType:'GZH',
+					code: _this.wechatcode,
+					state: _this.rand(1000, 9999),
+					vipId: _this.vipId,
+					vipRecordId: _this.vipRecordId,
+					returnUrl: 'https://www.caimei365.com/',
+				};
+				PayApi.PayAuthVipMiniWxPay(params,function(response){
+					_this.hlb_handlResponse(response)
+				});
+			},
+			hlb_WxRequestsecondHandPay:function(params){ // 二手发布合利宝公众号支付
+				var _this = this;
+				var params = {
+					payType:'GZH',
+					code: _this.wechatcode,
+					state: _this.rand(1000, 9999),
+					productId: _this.productId,
+					returnUrl: 'https://www.caimei365.com/',
+				};
+				PayApi.PayOrdersecondWechat(params,function(response){
+					_this.hlb_handlResponse(response)
+				});
+			},
+			hlb_handlResponse:function (response) {
+				if(response.code == 0){
+					var PayInfo = JSON.parse(response.data.data.payInfo);
+					if (typeof WeixinJSBridge == "undefined"){
+						if( document.addEventListener ){
+							document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false);
+						}else if (document.attachEvent){
+							document.attachEvent('WeixinJSBridgeReady', onBridgeReady);
+							document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);
+						}
+					}else{
+						_this.mh_onBridgeReady(PayInfo);
+					}
+				}else{
+					CAIMEI.dialog("支付链接已失效,请重新扫码支付");
+					setTimeout(function(){
+						WeixinJSBridge.call('closeWindow');
+					},3000);
+				}
+			},
+			hlb_onBridgeReady:function(data){// 调起微信公众号支付
+				console.log('支付验证签名',data);
+				WeixinJSBridge.invoke('getBrandWCPayRequest', {
+						"appId":data.appId,     //公众号名称,由商户传入
+						"timeStamp":data.timeStamp,//时间戳,自1970年以来的秒数
+						"nonceStr":data.nonceStr, //随机串
+						"package":data.package,
+						"signType":data.signType,        //微信签名方式:
+						"paySign":data.paySign,  //微信签名
+				},
+				function(res) {
+					if(res.err_msg == "get_brand_wcpay_request:ok"){
+						CAIMEI.dialog('支付成功');
+						window.open("https://www.caimei365.com/");
+					}else if(res.err_msg == "get_brand_wcpay_request:cancel"){
+						CAIMEI.dialog("用户取消支付,请重新扫码支付");
+						setTimeout(function(){
+							WeixinJSBridge.call('closeWindow');
+						},3000);
+					}else{
+						CAIMEI.dialog("支付失败,请重新扫码支付");
+						setTimeout(function(){
+							WeixinJSBridge.call('closeWindow');
+						},3000);
+					}
+				});
+			},
+		}
+	};
+}();

+ 122 - 0
src/main/resources/static/js/pay/mixin/mh_mixin.js

@@ -0,0 +1,122 @@
+'use strict';
+
+var mhWechatMixin = function () {
+	return {
+		methods: {
+			mh_WxRequestPaymentFn:function(){ // 普通订单米花公众号支付
+				console.log('=========>普通订单米花公众号支付')
+				var _this = this;
+				var params={
+					payAmount:Math.round(_this.payAmount*100),
+					code:_this.wechatcode,
+					state:_this.rand(1000,9999),
+					orderId:_this.orderID,
+					returnUrl:'https://www.caimei365.com/',
+				};
+				PayApi.PayOrderMiniWxPay(params,function(response){
+					_this.mh_handlResponse(response)
+				})
+			},
+			mh_WxRequestPaymentVipFn: function(){	// 会员米花公众号支付
+				var _this = this;
+				var params = {
+					code: _this.wechatcode,
+					state: _this.rand(1000, 9999),
+					vipId: _this.vipId,
+					vipRecordId: _this.vipRecordId,
+					returnUrl: 'https://www.caimei365.com/',
+				};
+				PayApi.PayVipMiniWxPay(params,function(response){
+					_this.mh_handlResponse(response)
+				});
+			},
+			mh_WxRequestPaymentCouponFn: function(){// 优惠券米花公众号支付
+				var _this = this;
+				var params = {
+					code: _this.wechatcode,
+					state: _this.rand(1000, 9999),
+					userId: _this.userId,
+					couponId: _this.couponId,
+					couponRecordId:_this.couponRecordId,
+					returnUrl: 'https://www.caimei365.com/',
+					source:2 //支付来源 1 小程序 2 WWW
+				};
+				PayApi.PayCouponMiniWxPay(params,function(response){
+					_this.mh_handlResponse(response)
+				});
+			},
+			mh_WxRequestPaymentAuthVipFn: function(){// 认证通会员米花公众号支付
+				var _this = this;
+				var params = {
+					code: _this.wechatcode,
+					state: _this.rand(1000, 9999),
+					vipId: _this.vipId,
+					vipRecordId: _this.vipRecordId,
+					returnUrl: 'https://www.caimei365.com/',
+				};
+				PayApi.PayAuthVipMiniWxPay(params,function(response){
+					_this.mh_handlResponse(response)
+				});
+			},
+			mh_WxRequestsecondHandPay:function(){ // 二手发布米花公众号支付
+				var _this = this;
+				var params = {
+					code: _this.wechatcode,
+					state: _this.rand(1000, 9999),
+					productId: _this.productId,
+					returnUrl: 'https://www.caimei365.com/',
+				};
+				PayApi.PayOrdersecondWechat(params,function(response){
+					_this.mh_handlResponse(response)
+				});
+			},
+			mh_handlResponse:function (response) {
+				if(response.code == 0){
+					var PayInfo = JSON.parse(response.data.data.payInfo);
+					if (typeof WeixinJSBridge == "undefined"){
+						if( document.addEventListener ){
+							document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false);
+						}else if (document.attachEvent){
+							document.attachEvent('WeixinJSBridgeReady', onBridgeReady);
+							document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);
+						}
+					}else{
+						_this.mh_onBridgeReady(PayInfo);
+					}
+				}else{
+					CAIMEI.dialog("支付链接已失效,请重新扫码支付");
+					setTimeout(function(){
+						WeixinJSBridge.call('closeWindow');
+					},3000);
+				}
+			},
+			mh_onBridgeReady:function(data){// 调起微信公众号支付
+				console.log('支付验证签名',data);
+				WeixinJSBridge.invoke('getBrandWCPayRequest', {
+						"appId":data.appId,     //公众号名称,由商户传入
+						"timeStamp":data.timeStamp,//时间戳,自1970年以来的秒数
+						"nonceStr":data.nonceStr, //随机串
+						"package":data.package,
+						"signType":data.signType,        //微信签名方式:
+						"paySign":data.paySign,  //微信签名
+					},
+					function(res) {
+						if(res.err_msg == "get_brand_wcpay_request:ok"){
+							CAIMEI.dialog('支付成功');
+							window.open("https://www.caimei365.com/");
+						}else if(res.err_msg == "get_brand_wcpay_request:cancel"){
+							CAIMEI.dialog("用户取消支付,请重新扫码支付");
+							setTimeout(function(){
+								WeixinJSBridge.call('closeWindow');
+							},3000);
+						}else{
+							CAIMEI.dialog("支付失败,请重新扫码支付");
+							setTimeout(function(){
+								WeixinJSBridge.call('closeWindow');
+							},3000);
+						}
+					});
+			},
+		}
+	};
+}();

+ 1 - 1
src/main/resources/templates/activity/beautyTopic.html

@@ -825,7 +825,7 @@
 <script charset="utf-8" type="text/javascript" th:src="@{/js/activity/beautyTopic/base.js(v=${version})}"></script>
 <script charset="utf-8" type="text/javascript" th:src="@{/js/activity/beautyTopic/utils.js(v=${version})}"></script>
 <script charset="utf-8" type="text/javascript" th:src="@{/js/activity/beautyTopic/layout.js(v=${version})}"></script>
-<script charset="utf-8" type="text/javascript" th:src="@{/js/activity/beautyTopic/mixin.js(v=${version})}"></script>
+<script charset="utf-8" type="text/javascript" th:src="@{/js/activity/beautyTopic/mh_mixin.js(v=${version})}"></script>
 <script charset="utf-8" type="text/javascript" th:src="@{/js/activity/beautyTopic.js(v=${version})}"></script>
 <script>
     var isFormal = window.location.href.indexOf('www.caimei365.com') !== -1;

+ 2 - 0
src/main/resources/templates/pay/caimei-wechatpay.html

@@ -33,6 +33,8 @@
 <script src="https://res.wx.qq.com/connect/zh_CN/htmledition/js/wxLogin.js"></script>
 <script charset="utf-8" type="text/javascript" th:src="@{/lib/js/viewport-sitting.js(v=${version})}"></script>
 <script charset="utf-8" type="text/javascript" th:src="@{/js/common/serviceapi/pay.service.js(v=${version})}"></script>
+<script charset="utf-8" type="text/javascript" th:src="@{/js/pay/mixin/hlb_mixin.js(v=${version})}"></script>
+<script charset="utf-8" type="text/javascript" th:src="@{/js/pay/mixin/mh_mixin.js(v=${version})}"></script>
 <script charset="utf-8" type="text/javascript" th:src="@{/js/pay/caimei-wechatpay.js(v=${version})}"></script>
 </body>
 </html>