| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { BaseUrl } from '@/api/publicInterface.js' |
| | | import { mapState, mapMutations, mapGetters } from 'vuex'; |
| | | export default { |
| | | props: { |
| | |
| | | uni.hideLoading() |
| | | if (res.code === 0) { |
| | | this.firstClassActionsList = res.data; |
| | | this.firstClassActionsList.unshift({name:'全部',id:res.data.map(item=>item.id).join(',')}) |
| | | if(res.data.length){ |
| | | if(!uni.getStorageSync('bunkerIds')){ |
| | | this.dataForm.firstClass = '全部' |
| | | this.dataForm.bunkerIds = res.data.map(item=>item.id).join(',') |
| | | uni.setStorageSync('bunkerIds',res.data.map(item=>item.id).join(',')) |
| | | this.firstClassActionsList.unshift({name:'全部',id:res.data.map(item=>item.id).join(',')}) |
| | | this.dataForm.firstClass = '全部' |
| | | }else{ |
| | | this.dataForm.bunkerIds = uni.getStorageSync('bunkerIds'); |
| | | uni.setStorageSync('bunkerIds',this.dataForm.bunkerIds) |
| | | } |
| | | |
| | | |
| | | this.getDetailData(); |
| | | |
| | | } |
| | |
| | | this.$u.toast('加载失败') |
| | | } |
| | | }).then(() => { |
| | | this.getUserInfo() |
| | | |
| | | }) |
| | | }, |
| | | firstClassSelect() { |