index.vue 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <template>
  2. <view class="home page-bg-color u-rela u-p-24">
  3. <view class="u-m-b-30 menu-color">
  4. <di-scroll-menu-list :menu-list="menuList"></di-scroll-menu-list>
  5. </view>
  6. <view class="u-m-b-40 page-card">
  7. <navigation></navigation>
  8. </view>
  9. </view>
  10. </template>
  11. <script>
  12. import navigation from './navigation/index.vue'
  13. export default {
  14. components: {
  15. navigation
  16. },
  17. data() {
  18. return {
  19. swiperBgColor: '',
  20. menuList: [
  21. {
  22. icon: require('@/static/images/list.png'),
  23. title: '列表示例',
  24. path: '/pages/component-page/crud/list'
  25. },
  26. {
  27. icon: require('@/static/images/form.png'),
  28. title: '表单示例',
  29. path:'/pages/component-page/crud/form'
  30. },
  31. {
  32. icon: require('@/static/images/detail.png'),
  33. title: '详情示例',
  34. path: '/pages/component-page/crud/detail'
  35. },
  36. {
  37. icon: require('@/static/logo.png'),
  38. title: '测试',
  39. path: '/pages/testPage/list'
  40. }
  41. ]
  42. }
  43. },
  44. onLoad() {
  45. this.$member.getMemberInfo()
  46. },
  47. methods: {
  48. /*
  49. 设置轮播图的背景颜色
  50. */
  51. setSwiperBgColor(color) {
  52. this.swiperBgColor = color
  53. }
  54. }
  55. }
  56. </script>
  57. <style scoped lang="scss">
  58. page {
  59. height: 100%;
  60. }
  61. .home {
  62. height: 100%;
  63. &-bg-color {
  64. top: 0;
  65. left: 0;
  66. width: 100%;
  67. height: 560rpx;
  68. }
  69. .menu-color {
  70. background-color: #fff;
  71. border-radius: 10rpx;
  72. padding: 30rpx 0;
  73. }
  74. }
  75. </style>