customer-list.vue 593 B

123456789101112131415161718192021222324252627282930313233
  1. <template>
  2. <management v-if="customerId=='1'" ref="manage"></management>
  3. <info v-else ref="sel"></info>
  4. </template>
  5. <script>
  6. import info from './customer-info.vue'
  7. import management from './customer-management.vue'
  8. export default {
  9. components: {
  10. info, management
  11. },
  12. data() {
  13. return {
  14. customerId: ''
  15. }
  16. },
  17. onReachBottom() {
  18. let customerId = this.customerId;
  19. if (customerId == '1') {
  20. this.$refs.manage.loadMore();
  21. }
  22. },
  23. onShow() {
  24. this.customerId = uni.getStorageSync('info').customerId;
  25. },
  26. methods: {}
  27. }
  28. </script>
  29. <style>
  30. </style>