customer-list.vue 429 B

12345678910111213141516171819202122232425262728
  1. <template>
  2. <management v-if="customerId=='1'"></management>
  3. <info v-else></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. onShow() {
  18. this.customerId=uni.getStorageSync('info').customerId;
  19. },
  20. methods:{
  21. }
  22. }
  23. </script>
  24. <style>
  25. </style>