Blame view

ceres-uniapp-master/components/canvasShow/basics/live/app/index.vue 1.73 KB
3f535f30   杨鑫   '初始'
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
  <template>
    <div class="live-list-page" v-if="roomList && roomList.length > 0">
      <div class="title">
        <!-- #ifdef MP-WEIXIN -->
        <img class="title-img" src="../../../static/images/live/img-title.png" alt="直播"  mode="widthFix"/>
        <!-- #endif -->
        <!-- #ifdef H5 || APP-PLUS -->
        <image class="title-img" src="../../../static/images/live/img-title.png" alt="直播"  mode="widthFix"/>
        <!-- #endif -->
      </div>
      <div class="live-list">
        <LiveBox class="live-item"
          v-for="item in roomList"
          :key="item.roomid"
          :liveData.sync="item"
          @click="toLiveRoom(item)"
        />
      </div>
      <button v-show="componentContent.showMore" class="btn-more" @click="jumpLive()">查看全部 <span class="icon iconfont icon-arrow-right"></span></button>
    </div>
  </template>
  
  <script>
  // const NET = require('../../../../../utils/request')
  // const API = require('../../../../../config/api')
  import {commonMixin} from '../mixin'
  import LiveBox from './item.vue'
  export default {
    mixins: [commonMixin],
    components: {
      LiveBox
    },
  }
  </script>
  
  <style lang="scss" scoped>
  .live-list-page{
    .title{
      text-align: center;
      margin-bottom: 20rpx;
      .title-img{
        width: 211rpx;
        height: 32rpx;
      }
    }
    .live-list{
      padding-left: 20rpx;
      width: 100%;
      display: flex;
      flex-wrap: wrap;
      .live-item{
        margin:0 14rpx 14rpx 0;
        width: 348rpx;
        height: 464rpx;
        border-radius: 8rpx;
        overflow: hidden;
      }
    }
    .btn-more {
      width: 170rpx;
      height: 54rpx;
      border: 2rpx solid #C5AA7B;
      color: #C5AA7B;
      font-size: 24rpx;
      background-color: transparent;
      margin: 20rpx auto 0;
      display: flex;
      align-items: center;
    }
  }
  </style>