Commit 12fc10d2df13f1b6184854b1c193fc753a30703a
1 parent
7850cc26
赤峰 输入车牌停车记录
Showing
2 changed files
with
5 additions
and
10 deletions
dist.zip
No preview for this file type
src/views/parkPay/plateNumber.vue
| ... | ... | @@ -124,7 +124,7 @@ |
| 124 | 124 | <div class="first-word" |
| 125 | 125 | @click="selectFirstWord($event)"> |
| 126 | 126 | <div class="word"> |
| 127 | - <span>翼</span> | |
| 127 | + <span>冀</span> | |
| 128 | 128 | </div> |
| 129 | 129 | <div class="word"> |
| 130 | 130 | <span>川</span> |
| ... | ... | @@ -290,14 +290,7 @@ |
| 290 | 290 | </div> |
| 291 | 291 | |
| 292 | 292 | |
| 293 | - <modal-alert ref="alert"> | |
| 294 | - <div class="trave-tip-content txt-l" slot="content"> | |
| 295 | - <div class="confirm-text"> | |
| 296 | - <p>请输入正确的车牌号</p> | |
| 297 | - </div> | |
| 298 | - </div> | |
| 299 | - <span slot="button">知道了</span> | |
| 300 | - </modal-alert> | |
| 293 | + | |
| 301 | 294 | </div> |
| 302 | 295 | </template> |
| 303 | 296 | <script> |
| ... | ... | @@ -379,7 +372,7 @@ export default { |
| 379 | 372 | // } |
| 380 | 373 | // } |
| 381 | 374 | |
| 382 | - this.boundList = localStorage.getItem('parkRecordList') ? localStorage.getItem('parkRecordList') : [] | |
| 375 | + this.boundList = JSON.parse(localStorage.getItem('parkRecordList')) ? JSON.parse(localStorage.getItem('parkRecordList')) : [] | |
| 383 | 376 | console.log(this.boundList) |
| 384 | 377 | }, |
| 385 | 378 | methods: { |
| ... | ... | @@ -515,6 +508,8 @@ export default { |
| 515 | 508 | } |
| 516 | 509 | this.boundList.unshift(plateLicense) |
| 517 | 510 | } |
| 511 | + localStorage.setItem('parkRecordList',JSON.stringify(this.boundList)) | |
| 512 | + console.log(this.boundList) | |
| 518 | 513 | |
| 519 | 514 | this.$router.push({ |
| 520 | 515 | path:'parkRecord', | ... | ... |