企微助手 ,仓库名 短剧

index.vue 788B

123456789101112131415161718192021222324252627282930313233343536
  1. <template>
  2. <div>
  3. <div class="topTagBox flex">
  4. <div class="left flex-align-center">
  5. <div :class="['tagItem',tagType==1?'tagItem_active':'']" @click="changeType(1);">添加客户</div>
  6. <div :class="['tagItem',tagType==2?'tagItem_active':'']" @click="changeType(2);">数据总览</div>
  7. </div>
  8. </div>
  9. <addFriend v-if="tagType==1"></addFriend>
  10. <dataPreview v-if="tagType==2"></dataPreview>
  11. </div>
  12. </template>
  13. <script>
  14. import addFriend from './addFriend/index.vue'
  15. import dataPreview from './dataPreview/index.vue'
  16. export default {
  17. name: "index",
  18. components:{addFriend,dataPreview},
  19. data(){
  20. return {
  21. tagType:1
  22. }
  23. },
  24. methods:{
  25. changeType(type){
  26. this.tagType = type
  27. }
  28. }
  29. }
  30. </script>
  31. <style scoped>
  32. </style>