| | |
| | | }, |
| | | async onPullDownRefresh() { |
| | | await this.$store.dispatch('getCurrentInfo') |
| | | await getTj(true) |
| | | uni.stopPullDownRefresh() |
| | | }, |
| | | onLoad(options) { |
| | |
| | | const urlcode = options.url && decodeURIComponent(options.url) || '' |
| | | }, |
| | | onShow() { |
| | | this.getTj() |
| | | this.getTj(true) |
| | | }, |
| | | created() { |
| | | //公告 |
| | |
| | | }, |
| | | }) |
| | | }, |
| | | getTj() { |
| | | getTj(refresh=false) { |
| | | // /api/supplier/delivery |
| | | |
| | | if (this.currentInfo.id && this.currentInfo.id !== this.cacheUserId) { |
| | | if (this.currentInfo.id && (this.currentInfo.id !== this.cacheUserId || refresh)) { |
| | | this.cacheUserId = this.currentInfo.id |
| | | let that = this |
| | | setTimeout(() => { |