index.vue 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <template>
  2. <view class="container">
  3. <!--search-->
  4. <view class="search-box main-center cross-center">
  5. <u-input
  6. v-model="keywords"
  7. placeholder="请输入剧名 /演员"
  8. color="#fff"
  9. border="none"
  10. prefix-icon="search"
  11. :prefix-icon-style="{
  12. color: $colors.primaryColor,
  13. fontSize: '50rpx',
  14. fontWeight: 500,
  15. lineHeight: '50rpx'
  16. }"
  17. :custom-style="{
  18. backgroundColor: '#1B203C',
  19. padding: '14rpx 30rpx',
  20. width: '700rpx',
  21. borderRadius: '36rpx',
  22. color: '#fff'
  23. }"
  24. />
  25. </view>
  26. <!--swpier-->
  27. <swiper-box />
  28. <!--栏目分类-->
  29. <nav-bar />
  30. <!--分类-->
  31. <episode-box title="短剧推荐" type="recommend" />
  32. <episode-box title="最新热剧" type="news" />
  33. <episode-box title="排行榜" type="rank" />
  34. <!--tab bar-->
  35. <tab-bar />
  36. <!--最近播放-->
  37. <recent />
  38. </view>
  39. </template>
  40. <script>
  41. import SwiperBox from '../../components/SwiperBox/index'
  42. import EpisodeBox from './components/EpisodeBox'
  43. import TabBar from '../../components/TabBar/index'
  44. import NavBar from '../../components/NavBar/index'
  45. import Recent from './components/Recent'
  46. export default {
  47. components: { Recent, NavBar, TabBar, EpisodeBox, SwiperBox },
  48. data() {
  49. return {
  50. keywords: ''
  51. }
  52. },
  53. computed: {
  54. },
  55. onLoad(options) {
  56. },
  57. methods: {
  58. }
  59. }
  60. </script>
  61. <style lang="scss" scoped>
  62. .container{
  63. padding: 0 20rpx 160px;
  64. .search-box{
  65. margin-top: 30rpx;
  66. }
  67. .category-box{
  68. .category-item{
  69. flex: 1;
  70. font-size: 32rpx;
  71. .icon{
  72. image{
  73. width: 100rpx;
  74. height: 100rpx;
  75. }
  76. }
  77. text{
  78. color: #fff;
  79. }
  80. }
  81. }
  82. }
  83. </style>