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) + } + } + }); } });