fastest-progress.vue 2.21 KB
Newer Older
leiqingsong's avatar
leiqingsong committed
1 2 3
<template>
  <div class="fastest-progress">
    <div class="bg">
leiqingsong's avatar
leiqingsong committed
4
      <van-icon name="arrow-left" @click="$router.go(-1)" />
leiqingsong's avatar
leiqingsong committed
5 6 7 8 9 10 11
      <span class="title">本月进步最大奖励池</span>
      <span class="award">¥6000.00</span>
    </div>
    <div class="rank">
      <div class="header rank-flex">
        <span style="flex:1;text-align:center;">排名</span>
        <span style="flex:1"></span>
12
        <span style="flex:2;text-align:center">用户名</span>
leiqingsong's avatar
leiqingsong committed
13 14 15 16 17 18
        <span style="flex:2">本月业绩增长率</span>
        <span style="flex:1;text-align:center">奖金</span>
      </div>
      <div class="rank-flex rank-content">
        <base-refresh-scroll>
          <div slot="content">
leiqingsong's avatar
leiqingsong committed
19 20 21 22 23
            <rank-item
              v-for="(item, index) in 20"
              :key="index"
              :rank-index="index + 1"
            />
leiqingsong's avatar
leiqingsong committed
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
          </div>
        </base-refresh-scroll>
      </div>
    </div>
  </div>
</template>

<script>
import BaseRefreshScroll from "../../components/BaseRefreshScroll.vue";
import RankItem from "./compoments/rankItem.vue";
export default {
  name: "FastestProgress",
  components: {
    RankItem,
    BaseRefreshScroll
  }
};
</script>

<style lang="scss" scoped>
.fastest-progress {
  position: relative;
leiqingsong's avatar
leiqingsong committed
46
  height: 100vh;
leiqingsong's avatar
leiqingsong committed
47 48 49 50 51 52 53 54
}
.bg {
  position: relative;
  height: 178px;
  color: #ffffff;
  background-image: url("../../assets/images/进步奖背景图.png");
  background-size: cover;
  .van-icon {
leiqingsong's avatar
leiqingsong committed
55 56 57 58 59 60 61 62
    position: absolute;
    top: 0;
    bottom: 0;
    width: 52px;
    height: 46px;
    line-height: 46px;
    text-align: center;
    font-size: 16px;
leiqingsong's avatar
leiqingsong committed
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
    color: #ffffff;
  }
  .title {
    position: absolute;
    top: 113px;
    left: 35px;
    font-size: 14px;
  }
  .award {
    position: absolute;
    top: 136px;
    left: 35px;
    font-size: 16px;
  }
}
.rank {
  position: absolute;
  top: 168px;
  box-sizing: border-box;
  width: 100%;
  height: calc(100% - 178px);
leiqingsong's avatar
leiqingsong committed
84
  overflow: hidden;
leiqingsong's avatar
leiqingsong committed
85 86 87 88 89 90 91
  padding: 10px;
  background-color: #ffffff;
  border-radius: 12px;

  .header {
    height: 36px;
    font-size: 13px;
leiqingsong's avatar
leiqingsong committed
92
    font-weight: bold;
leiqingsong's avatar
leiqingsong committed
93 94
    border-bottom: 1px solid #eeeeee;
  }
leiqingsong's avatar
leiqingsong committed
95 96 97 98 99
  .rank-content {
    position: relative;
    height: 100%;
    overflow: hidden;
  }
leiqingsong's avatar
leiqingsong committed
100 101 102 103 104
  .rank-flex {
    display: flex;
  }
}
</style>