From ec24e2b17bec95d155747827e21fc61065d18efe Mon Sep 17 00:00:00 2001 From: wangfs <15029758498@163.com> Date: Fri, 11 Sep 2020 16:06:14 +0800 Subject: [PATCH] 登陆验证码提交 --- .env.development | 1 + src/views/mycar/index.vue | 19 ++++++++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/.env.development b/.env.development index 792c363..e5b1958 100644 --- a/.env.development +++ b/.env.development @@ -3,6 +3,7 @@ ENV = 'development' # base api '/dev-api' VUE_APP_BASE_API = 'http://test.renniting.cn/bcp/' +#VUE_APP_BASE_API = 'http://bcp.service.huangshiparking.com/' # vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable, diff --git a/src/views/mycar/index.vue b/src/views/mycar/index.vue index 23bdea2..6c9505f 100644 --- a/src/views/mycar/index.vue +++ b/src/views/mycar/index.vue @@ -119,7 +119,7 @@ debugger if(null != that.alredyBoundCar && that.alredyBoundCar.length >0){ - if(that.alredyBoundCar.length >5){ + if(that.alredyBoundCar.length ==5){ this.$message({ type: 'error', message: '最多只能绑定5个车牌!' @@ -158,6 +158,23 @@ } } + }else{ + let checkReq ={ + carNumber:carNum + } + checkCarNumIsbind(checkReq).then(response =>{ + if(response.code =='8888'){ + if(null != response.data && null != response.data.id){ + this.$message({ + type: 'error', + message: '改车牌已被其他车主绑定!' + }); + return false + }else{ + that.bondCarNum(custId,carNum) + } + } + }); } }); -- libgit2 0.21.4