kongdeqiang
2023-11-21 2898325db11ed938f9891991198b88ea6a042d3d
修改前端页面
5个文件已修改
50 ■■■■■ 已修改文件
src/components/page/IndexFail.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/page/IndexOk.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/page/IndexTest.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/page/IndexXTYH.vue 32 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/router/index.js 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/page/IndexFail.vue
@@ -76,7 +76,7 @@
            }
            //this.outParkId = cs.code;
            this.code2 = cs.code2;
            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;
src/components/page/IndexOk.vue
@@ -76,7 +76,7 @@
            }
            //this.outParkId = cs.code;
            this.code2 = cs.code2;
            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;
src/components/page/IndexTest.vue
@@ -150,7 +150,7 @@
          }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;
src/components/page/IndexXTYH.vue
@@ -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;
                }
              }
            })
src/router/index.js
@@ -95,16 +95,16 @@
            component: resolve => require(['../components/page/Index.vue'], resolve),
            meta: { title: '违章停车' }
        },
        // {
        //     path: '/index2',
        //     component: resolve => require(['../components/page/Index2.vue'], resolve),
        //     meta: { title: '智慧泊车' }
        // },
        {
            path: '/index2',
            component: resolve => require(['../components/page/IndexXTYH.vue'], resolve),
            component: resolve => require(['../components/page/Index2.vue'], resolve),
            meta: { title: '智慧泊车' }
        },
        // {
        //     path: '/index2',
        //     component: resolve => require(['../components/page/IndexXTYH.vue'], resolve),
        //     meta: { title: '智慧泊车' }
        // },
        {
            path: '/indexOk',
            component: resolve => require(['../components/page/IndexOk.vue'], resolve),