index.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <template>
  2. <view class="work-container">
  3. </view>
  4. </template>
  5. <script>
  6. export default {
  7. data() {
  8. return {
  9. current: 0,
  10. swiperDotIndex: 0,
  11. data: [{
  12. image: '/static/images/banner/banner01.jpg'
  13. },
  14. {
  15. image: '/static/images/banner/banner02.jpg'
  16. },
  17. {
  18. image: '/static/images/banner/banner03.jpg'
  19. }
  20. ]
  21. }
  22. },
  23. methods: {
  24. clickBannerItem(item) {
  25. console.info(item)
  26. },
  27. changeSwiper(e) {
  28. this.current = e.detail.current
  29. },
  30. changeGrid(e) {
  31. this.$modal.showToast('模块建设中~')
  32. }
  33. }
  34. }
  35. </script>
  36. <style lang="scss">
  37. /* #ifndef APP-NVUE */
  38. page {
  39. display: flex;
  40. flex-direction: column;
  41. box-sizing: border-box;
  42. background-color: #fff;
  43. min-height: 100%;
  44. height: auto;
  45. }
  46. view {
  47. font-size: 14px;
  48. line-height: inherit;
  49. }
  50. /* #endif */
  51. .text {
  52. text-align: center;
  53. font-size: 26rpx;
  54. margin-top: 10rpx;
  55. }
  56. .grid-item-box {
  57. flex: 1;
  58. /* #ifndef APP-NVUE */
  59. display: flex;
  60. /* #endif */
  61. flex-direction: column;
  62. align-items: center;
  63. justify-content: center;
  64. padding: 15px 0;
  65. }
  66. .uni-margin-wrap {
  67. width: 690rpx;
  68. width: 100%;
  69. ;
  70. }
  71. .swiper {
  72. height: 300rpx;
  73. }
  74. .swiper-box {
  75. height: 150px;
  76. }
  77. .swiper-item {
  78. /* #ifndef APP-NVUE */
  79. display: flex;
  80. /* #endif */
  81. flex-direction: column;
  82. justify-content: center;
  83. align-items: center;
  84. color: #fff;
  85. height: 300rpx;
  86. line-height: 300rpx;
  87. }
  88. @media screen and (min-width: 500px) {
  89. .uni-swiper-dot-box {
  90. width: 400px;
  91. /* #ifndef APP-NVUE */
  92. margin: 0 auto;
  93. /* #endif */
  94. margin-top: 8px;
  95. }
  96. .image {
  97. width: 100%;
  98. }
  99. }
  100. </style>