Browse Source

修改网银支付跳转还原

zhengjinyi 1 month ago
parent
commit
f7d2177a5f

+ 0 - 80
src/main/resources/static/css/pay/caimei-paycash.css

@@ -197,86 +197,6 @@ input::-webkit-outer-spin-button {
     .model-content .content .content-form .form-btn a{display: block;width: 130px;height: 32px;box-sizing: border-box;background: #FF5B00;line-height: 32px;text-align: center;font-size: 14px;color: #FFFFFF;border-radius: 2px;}
     .model-content .content .content-form .form-btn a.disabled{background: #B8BFCA;color: #FFFFFF;}
     .model-content .content .content-form .form-text{ line-height: 32px; font-size: 14px;color: #333333; }
-    .iframe-fiexd{
-        width: 100%;
-        height: 100%;
-        position: fixed;
-        top: 0;
-        left: 0;
-        right: 0;
-        bottom: 0;
-        margin: auto;
-        background: rgba(0,0,0,0.5);
-        border-radius: 8px;
-        display: flex;
-        justify-content: center;
-        align-items: center;
-        z-index: 999;
-    }
-    #iframe{
-        width: 340px;
-        height: 270px;
-        position: absolute;
-        top: 0;
-        left: 0;
-        right: 0;
-        bottom: 0;
-        margin: auto;
-        background: #FFFFFF;
-        border-radius: 8px;
-        display: flex;
-        flex-direction: column;
-        justify-content: center;
-        align-items: center;
-        z-index: 9999;
-        box-sizing: border-box;
-        padding: 0 20px 20px 20px;
-    }
-    #iframe h1{
-        width: 100%;
-        line-height: 60px;
-        text-align: center;
-        font-weight: 600;
-        color: #333333;
-        font-size: 20px;
-    }
-    #iframe p{
-        width: 100%;
-        line-height: 20px;
-        text-align: left;
-        font-weight: 600;
-        color: #666666;
-    }
-    #iframe .p2,.p4{
-        width: 100%;
-        height: 40px;
-        border-radius: 4px;
-        background: #FFFFFF;
-        BOX-SIZING: border-box;
-        padding: 0 10px;
-        line-height: 40px;
-        border: 1px solid #e1e1e1;
-        margin: 5px 0;
-        color: #666666;
-    }
-    #onlineForm{
-        display: flex;
-        flex-direction: column;
-        width: 100%;
-        justify-content: center;
-        align-items: center;
-    }
-    #iframe input[type="submit"]{
-        font-style: normal;
-        width: 180px;
-        height: 40px;
-        border-radius: 20px;
-        border: none;
-        background: linear-gradient(90deg, #FF9300 0%, #FF5B00 100%);
-        color: #FFFFFF;
-        cursor: pointer;
-        margin-top: 10px;
-    }
 }
 
 

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

@@ -18,7 +18,6 @@ var payContainer = new Vue({
             payType:'1',
         },
         iframe:'',
-        isIframe: false,
         orderFlag:1,// 是否是订单  0非订单 1订单
         couponInfo:{},
         bankListB2BData:[],// 企业网银银行列表

+ 13 - 17
src/main/resources/static/js/pay/mixin/hlb_payMixin.js

@@ -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;

+ 2 - 6
src/main/resources/templates/pay/caimei-hlbpay.html

@@ -164,14 +164,10 @@
                                     <p v-if="!isPC">复制支付链接成功后,将链接发送到电脑端进行付款</p>
                                 </div>
                             </template>
-                            <template v-if="orderFlag === 1">
-                                <div class="iframe-fiexd" v-if="isIframe">
-                                    <div class="iframe" id="iframe" v-html="iframe"></div>
-                                </div>
-                            </template>
-                            <template >
+                            <template>
                                 <div class="iframe" v-html="iframe" style="display: none;"></div>
                             </template>
+
                         </div>
                     </div>
                 </div>