exclusive-image.vue 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <template>
  2. <div class="app-container">
  3. <!-- 顶部操作区域 -->
  4. <el-tabs v-model="activeName" type="border-card" @tab-click="handleClick">
  5. <el-tab-pane label="专属广告" name="first" />
  6. <el-tab-pane label="小广告位" name="second" />
  7. <!-- 列表 -->
  8. <template v-if="activeName === 'first'">
  9. <exclusive-img />
  10. </template>
  11. <template v-if="activeName === 'second'">
  12. <exclusive-small-img />
  13. </template>
  14. </el-tabs>
  15. </div>
  16. </template>
  17. <script>
  18. import ExclusiveImg from './components/exclusive-img'
  19. import ExclusiveSmallImg from './components/exclusive-small-img'
  20. export default {
  21. name: 'ExclusiveImage',
  22. components: {
  23. ExclusiveImg,
  24. ExclusiveSmallImg
  25. },
  26. filters: {},
  27. data() {
  28. return {
  29. activeName: 'first',
  30. isLoading: true,
  31. list: [],
  32. total: 0
  33. }
  34. },
  35. computed: {},
  36. created() {
  37. if (this.$route.query.activeName === 'second') {
  38. this.activeName = 'second'
  39. } else {
  40. this.activeName = 'first'
  41. }
  42. },
  43. mounted() {},
  44. methods: {
  45. // tab切换
  46. handleClick(tab, event) {}
  47. }
  48. }
  49. </script>
  50. <style></style>