소스 검색

Merge pull request #181 from John-Hong/John/release-2.12.0/KIP-10843

fix(KIP-10843): 【DE】【C端】【临时停车】。未开票页面,未开票的记录显示异常
Tron 2 년 전
부모
커밋
e7dfa6da73
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/pages/parkingFee/mixins/parkingReceipt/parkingReceipt.js

+ 2 - 1
src/pages/parkingFee/mixins/parkingReceipt/parkingReceipt.js

@@ -22,7 +22,7 @@ export default {
       baseUrl: this.$baseURL,
       baseUrl: this.$baseURL,
       arrowIcon: arrowIcon,
       arrowIcon: arrowIcon,
       noData: noData,
       noData: noData,
-      tabIndex: 1,
+      tabIndex: 0,
       invoiceList: ['未开票', '已开票'],
       invoiceList: ['未开票', '已开票'],
       list: [],
       list: [],
       isCheckTickets: [],
       isCheckTickets: [],
@@ -145,6 +145,7 @@ export default {
       console.log('eeeeeeee:::', e, index)
       console.log('eeeeeeee:::', e, index)
     },
     },
     invoice(e) {
     invoice(e) {
+      if(this.tabIndex === e) return;
       uni.setStorageSync('invoiceindex', e);
       uni.setStorageSync('invoiceindex', e);
       this.tabIndex = e;
       this.tabIndex = e;
       this.current = -1;
       this.current = -1;