broadcast.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <template>
  2. <view class="content">
  3. <!-- 内容为空 -->
  4. <u-empty mode="history" text="尽情期待" icon="http://cdn.uviewui.com/uview/empty/history.png"></u-empty>
  5. <!-- 内容为空 -->
  6. <!-- <view class="conwarp">
  7. <view class="gdHead dfsb"><view class="head">直播列表</view></view>
  8. <view class="floor">
  9. <view class="fl-five"><video-list :flag="1" :list="zbList"></video-list></view>
  10. </view>
  11. </view>
  12. <view class="conwarp">
  13. <view class="gdHead dfsb"><view class="head">回放列表</view></view>
  14. <view class="floor">
  15. <view class="fl-five"><video-list :flag="2" :list="zbList"></video-list></view>
  16. </view>
  17. </view> -->
  18. </view>
  19. </template>
  20. <script>
  21. import videoList from './components/list.vue';
  22. export default {
  23. components: {
  24. videoList
  25. },
  26. data() {
  27. return {
  28. zbList: {}
  29. };
  30. },
  31. onPullDownRefresh() {
  32. this.getInfoList();
  33. setTimeout(res => {
  34. uni.stopPullDownRefresh();
  35. }, 1000);
  36. },
  37. async onLoad() {
  38. await this.getInfoList();
  39. },
  40. methods: {
  41. getInfoList() {
  42. this.$api.request('live/live_list').then(data => {
  43. if (data.code == 200) {
  44. this.zbList = data.data.room_info;
  45. } else {
  46. this.$api.toast(data.msg);
  47. }
  48. });
  49. }
  50. }
  51. };
  52. </script>
  53. <style lang="scss" scoped>
  54. .content {
  55. background-color: #fff;
  56. .top-input {
  57. padding: 20rpx 30rpx;
  58. .sel {
  59. color: #f89638;
  60. padding: 12rpx 20rpx;
  61. font-size: $font-sm;
  62. background-color: rgba(#f89638, 0.1);
  63. border-radius: 30rpx;
  64. margin-right: 36rpx;
  65. }
  66. }
  67. .swiper {
  68. margin: 0 30rpx;
  69. }
  70. .conwarp {
  71. background-color: #fff;
  72. padding: 32rpx 30rpx 30rpx;
  73. border-radius: 16rpx;
  74. margin-bottom: 20rpx;
  75. .gdHead {
  76. line-height: 58rpx;
  77. margin-bottom: 16rpx;
  78. .head {
  79. font-size: 34rpx;
  80. font-family: PingFangSC-Medium, PingFang SC;
  81. font-weight: 600;
  82. color: #333333;
  83. line-height: 48rpx;
  84. }
  85. }
  86. .floor {
  87. border-radius: 15rpx;
  88. .box {
  89. border: 1px solid #ececec;
  90. padding: 23rpx 25rpx;
  91. }
  92. }
  93. }
  94. }
  95. </style>