| | |
| | | if (this.isLoaded) { |
| | | uni.removeStorageSync('isLoaded'); |
| | | this.pageNo = 1; |
| | | this.allReceivingOrders = []; |
| | | // ä»å
¶ä»é¡µé¢è¿åæ¶å·æ° |
| | | this.getData(); |
| | | } |
| | |
| | | pageNo: this.pageNo |
| | | }, |
| | | } |
| | | if (this.pageNo == 1) this.allReceivingOrders = []; |
| | | // if (this.pageNo == 1) this.allReceivingOrders = []; |
| | | this.$u.post('/api/CabinOrder/GetCabinOrders', postData).then((res) => { |
| | | if (res.status) { |
| | | if (res.data.length > 0) { |
| | |
| | | if (this.allReceivingOrders.length < 1) { |
| | | uni.showModal({ |
| | | title: 'æç¤º', |
| | | content: 'å
¥åºå·²å®æï¼æ¯å¦è¿åé¦é¡µï¼', |
| | | content: 'å
¥åºå·²å®æï¼æ¯å¦è¿åå
¥åºåï¼', |
| | | success: (res) => { |
| | | if (res.confirm) { |
| | | uni.setStorageSync('isLoaded', true); |
| | | // ç¨æ·ç¹å»ç¡®å® |
| | | setTimeout(() => { |
| | | uni.navigateBack({ |
| | | delta: 2 |
| | | delta: 1 |
| | | }); |
| | | }, 500); |
| | | } else { |