customer-list.vue 575 B

12345678910111213141516171819202122232425262728293031323334
  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. }
  29. </script>
  30. <style>
  31. </style>