blist.vue 1.6 KB

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