<template>
  <div class="taskDetail">
    <div class="info-content">
      <div class="info border-none">
        <h2>播发任务</h2>
        <h3>已下发</h3>
      </div>
      <div class="info">
        <span>播发级别</span>
        <span class="color-333">121312312312</span>
      </div>
      <div class="info">
        <span>播放方式</span>
        <span style="color: #4E8EEE">在线</span>
      </div>
      <div>
        <div class="info">
          <span>播放天数</span>
          <span class="color-333">每周一、每周二、每周三</span>
        </div>
        <div class="info">
        <span>开始日期</span>
        <span class="color-333">2022-06-10</span>
        </div>
        <div class="info">
          <span>开始时间</span>
          <span class="color-333">18:00:00</span>
        </div>
        <div class="info">
          <span>结束时间</span>
          <span class="color-333">19:00:00</span>
        </div>
      </div>
      <div class="info">
        <span>创建人</span>
        <span class="color-333">一般</span>
      </div>
      <div class="info">
        <span>创建时间</span>
        <span class="color-333"></span>
      </div>
    </div>
    <div class="media-content">
      <h2>播发素材</h2>
      <div class="media-item">
        <img :src="`${$cdn}video/play-icon.png`" alt="" @click="choose()">
        <div class="info">
          <p>五一活动唱红歌.mp3</p>
          <div>李毅 2022-06-09 09:43:05</div>
        </div>
      </div>
    </div>
    <div class="btn">撤销任务</div>
    <u-popup v-model="isShow" mode="bottom">
      <div class="audio">
        <AiVideo :src="url" autoplay></AiVideo>
        <!-- <audio :src="url" ref="audio" :controls="true" :name="autioName" style="display: block;"></audio> -->
      </div>
    </u-popup>
  </div>
</template>
<script>

export default {
  name: "taskDetail",
  data() {
    return {
      isShow: false
    }
  },
  onLoad(query) {
    
  },

  onShow() {
    document.title = '任务详情'
  },

  methods: {
    choose(item) {
      console.log(item.url)
      this.url = item.url
      this.isShow = tru
    },
  },
}
</script>
<style lang="scss" scoped>
.taskDetail {
  .info-content{
    padding-left: 32px;
    background-color: #fff;
    p{
      padding: 32px 32px 32px 0;
      font-size: 38px;
      font-family: PingFangSC-Semibold, PingFang SC;
      font-weight: 600;
      color: #333;
      line-height: 56px;
      word-break: break-all;
    }
    .info{
      display: flex;
      justify-content: space-between;
      font-size: 32px;
      font-family: PingFangSC-Regular, PingFang SC;
      color: #999;
      line-height: 44px;
      padding: 34px 32px 32px 0;
      border-bottom: 1px solid #ddd;
      .color-333{
        color: #333;
      }
      h2{
        font-size: 38px;
        font-family: PingFangSC-Semibold, PingFang SC;
        font-weight: 600;
        color: #333;
        line-height: 52px;
      }
      h3{
        font-size: 34px;
        font-family: PingFang-SC-Medium, PingFang-SC;
        font-weight: 500;
        color: #4E8EEE;
        line-height: 52px;
      }
    }
    .border-none{
      border-bottom: 0;
    }
  }
  .audio {
    width: 100%;
    height: 400px;
    box-sizing: border-box;
    padding: 104px 0 46px;
  }
  .media-content{
    margin-top: 16px;
    background-color: #fff;
    h2{
      padding: 32px;
      font-size: 38px;
      font-family: PingFangSC-Semibold, PingFang SC;
      font-weight: 600;
      color: #333;
      line-height: 52px;
    }
    .media-item {
      width: 100%;
      display: flex;
      border-bottom: 1px solid #ddd;
      padding: 32px 30px;
      box-sizing: border-box;

      img {
        width: 56px;
        height: 56px;
        margin-right: 14px;
      }

      .info {
        width: calc(100% - 70px);
        line-height: 44px;
        font-size: 34px;
        font-family: PingFang-SC-Medium, PingFang-SC;
        font-weight: 500;
        color: #333;

        p {
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
          word-break: break-all;
        }
        div{
          font-size: 26px;
          font-family: PingFang-SC-Medium, PingFang-SC;
          font-weight: 500;
          color: #999;
          line-height: 36px;
          margin-top: 8px;
        }
      }
    }
  }
  
  
  .btn {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 112px;
    line-height: 112px;
    text-align: center;
    background: #fff;
    font-size: 32px;
    font-family: PingFangSC-Medium, PingFang SC;
    font-weight: 500;
    color: #F46;
    border-top: 1px solid #ddd;
  }
}
</style>
