index.vue 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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="短剧推荐" />
  32. <episode-box title="最新热剧" />
  33. <episode-box title="排行榜" />
  34. <!--tab bar-->
  35. <tab-bar />
  36. </view>
  37. </template>
  38. <script>
  39. import SwiperBox from '../../components/SwiperBox/index'
  40. import EpisodeBox from './components/EpisodeBox'
  41. import TabBar from '../../components/TabBar/index'
  42. import NavBar from '../../components/NavBar/index'
  43. export default {
  44. components: { NavBar, TabBar, EpisodeBox, SwiperBox },
  45. data() {
  46. return {
  47. keywords: ''
  48. }
  49. },
  50. computed: {
  51. },
  52. onLoad(options) {
  53. },
  54. methods: {
  55. }
  56. }
  57. </script>
  58. <style lang="scss" scoped>
  59. .container{
  60. padding: 0 20rpx;
  61. .search-box{
  62. margin-top: 30rpx;
  63. }
  64. .category-box{
  65. .category-item{
  66. flex: 1;
  67. font-size: 32rpx;
  68. .icon{
  69. image{
  70. width: 100rpx;
  71. height: 100rpx;
  72. }
  73. }
  74. text{
  75. color: #fff;
  76. }
  77. }
  78. }
  79. }
  80. </style>