settings.vue 1012 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <template>
  2. <view>
  3. <scroll-view :scroll="false" :scroll-x="true" :show-scrollbar="false">
  4. <view>
  5. <u-tabs :list="tabList" @click="click" :current="3">
  6. </u-tabs>
  7. </view>
  8. </scroll-view>
  9. <view>
  10. </view>
  11. <swiper-page v-if="page === 0"></swiper-page>
  12. <swiperNews v-if="page === 1"></swiperNews>
  13. <view v-if="page === 2" style="padding: 0 50px;">
  14. <image style="margin: 0 auto; width: 100%;" src="../../../static/img/page/empty_view.png">
  15. </image>
  16. </view>
  17. </view>
  18. </template>
  19. <script>
  20. import swiperPage from './swiper-page.vue';
  21. import swiperNews from './swiper-news-subscription.vue';
  22. export default {
  23. components: {
  24. swiperPage,
  25. swiperNews
  26. },
  27. data() {
  28. return {
  29. tabList: [{
  30. name: '修改个人信息',
  31. }, {
  32. name: '订阅设置',
  33. }, {
  34. name: '其他',
  35. }],
  36. page: 0
  37. }
  38. },
  39. onLoad() {},
  40. onReady() {},
  41. methods: {
  42. click(item) {
  43. console.log('item', item);
  44. this.page = item.index
  45. }
  46. }
  47. }
  48. </script>
  49. <style>
  50. </style>