<template>
  <div class="ranking">
    <img class="activityTitle" :src="require('../../../assets/img/vote.png')" />
    <div class="subTitle">123</div>
    <div class="topThree">
      <div class="topUser">
        <div class="flexEnd">
          <div class="userImg">
            <img
              :src="require('../../../assets/img/hg.png')"
              alt=""
              class="hg"
            />
          </div>
          <div class="userName">这是一个姓名</div>
          <div class="userP">29403</div>
        </div>
      </div>
      <div class="topUser">
        <div class="flexEnd flexCenter">
          <div class="userImg">
            <img
              :src="require('../../../assets/img/hg.png')"
              alt=""
              class="hg"
            />
          </div>
          <div class="userName">这是一个姓名</div>
          <div class="userP">29403</div>
        </div>
      </div>
      <div class="topUser">
        <div class="flexEnd">
          <div class="userImg">
            <img
              :src="require('../../../assets/img/hg.png')"
              alt=""
              class="hg"
            />
          </div>
          <div class="userName">这是一个姓名</div>
          <div class="userP">29403</div>
        </div>
      </div>
    </div>
    <van-cell-group class="list" inset>
      <van-row justify="center" class="van-hairline--bottom">
        <van-col span="2">
          <div class="jp">1</div>
        </van-col>
        <van-col span="7">朔州</van-col>
        <van-col span="8">1980票</van-col>
        <van-col span="7">详情</van-col>
      </van-row>
      <van-row justify="center" class="van-hairline--bottom">
        <van-col span="2">
          <div class="jp">2</div>
        </van-col>
        <van-col span="7">朔州</van-col>
        <van-col span="8">1980票</van-col>
        <van-col span="7">详情</van-col>
      </van-row>
    </van-cell-group>
    <van-search
      shape="round"
      left-icon=""
      right-icon="search"
      v-model="search"
      placeholder="搜索感兴趣的选手"
    />
  </div>
</template>
<script setup>
import { ref } from "vue";
// import { onMounted, reactive } from "vue";
// import { isIpad, isIpod, isIphone } from "../../utils/isTerminal";
/**
 * window.$originData.orginParames.title 页面标题
 * window.$originData.orginParames.parameters 固定参数值
 * window.$originData.urlParames url参数
 */
console.log(window.$originData);
const search = ref("");
</script>
<style lang="scss">
.ranking {
  $colorFFF: #ffffff;
  .topThree {
    position: relative;
    z-index: 1;
    background-image: url(../../../assets/img/topThree.png);
    background-size: 100% 100%;
    margin: 0 16px;
    height: 206px;
    display: flex;
    .topUser {
      flex: 1;
      text-align: center;
      flex-direction: row-reverse;
      display: flex;
      .flexEnd {
        align-self: flex-end;
        flex: 1;
        padding-bottom: 20px;
      }
      .flexCenter {
        padding-bottom: 50px;
      }
      .userImg {
        width: 70px;
        height: 70px;
        border-radius: 50%;
        margin: 0 auto;
        background-color: #000;
        position: relative;
        .hg {
          width: 35px;
          height: 25px;
          position: absolute;
          top: -15px;
          right: 0;
        }
      }
      .userName {
        font-size: 12px;
        padding: 10px;
        font-family: PingFang SC;
        font-weight: 400;
        color: #ffffff;
      }
      .userP {
        color: #ffc834;
        font-size: 19px;
        font-family: PingFang SC;
        font-weight: 600;
        color: #ffc834;
      }
    }
  }
  .activityTitle {
    padding-top: 34px;
    padding-bottom: 21px;
  }
  .subTitle {
    font-size: 13px;
    font-family: PingFang SC;
    font-weight: 400;
    color: #ffffff;
    line-height: 17px;
    margin: 0 21px;
  }
  .list {
    position: relative;
    z-index: 0;
    margin: -25px 25px 0 25px;
    padding-top: 20px;
    background-color: #00872c;
    border: 1px solid #000;
    .van-row {
      margin: 0 6px;
    }
    .van-hairline--bottom:after {
      border-color: #333;
    }
    .van-col {
      color: $colorFFF;
      font-size: 14px;
      height: 3em;
      line-height: 3em;
      position: relative;
      text-align: center;
    }
    .jp {
      width: 23px;
      height: 28px;
      line-height: 23px;
      display: block;
      margin: 0 auto;
      position: absolute;
      color: #956116;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background-image: url("../../../assets/img/jp.png");
      background-size: 100% 100%;
    }
  }
  .van-search {
    background-color: transparent;
  }
}
</style>
