From e2b53042ccc6cabe4a76f9b33b17b251f878d371 Mon Sep 17 00:00:00 2001
From: kongdeqiang <123456>
Date: 星期二, 02 一月 2024 17:21:26 +0800
Subject: [PATCH] 修改前端页面

---
 src/components/page/IndexXTYH.vue |   39 +++++++++++++++++++++++++--------------
 1 files changed, 25 insertions(+), 14 deletions(-)

diff --git a/src/components/page/IndexXTYH.vue b/src/components/page/IndexXTYH.vue
index 703934f..24dbfe6 100644
--- a/src/components/page/IndexXTYH.vue
+++ b/src/components/page/IndexXTYH.vue
@@ -7,7 +7,7 @@
         <!--</div>-->
         <div class="weizhang-main-box">
             <div class="weizhang-main-top">
-                <img class="logoPhone" src="../../assets/images/logoImg.png" alt="">
+<!--                <img class="logoPhone" src="../../assets/images/logoImg.png" alt="">-->
                 <span class="weizhang">鍋滆溅鏀惰垂</span>
                 <span class="money">锟{this.statisticData.price}}</span>
             </div>
@@ -131,17 +131,17 @@
             //鏀粯瀹�
             this.type = 1
           }
-          if(this.type == null){
-            this.$message.error("璇风敤寰俊鎴栨敮浠樺疂鎵弿浜岀淮鐮�")
-            return;
-          }
+          // if(this.type == null){
+          //   this.$message.error("璇风敤寰俊鎴栨敮浠樺疂鎵弿浜岀淮鐮�")
+          //   return;
+          // }
 
             var url = window.location.href;
             var count = url.split('?').length-1;
             if(count >1){
-              this.code = this.getCodeFromUrl(url)
-              this.code2 = this.getCode2FromUrl(url)
-              window.location.href = "http://hesuancj.cn/#/index2?code="+this.code+"&state=STATE&code2="+this.code2
+              let codeONE = this.getCodeFromUrl(url)
+              let codeTWO = this.getCode2FromUrl(url)
+              window.location.href = "http://hesuancj.cn/#/index2?code="+codeONE+"&state=STATE&code2="+codeTWO
             }
             var cs = url.split('?')[1];
             var cs_arr = cs.split('&');
@@ -153,14 +153,20 @@
           this.code2 = cs.code2;
           this.code = cs.code;
           if(this.code2 == null || this.code2 == ''){
-            window.location.href = "http://hesuancj.cn/#/index2?code2="+this.code
+            this.$message({
+              message: '1绉掑悗鑷姩璺宠浆锛岃绋嶇瓑',
+              type: 'success',
+              duration:1000,
+            });
+            setTimeout(function(){window.location.href = "http://hesuancj.cn/#/index2?code2="+cs.code},1000);
+            return;
           }
           if(this.code != null && this.code != '') {
             this.dialogVisible = true
           }else {
             this.dialogVisible = false
           }
-          this.$byutil.postData(this, this.$systemconfig.basePath + '/ffzf/outpark/findByBarrierCode', {code2:cs.code2}, res => {
+          this.$byutil.postData(this, this.$systemconfig.basePath + '/ffzf/outpark/findByBarrierCode2', {code2:cs.code2}, res => {
             this.statisticData = res.data;
             this.outParkId = this.statisticData.id;
             this.status3 = this.statisticData.status3;
@@ -177,6 +183,8 @@
         },
         methods: {
             pay(){
+                console.log('code',this.code)
+                console.log('code2',this.code2)
                 this.payFlag = true;
                 this.payNowFlag = true;
                 if(this.status3==1){
@@ -315,12 +323,14 @@
           },
           queryOrder() {
             this.$byutil.postData(this, this.$systemconfig.basePath + '/ffzf/outpark/getById', {id: this.outParkId}, res => {
-              if (res.code == 0) {
+              if (res.code === 0) {
                 let outpark = res.data
-                if(outpark.status == 1){
+                if(outpark.status === 1){
                   window.location.href = "http://hesuancj.cn/#/indexOk?code2="+this.code2
+                  return;
                 }else {
                   window.location.href = "http://hesuancj.cn/#/indexFail?code2="+this.code2
+                  return;
                 }
               }
             })
@@ -423,16 +433,17 @@
         padding:5.33vw  /* 40/7.5 */;
     }
     .weizhang-main-top{
-        height: 22.489vh  /* 300/13.34 */;
+        height: 21.489vh  /* 300/13.34 */;
         display: flex;
         flex-direction: column;
         justify-content: center;
         align-items: center;
         border-bottom: 1px solid #f0f0f0;
         .money{
-            font-size: 6.93vw  /* 52/7.5 */;
+            font-size: 7.6vw  /* 52/7.5 */;
             font-weight: 550;
             color: #000;
+            margin-top: 1vw;
         }
         .weizhang{
             font-size: 0.4rem  /* 30/75 */;

--
Gitblit v1.9.1