kongdeqiang
2022-12-22 558dcc7a2a0f739ee178436728161d54c1fd365d
修改前端页面
4个文件已修改
43 ■■■■ 已修改文件
package-lock.json 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/page/Index2.vue 30 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
vue.config.js 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
package-lock.json
@@ -7862,6 +7862,12 @@
        "invert-kv": "^1.0.0"
      }
    },
    "lib-flexible": {
      "version": "0.3.2",
      "resolved": "https://mirrors.cloud.tencent.com/npm/lib-flexible/-/lib-flexible-0.3.2.tgz",
      "integrity": "sha1-BvWnSDIxSi01wSA5vJw8otrqpCY=",
      "dev": true
    },
    "lighthouse-logger": {
      "version": "1.2.0",
      "resolved": "https://registry.npmjs.org/lighthouse-logger/-/lighthouse-logger-1.2.0.tgz",
src/components/page/Index2.vue
@@ -81,7 +81,9 @@
            //this.outParkId = cs.code;
            this.code2 = cs.code;
            this.$byutil.postData(this, this.$systemconfig.basePath + '/outPark/findByBarrierCode', {code:cs.code}, res => {
                this.statisticData = res.obj;
                this.statisticData = res.data;
                this.statisticData.enterTime = this.dateFormat('yyyy-MM-dd HH:mm:ss',this.statisticData.enterTime)
                this.statisticData.createTime = this.dateFormat('yyyy-MM-dd HH:mm:ss',this.statisticData.createTime)
                this.outParkId = this.statisticData.id;
                this.status3 = this.statisticData.status3;
                if(this.status3==1){
@@ -109,7 +111,7 @@
                        type: 'success',
                        duration:10000,
                    });
                    setTimeout(function(){window.location.href = res.obj;},10000);
                    setTimeout(function(){window.location.href = res.data.obj;},10000);
                    this.showFlag = false;
                })
            },
@@ -117,7 +119,7 @@
                if(this.carNo){
                    this.$byutil.postData(this, this.$systemconfig.basePath + '/outPark/outPark2', {code2:this.code2,carNo:this.carNo}, res => {
                        if(res.success){
                            this.outParkId = res.obj.id;
                            this.outParkId = res.data.id;
                            this.pay();
                            this.showFlag = false;
                        }else{
@@ -135,7 +137,29 @@
                    });
                }
            },
          dateFormat(fmt, date) {
            let ret
            const opt = {
              'y+': date.getFullYear().toString(), // 年
              'M+': (date.getMonth() + 1).toString(), // 月
              'd+': date.getDate().toString(), // 日
              'H+': date.getHours().toString(), // 时
              'm+': date.getMinutes().toString(), // 分
              's+': date.getSeconds().toString(), // 秒
              // 有其他格式化字符需求可以继续添加,必须转化成字符串
            }
            for (let k in opt) {
              ret = new RegExp('(' + k + ')').exec(fmt)
              if (ret) {
                fmt = fmt.replace(
                    ret[1],
                    ret[1].length == 1 ? opt[k] : opt[k].padStart(ret[1].length, '0')
                )
              }
            }
            return fmt
          },
        }
    }
src/main.js
@@ -44,7 +44,7 @@
Vue.prototype.$systemconfig = {
// 服务端路径
    basePath: 'http://183.196.93.178:8089',
    //basePath:'http://localhost:8088'
    //basePath:'http://127.0.0.1:8089'
}
Vue.prototype.$byutil = byUtils
Vue.prototype.$stringUtil = StringUtil
vue.config.js
@@ -5,7 +5,8 @@
    devServer: {
        proxy: {
            '/api':{
                target:'http://192.168.0.146',
                target:'http://183.196.93.178',
                //target:'http://127.0.0.1',
                changeOrigin:true,
                pathRewrite:{
                    '/api':''
@@ -13,4 +14,4 @@
            }
        }
    }
}
}