Commit ec24e2b17bec95d155747827e21fc61065d18efe
1 parent
373bae16
登陆验证码提交
Showing
2 changed files
with
19 additions
and
1 deletions
.env.development
| @@ -3,6 +3,7 @@ ENV = 'development' | @@ -3,6 +3,7 @@ ENV = 'development' | ||
| 3 | 3 | ||
| 4 | # base api '/dev-api' | 4 | # base api '/dev-api' |
| 5 | VUE_APP_BASE_API = 'http://test.renniting.cn/bcp/' | 5 | VUE_APP_BASE_API = 'http://test.renniting.cn/bcp/' |
| 6 | +#VUE_APP_BASE_API = 'http://bcp.service.huangshiparking.com/' | ||
| 6 | 7 | ||
| 7 | 8 | ||
| 8 | # vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable, | 9 | # vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable, |
src/views/mycar/index.vue
| @@ -119,7 +119,7 @@ | @@ -119,7 +119,7 @@ | ||
| 119 | debugger | 119 | debugger |
| 120 | 120 | ||
| 121 | if(null != that.alredyBoundCar && that.alredyBoundCar.length >0){ | 121 | if(null != that.alredyBoundCar && that.alredyBoundCar.length >0){ |
| 122 | - if(that.alredyBoundCar.length >5){ | 122 | + if(that.alredyBoundCar.length ==5){ |
| 123 | this.$message({ | 123 | this.$message({ |
| 124 | type: 'error', | 124 | type: 'error', |
| 125 | message: '最多只能绑定5个车牌!' | 125 | message: '最多只能绑定5个车牌!' |
| @@ -158,6 +158,23 @@ | @@ -158,6 +158,23 @@ | ||
| 158 | } | 158 | } |
| 159 | } | 159 | } |
| 160 | 160 | ||
| 161 | + }else{ | ||
| 162 | + let checkReq ={ | ||
| 163 | + carNumber:carNum | ||
| 164 | + } | ||
| 165 | + checkCarNumIsbind(checkReq).then(response =>{ | ||
| 166 | + if(response.code =='8888'){ | ||
| 167 | + if(null != response.data && null != response.data.id){ | ||
| 168 | + this.$message({ | ||
| 169 | + type: 'error', | ||
| 170 | + message: '改车牌已被其他车主绑定!' | ||
| 171 | + }); | ||
| 172 | + return false | ||
| 173 | + }else{ | ||
| 174 | + that.bondCarNum(custId,carNum) | ||
| 175 | + } | ||
| 176 | + } | ||
| 177 | + }); | ||
| 161 | } | 178 | } |
| 162 | 179 | ||
| 163 | }); | 180 | }); |