Commit 12fc10d2df13f1b6184854b1c193fc753a30703a

Authored by liuqimichale
1 parent 7850cc26

赤峰 输入车牌停车记录

No preview for this file type
src/views/parkPay/plateNumber.vue
@@ -124,7 +124,7 @@ @@ -124,7 +124,7 @@
124 <div class="first-word" 124 <div class="first-word"
125 @click="selectFirstWord($event)"> 125 @click="selectFirstWord($event)">
126 <div class="word"> 126 <div class="word">
127 - <span></span> 127 + <span></span>
128 </div> 128 </div>
129 <div class="word"> 129 <div class="word">
130 <span>川</span> 130 <span>川</span>
@@ -290,14 +290,7 @@ @@ -290,14 +290,7 @@
290 </div> 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 </div> 294 </div>
302 </template> 295 </template>
303 <script> 296 <script>
@@ -379,7 +372,7 @@ export default { @@ -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 console.log(this.boundList) 376 console.log(this.boundList)
384 }, 377 },
385 methods: { 378 methods: {
@@ -515,6 +508,8 @@ export default { @@ -515,6 +508,8 @@ export default {
515 } 508 }
516 this.boundList.unshift(plateLicense) 509 this.boundList.unshift(plateLicense)
517 } 510 }
  511 + localStorage.setItem('parkRecordList',JSON.stringify(this.boundList))
  512 + console.log(this.boundList)
518 513
519 this.$router.push({ 514 this.$router.push({
520 path:'parkRecord', 515 path:'parkRecord',