<template>
  <div>
    <el-dialog
      title="推广视频"
      :close-on-click-modal="false"
      :visible.sync="visible"
      :append-to-body="true"
      :modal-append-to-body="false"
      width="80%"
      v-if="visible"
      @close="closeDialog">
      <div class="mod-home">
        <div class="operation-bar">
          <!--        <div class="default-btn primary-btn" @click="addOrUpdateHandle()"-->
          <!--             v-if="isAuth('print:promotionVideo:save')">{{$t("crud.addTitle")}}</div>-->
          <div class="default-btn primary-btn" @click="addUpItem">{{$t("crud.addTitle")}}</div>
        </div>
        <div class="refund-plate">
          <el-table
            highlight-current-row
            :data="dataList"
            height="400"
            show-overflow-tooltip
            style="width: 100%">
            <el-table-column
              prop="id"
              width="80"
              label="视频ID">
            </el-table-column>
            <el-table-column
              prop="upName"
              align="center"
              label="博主">
              <template slot-scope="scope">
                <span>{{scope.row.upId}}</span>
                <br/>
                <span>{{scope.row.upName}}</span>
              </template>
            </el-table-column>
            <el-table-column
              prop="publishPlatform"
              align="center"
              label="视频平台">
              <template slot-scope="scope">
                <span>{{scope.row.publishPlatform}}</span>
              </template>
            </el-table-column>
            <el-table-column
              prop="fansNum"
              align="center"
              label="粉丝数">
              <template slot-scope="scope">
                <span>{{scope.row.fansNum}}</span>
              </template>
            </el-table-column>
            <el-table-column
              prop="videoUrl"
              cell-style="{}"
              label="视频链接">
              <template slot-scope="scope">
                <span @click="jumpToLink(scope.row.videoUrl)" style="cursor: pointer;color: #2d8cf0">{{scope.row.videoUrl}}</span>
              </template>
            </el-table-column>
            <el-table-column
              prop="likeNum"
              align="center"
              label="点赞数">
              <template slot-scope="scope">
                <span>{{scope.row.likeNum}}</span>
              </template>
            </el-table-column>
            <el-table-column
              prop="commNum"
              align="center"
              label="评论数">
              <template slot-scope="scope">
                <span>{{scope.row.commNum}}</span>
              </template>
            </el-table-column>
            <el-table-column align="center" fixed="right" :label="$t('publics.operating')" width="auto">
              <template slot-scope="scope">
                <div class="text-btn-con">
                  <div class="default-btn text-btn" @click="addOrUpdateHandle(scope.row.id)"
                  >{{$t("crud.updateBtn")}}</div>
                  <div class="default-btn text-btn" @click.stop="deleteHandle(scope.row.id)"
                  >{{$t("text.delBtn")}}</div>
                </div>
              </template>
            </el-table-column>
          </el-table>
        </div>
        <div>
          <el-form :model="dataForm" :rules="dataRule" ref="dataForm" label-width="110px">
            <el-row v-for="(upItem, index) in videoList" v-if="videoList.length > 0">
              <el-col :span="5">
                <el-form-item label="博主ID" :prop="upItem.upId" :rules="{required: true, message: '博主ID必填', trigger: 'blur'}">
                  <el-input v-model="upItem.upId"size="small"></el-input>
                </el-form-item>
              </el-col>
              <el-col :span="5">
                <el-form-item label="博主昵称" :prop="upItem.upName" :rules="{required: true, message: '博主昵称必填', trigger: 'blur'}">
                  <el-input v-model="upItem.upName"size="small"></el-input>
                </el-form-item>
              </el-col>
              <el-col :span="5">
                <el-form-item label="视频平台" :prop="upItem.publishPlatform" :rules="{required: true, message: '视频平台必填', trigger: 'blur'}">
                  <el-select v-model="upItem.publishPlatform" filterable placeholder="请选择">
                    <el-option
                      v-for="(item,index) in videoPlatformList"
                      :key="index"
                      :label="item.label"
                      :value="item.value">
                    </el-option>
                  </el-select>
                </el-form-item>
              </el-col>
              <el-col :span="5">
                <el-form-item label="粉丝数" :prop="upItem.fansNum">
                  <el-input v-model="upItem.fansNum" size="small" type="number"></el-input>
                </el-form-item>
              </el-col>
              <el-col :span="4">
                <el-button circle @click.prevent="saveVideo(upItem)" type="success" icon="el-icon-check"></el-button>
                <el-button circle @click.prevent="removeUpItem(upItem)" type="danger" icon="el-icon-delete"></el-button>
              </el-col>
            </el-row>
          </el-form>
        </div>
      </div>
    </el-dialog>
    <PromotionVideoAddOrUpdate ref="promotionVideoRef" @refreshDataList="getVideoList(dataForm.id)"></PromotionVideoAddOrUpdate>
  </div>

</template>

<script>
  import PromotionVideoAddOrUpdate from './promotionVideo-add-or-update'
export default {
  data() {
    return {
      dataList:[],
      hotShop: {
        shopName: null
      },
      dataForm:{
        id: null,
      },
      videoList:[],
      visible: false,
      videoPlatformList: [
        {value: '抖音', label: '抖音'},
        {value: '小红书', label: '小红书'},
        {value: '视频号', label: '视频号'},
        {value: '快手', label: '快手'},
        {value: 'B站', label: 'B站'},
      ],
      dataRule: {
      },
    }
  },
  components: {
    PromotionVideoAddOrUpdate
  },
  created() {

  },
  methods: {
    init(promotionOrderId) {
      this.dataForm.id = promotionOrderId;
      this.getVideoList(this.dataForm.id)
    },
    getVideoList(promotionOrderId){
      this.$http({
        url: this.$http.adornUrl(`/promotion/promotionVideo/getVideoByPromotionOrderId/` + promotionOrderId),
        method: 'GET',
      }).then(({data}) => {
        this.visible = true
        this.dataList = data
      })
    },
    addOrUpdateHandle(videoId){
      this.addOrUpdateVisible = true
      this.$nextTick(() => {
        this.$refs.promotionVideoRef.init(videoId)
      })
    },
    jumpToLink(videoUrl){
      let regex = /https?:\/\/[^\s]+/g // 匹配URL的正则表达式
      let url =  videoUrl.match(regex) // 返回所有匹配到的链接
      window.open(url)
    },
    addUpItem(){
      this.videoList.push({upId:null, upName: null, publishPlatform:null, payAmt:null, fansNum:null})
    },
    saveVideo(upItem){
      upItem.promotionOrderId = this.dataForm.id
      this.$refs['dataForm'].validate((valid) => {
        if (valid) {
          this.$http({
            url: this.$http.adornUrl('/promotion/promotionVideo'),
            method: 'post',
            data: this.$http.adornData(upItem)
          }).then(({data}) => {
            this.$message({
              message: this.$i18n.t('publics.operation'),
              type: 'success',
            })
            this.videoList = [];
            this.getVideoList(this.dataForm.id)
          })
        }
      })
    },
    deleteHandle(videoId){
      this.$confirm('确定要删除吗？', '请选择', {
        confirmButtonText: this.$i18n.t('crud.filter.submitBtn'),
        cancelButtonText: this.$i18n.t('crud.filter.cancelBtn'),
        type: 'warning'
      }).then(() => {
        this.$http({
          url: this.$http.adornUrl('/promotion/promotionVideo/' + videoId),
          method: 'delete',
          data: this.$http.adornData({})
        }).then(({ data }) => {
          this.$message({
            message: this.$i18n.t('publics.operation'),
            type: 'success',
          })
          this.getVideoList(this.dataForm.id)
        })
      }).catch(() => { })
    },
    removeUpItem(upItem, index){
      this.videoList.splice(index, 1)
    },
    closeDialog() {
      this.visible = false
    },
  }
}
</script>

<style lang="scss">
// e-chart
#real-time-data-chart canvas {
  width: 100%;
  height: 100%;
  padding: 0 20px !important
}

.mod-home {
  .search-bar {
    .input-row {
      .select-time-btn {
        margin-right: 20px;
        display: inline-block;
        color: #AAAAAA;
        font-size: 14px;
        cursor: pointer;

        &:last-child {
          margin-right: 0;
        }
      }

      .select-time-btn.is-active {
        color: #155BD4;
      }

    }
  }

  // 店铺状态异常提示
  .shop-inf-imperfect-tips {
    width: 100%;
    line-height: 32px;
    font-size: 14px;
    color: #333;
    background: #FFF7DD;
    border: 1px solid #FFD888;
    border-radius: 2px;
    padding: 5px 10px;
    margin-bottom: 10px;

    .el-icon-warning {
      font-size: 16px;
      color: #FFA900;
      margin-left: 5px;
      margin-right: 5px;
    }
  }

  // font-size: 1em;
  // line-height: 2em;
  // .strong {
  //   margin: 0;
  //   font-size: 17px;
  //   font-weight: bold;
  //   text-align: center;
  //   margin-bottom: 0.5em;
  // }
  // .content {
  //   font-size: 16px;
  //   padding: 0 30px;
  // }
  // background-color: #F5F6F9;
  .grap {
    color: #999999;
  }

  // 白色背景 标题样式
  .white-basic {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;

    .title-basic {
      font-size: 18px;
      margin-bottom: 20px;
      font-weight: bold;
      line-height: 24px;
      color: #333333;
      opacity: 1;
    }
  }

  // 今日待办
  .abeyance-box {
    display: flex;
    justify-content: space-between;

    .order-num-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 7px;
      margin-bottom: 14px;
      background-color: #fff;
      box-sizing: border-box;
      border-radius: 4px;
      // cursor: pointer;
      .item-box {
        left: 30px;

        .words {
          font-size: 16px;
          font-weight: 400;
          color: #666;
        }

        .number {
          font-size: 24px;
          font-family: Microsoft YaHei;
          font-weight: bold;
          color: #333;
          margin-top: 10px;
        }

        .compare {
          font-size: 14px;
        }
      }

      .item-img {
        position: relative;
        margin-right: 25px;
        display: block;
        width: 60px;
        height: 60px;

        img {
          display: block;
          width: 100%;
          height: 100%;
          border-radius: 50%;
        }
      }
    }

    .order-num-item:first-child {
      margin-left: 30px;
    }

    .order-num-item:last-child {
      margin-right: 100px;
    }
  }

  // 订单栏项
  .order-all-num {
    // display: flex;
    // justify-content: space-between;
    .row-bg {
      display: flex;

      .col-box {
        display: flex;
        justify-content: space-between;
        height: 120px;

      }

      .num-item-box {
        position: relative;
        width: calc(20% - 20px);
        flex: 1;
        padding-right: 20px;
        box-sizing: border-box;
      }

      .num-item-box:last-child {
        padding-right: 0;
      }

      .col-box:first-child {
        // margin-right: 20px;
        .num-item-box {
          padding-right: 20px;
          box-sizing: border-box;
        }
      }

      .col-box:last-child {
        .num-item-box:not(:last-child) {
          padding-right: 20px;
          box-sizing: border-box;
        }
      }
    }

    // 基本信息样式
    .order-num-item {
      // width: calc((100% - 73px) * 0.2);
      display: flex;
      justify-content: space-between;
      align-items: center;
      background-color: #fff;
      box-sizing: border-box;
      border-radius: 4px;
      // &:hover {
      //   .item-img {
      //     img {
      //       position: absolute;
      //       top: -10px;
      //     }
      //   }
      // }
      .item-box {
        position: absolute;
        z-index: 1;
        left: 30px;

        .words {
          font-size: 14px;
          font-weight: bold;
          color: #fff;
        }

        .number {
          width: 160px;
          word-break: break-all;
          font-size: 26px;
          font-family: Microsoft YaHei;
          font-weight: bold;
          color: #fff;
          margin-top: 10px;

          .text {
            padding-right: 20px;
          }

          // .ratio{
          //   font-size: 12px;
          //   font-weight: 400;
          //   color: #FFFFFF;
          //   opacity: 0.7;
          // }
        }

        // .ratio{
        //   font-size: 12px;
        //   font-weight: 400;
        //   color: #FFFFFF;
        //   opacity: 0.7;
        // }
        .seq {
          display: flex
        }

        .up {
          color: #3DD598;
        }

        .up-icon {
          display: inline-block;
          width: 16px;
          height: 16px;
          margin: 0 12px 0 4px;
          background: url('~@/assets/img/home/ic-arrow-narrow-up.png')
        }

        .down {
          color: #F0142F;
        }

        .down-icon {
          display: inline-block;
          width: 16px;
          height: 16px;
          margin: 0 12px 0 4px;
          background: url('~@/assets/img/home/ic-arrow-narrow-down.png')
        }

        .compare {
          font-size: 14px;
        }
      }

      .item-img {
        position: relative;
        display: block;
        width: 100%;
        // transition: .35s;
        img {
          display: block;
          width: 100%;
          height: 100%;
        }
      }
    }
  }

  // 添加公告
  .introduce {
    margin-bottom: 10px;
  }

  .router-link-active {
    //点击时去掉下划线
    text-decoration: none;
  }

  a {
    text-decoration: none;
  }

  .title {
    font-size: 22px;
    color: #111111;
    font-weight: bold;
    padding: 20px;
  }

  .btn-more {
    float: right;
    margin: 10px;
    margin-top: 0px;
  }

  .introduce-container {
    padding: 10px;
    display: flex;
    background-color: #b4dff8;
    margin: 20px 0 10px 0;
  }

  .introduce-container .text {
    width: 50%;
    line-height: 30px;
    font-size: 22px;
  }

  // 栏目标题行
  .title-line {
    background: #f8f8f8;
    padding: 12px;
    font-size: 14px;
    line-height: 1em;
  }

  .blue-vertical {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: #155bd4;
    margin-right: 0.5em;
    vertical-align: middle;
  }

  .title-txt {
    color: #000;
    font-weight: bold;
    margin-right: 1em;
    vertical-align: middle;
  }

  .title-time {
    color: #999999;
    font-size: 12px;
    margin-left: 12px;
    vertical-align: middle;
  }

  .realtime {
    // display: flex;
    margin-top: 20px;
    padding: 0;
  }

  /**
    实时概况
     */
  .realtime-situation-box {
    .real-time-content {
      display: flex;
      flex-wrap: wrap;
      margin-top: 10px;
      margin-bottom: -12px;

      .item {
        width: 20%;
        padding-left: 30px;
        margin-bottom: 40px;

        .word {
          margin-bottom: 10px;
          font-size: 16px;
          font-weight: 400;
          color: #999999;
        }

        .number {
          font-size: 24px;
          font-weight: bold;
          line-height: 31px;
          color: #333333;
        }
      }
    }
  }

  .realtime-situation {
    //左边
    .realtime-left {
      height: 100%;
      // width: calc((100% - 20px) * 0.8);
      // margin-right: 20px;
      // .chart-content {
      //   width: 100%;
      //   height: 360px;
      // }
      background: #fff;
      border-radius: 4px;
    }

    .col-item {
      padding-right: 20px;
      box-sizing: border-box;
    }

    // 标题
    .title {
      position: relative;
      display: flex;
      align-items: center;
      box-sizing: border-box;

      .t-title {
        font-size: 18px;
        font-weight: bold;
        color: #333;
      }

      .update-time {
        font-size: 12px;
        color: #999999;
        margin-left: 10px;
      }

      .t-small-text {
        font-size: 12px;
        color: #999;
      }

      .t-update-time {
        margin-left: 12px;
      }

      .t-explain-item::before {
        display: inline-block;
        content: '';
        width: 18px;
        height: 8px;
        background: #FF4141;
        border-radius: 8px;
        margin-right: 10px;
      }

      .t-explain-first-item {
        margin-left: 50px;
      }

      .t-explain-second-item {
        margin-left: 40px;
      }

      .t-red::before {
        background: #FF4141;
      }

      .t-dark-green::before {
        background: #42B983;
      }

      .t-today-data::before {
        background: #1890FF;
      }

      .t-yesterday-data::before {
        background: #21D59B;
      }

      .t-pay-amount {
        position: absolute;
        right: 0;
        top: 0;
        display: flex;

        .t-pay-item {
          color: #333;
          text-align: left;
          margin-right: 30px;

          .tt-title {
            font-size: 14px;
          }

          .tt-num {
            font-size: 20px;
            font-weight: bold;
            margin-top: 13px;
          }
        }

        .t-today {
          margin-right: 150px;
        }
      }
    }

    .pay-amount-text {
      font-weight: bold;
    }

    .pay-amount-num {
      font-size: 24px;
      min-height: 24px;
      font-weight: 700;
      margin: 10px 0;
      line-height: 24px;
    }

    .pay-amount-tips {
      color: #9b9b9b;
    }

    // 图表
    .realtime-chart-box {
      left: -10px !important;
      // margin-top: 10px;
    }

    .wrapper__summary:nth-child(2) {
      margin-top: 120px;
    }

    // 右边
    .realtime-right {
      min-width: calc((100% - 20px) * 0.2);
      min-height: 426px;
      height: 100%;
      padding: 20px 0px 0 20px;
      background-color: #fff;
      box-sizing: border-box;
      border-radius: 4px;

      .realtime-right-title {
        font-size: 18px;
        font-weight: bold;
        color: #333;
        margin-bottom: 45px;
      }

      .realtime-right-box {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        height: 100%;

        .realtime-right-box-left, .realtime-right-box-right {
          width: 100%;
          display: flex;
          justify-content: space-between;
        }

        .realtime-right-box-right {
          margin-top: -30px;
        }

        .order-num-item {
          width: 100%;
          display: flex;

          .item-img {
            margin-right: 30px;

            .words {
              font-size: 16px;
              font-weight: 400;
              color: #666;
            }

            .number {
              font-size: 24px;
              font-family: Microsoft YaHei;
              font-weight: bold;
              color: #333;
              margin: 14px 0;
            }

            .compare {
              font-size: 14px;
            }
          }

          .item-box {
            .words {
              font-size: 16px;
              font-weight: 400;
              color: #666;
            }

            .number {
              font-size: 26px;
              font-family: Microsoft YaHei;
              font-weight: bold;
              color: #333;
              margin: 14px 0;
            }

            .seq {
              display: flex;

              .value {
                color: #333333;
                font-weight: bold;
                margin-right: 8px;
              }
            }
          }
        }

        // .order-num-item:nth-child(even){
        //     margin-left: 86px;
        // }
      }
    }

    .realtime .wrapper__summary {
      display: flex;
    }

    .realtime .wrapper__summary .summary__box {
      display: inline-flex;
      flex: 1;
      margin-left: 20px;
    }

    .realtime .wrapper__summary .summary__item {
      position: relative;
      width: 100%;
    }

    //客户数信息
    .customer-number-info {
      margin-left: 60px;
    }

    .text-tit {
      font-weight: 600;
    }

    .text-num {
      font-size: 24px;
      min-height: 24px;
      font-weight: 700;
      margin: 15px 0;
      line-height: 24px;
    }

    .text-tips {
      color: #9b9b9b;
    }

    // 客户数icon
    svg {
      fill: currentColor;
      vertical-align: middle;
    }

    .realtime .wrapper__summary .summary__svg {
      position: absolute;
      left: 0;
      top: 50%;
      transform: translateY(-50%);
    }
  }

  /**
    整体看板
     */
  .whole-plate {
    margin: 20px 0 20px;
    min-height: 460px;
    background-color: #fff;
    border-radius: 4px;

    // 标题
    .title {
      width: 80%;
      position: relative;
      display: flex;
      align-items: center;

      .t-title {
        font-size: 18px;
        font-weight: bold;
        color: #333;
      }

      .update-time {
        font-size: 12px;
        color: #999999;
        margin-left: 10px;
      }

      .t-small-text {
        font-size: 12px;
        color: #999;
      }

      .t-update-time {
        margin-left: 12px;
      }

      .t-explain-item::before {
        display: inline-block;
        content: '';
        width: 18px;
        height: 8px;
        background: #FF4141;
        border-radius: 8px;
        margin-right: 10px;
      }

      .t-explain-first-item {
        margin-left: 50px;
      }

      .t-explain-second-item {
        margin-left: 40px;
      }

      .t-red::before {
        background: #FF4141;
      }

      .t-dark-green::before {
        background: #42B983;
      }

      .t-today-data::before {
        background: #1890FF;
      }

      .t-yesterday-data::before {
        background: #21D59B;
      }

      .t-pay-amount {
        position: absolute;
        right: 0;
        top: 0;
        display: flex;

        .t-pay-item {
          color: #333;
          text-align: left;
          margin-right: 30px;

          .tt-title {
            font-size: 14px;
          }

          .tt-num {
            font-size: 20px;
            font-weight: bold;
            margin-top: 13px;
          }
        }

        .t-today {
          margin-right: 150px;
        }
      }
    }

    .money {
      width: 20%;
      display: flex;
      justify-content: space-between;

      .related-income-item {
        text-align: center;
      }
    }

    .related-income {
      margin: 20px 0 0 0px;
      padding-right: 50px;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
    }

    .item-tit {
      margin-top: 23px;
      margin-bottom: 15px;
    }

    .item-num {
      height: 24px;
      line-height: 24px;
    }

    .item-num-price {
      font-size: 18px;
      font-weight: 700;
    }

    .item-num a {
      color: #155bd4;
      text-decoration: none;
    }

    .integral-plate {
      margin-top: 15px;
    }
  }

  /**
    退款看板
     */
  .refund-plate {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    // 上
    .ranking-box {
      display: flex;
      flex-wrap: wrap;
      flex-direction: column;
      width: 50%;
      padding-right: 20px;

      .ranking-left,
      .refund-rate-box {
        display: flex;
        flex-direction: column;
        width: 100%;
        background: #fbfbfb;
        padding: 20px;
        box-sizing: border-box;
        border-radius: 4px;
        height: 574px;
      }

      .refund-rate-box {
        height: 396px;
      }

      .ranking-left {
        margin-top: 20px;
        flex: auto
      }

      .ranking-title {
        font-weight: bold;
        color: #333;
        font-size: 18px;
        margin-bottom: 20px;
      }

      .table {
        width: 100%;
        border: none;
        background: #fbfbfb;
        // border-spacing: 10px 20px;
        text-align: left;

        .table-tit {
          cursor: pointer;
        }

        .table-tit:hover {
          background-color: lightgoldenrodyellow;
          color: #000;
        }

        .table-tit:active {
          background-color: lightblue;
          color: #000;
        }

        tr {
          border: none;
          height: 3em;
          line-height: 1.5em;
        }

        td {
          border: none;
          word-break: break-wrod;
        }

        .gray {
          background: #F7F8FA;
        }

        .table-tit-item {
          color: #999;
          text-align: left;
        }

        .rank {
          width: 20%;
        }

        .prod {
          width: 50%;
        }

        .ref {
          width: 20%;
        }

        .ranks {
          width: 10%;
        }

        .prods {
          width: 50%;
        }

        .refs {
          width: 30%;
        }

        .prop {
          width: 10%;
          // text-align: center;
        }
      }

      .no-data {
        height: 60px;
        line-height: 60px;
        text-align: center;
        font-size: 14px;
        color: #999;
      }

      .line-clamp-one {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 1;
        text-overflow: ellipsis;
        overflow: hidden;
        /* autoprefixepxr: off */
        -webkit-box-orient: vertical;
        word-wrap: break-word;
        word-break: break-all;
      }

      .padLeft {
        padding-left: 20px;
      }

      .msg-tit {
        font-weight: bold;
        color: #333;
        font-size: 18px;
        margin-bottom: 15px;
      }
    }

    //  下
    .refund-chart-box {
      display: flex;
      flex-wrap: wrap;
      width: 50%;

      .successed-refund,
      .ranking-right {
        display: flex;
        width: 100%;
        flex-direction: column;
        background: #fbfbfb;
        padding: 20px;
        box-sizing: border-box;
        border-radius: 4px;
      }

      .successed-refund {
        display: flex;
        flex-direction: column;
        width: 100%;
        background: #fbfbfb;
        height: 396px;
        padding: 20px;
        box-sizing: border-box;
      }

      .ranking-right {
        margin-top: 20px;
      }

      .ranking-title {
        font-weight: bold;
        color: #333;
        font-size: 18px;
        margin-bottom: 20px;
      }

      .table {
        width: 100%;
        border: none;
        background: #fbfbfb;
        // border-spacing: 10px 20px;
        text-align: left;

        tr {
          border: none;
          height: 3em;
          line-height: 1.5em;
        }

        td {
          border: none;
          word-break: break-wrod;
        }

        .gray {
          background: #F7F8FA;
        }

        .table-tit-item {
          color: #999;
          text-align: left;
        }

        .rank {
          width: 10%;
        }

        .prod {
          width: 50%;
        }

        .ref {
          width: 30%;
        }

        .ranks {
          width: 20%;
        }

        .prods {
          width: 40%;
        }

        .refs {
          width: 30%;
        }

        .prop {
          width: 10%;
          // text-align: center;
        }
      }

      .msg-tit {
        font-weight: bold;
        color: #333;
        font-size: 18px;
        margin-bottom: 15px;
      }

      .padLeft {
        padding-left: 20px;
      }

      .msg-price {
        margin: 6px 0;
        line-height: 26px;
        padding: 0;
        font-size: 24px;
        font-weight: bold;
        line-height: 1em;
      }

      .msg-txt-p {
        width: 146px;
      }

      .compare {
        color: #9b9b9b;
        display: flex;
        justify-content: space-between;
        font-size: 12px;
        padding: 5px;
      }

      .compare-left {
        margin-right: 10px;
        white-space: nowrap;
      }
    }

    .integral-plate canvas {
      left: -5px !important;
    }

    .money-padleft {
      padding-left: 10px;
    }

    .refund-tip {
      display: flex;
      font-size: 14px;
      font-weight: 400;
      color: #5A607F;
    }

    .msg-tit-txt {
      display: flex;
      justify-content: space-between;
    }

    .traffictrendA, .traffictrendB {
      display: inline-block;
      width: 10px;
      height: 10px;
      border-radius: 6px;
      margin-right: 4px;
    }

    .traffictrendA {
      background: #21D59B;
    }

    .traffictrendB {
      margin-left: 40px;
      background: #0058FF;
    }

  }
}

.empty {
  display: block;
  height: 200px;
  line-height: 200px;
  text-align: center;
  color: #aaa;
}
</style>
