index.vue 945 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <template>
  2. <view class="index-box">
  3. <index-nav @setTabNum="setTabNum"></index-nav>
  4. <view class="list-box">
  5. <view class="box-one" v-if="tabNum===0">
  6. <!-- <slide-item></slide-item>-->
  7. <attachment-list></attachment-list>
  8. </view>
  9. <view class="box-two" v-else-if="tabNum===1">
  10. <attachment-list></attachment-list>
  11. </view>
  12. <view class="box-three" v-else>
  13. <attachment-list></attachment-list>
  14. </view>
  15. </view>
  16. </view>
  17. </template>
  18. <script>
  19. import IndexNav from "@/pages/index/model/index-nav";
  20. import AttachmentList from "@/pages/index/model/attachment-list";
  21. import SlideItem from "@/pages/index/model/slide-item";
  22. export default {
  23. components: {SlideItem, AttachmentList, IndexNav},
  24. data() {
  25. return {
  26. tabNum:0
  27. }
  28. },
  29. methods: {
  30. setTabNum(tabNum){
  31. this.tabNum=tabNum
  32. }
  33. }
  34. }
  35. </script>
  36. <style scoped lang="scss">
  37. .index-box{
  38. }
  39. </style>