rank.wxml 5.11 KB
<view class="page">
  <view class="app__bgc bgc"></view>
  <!-- <view class="app__bg bg"></view> -->
  <image class="bg" mode="widthFix" src="../../image/rank/rank-c1.png" />
  <view class="app__content main">
    <view class="top-space"></view>
    <view class="content">
      <!-- 导航 -->
      <view class="nav">
        <view bindtap="onNavSelectHandler" data-index="0" class="nav-item {{navIndex == 0 ? 'nav-item-act':''}}">
          <view class="tit">推广积分排行</view>
          <view class="line"></view>
        </view>
        <view bindtap="onNavSelectHandler"  data-index="1" class="nav-item {{navIndex == 1 ? 'nav-item-act':''}}">
          <view class="tit">总积分排行</view>
          <view class="line"></view>
        </view>
      </view>
      <!-- 排行 -->
      <view class="border rank">
        <!-- 功能区 -->
        <view class="rank-func">
          <view class="rank-func-item">
            <view class="pubish">
              <view class="t1">
                本轮周期:
                <span>7.1-7.14</span>
              </view>
              <!-- <view class="t1 t2">
                本轮奖品:
                <span class="c1">88元红包</span>
              </view> -->
              <view class="t1 t2">
                我的名次:
                <span class="c2">12</span>

              </view>
            </view>
          </view>
          <view class="rank-func-item pubish fje">
            <view class="mode">查看历史排行</view>
          </view>
        </view>
        <!-- 标题 -->
        <view class="tit">
          <view class="tt t1">名次</view>
          <view class="tt t2">名称</view>
          <view class="tt t3">积分</view>
        </view>
        <!-- 排行item -->
        <scroll-view bindscrolltolower="onRankScrolltolower" scroll-y="{{true}}" class="item-wrap">
          <view class="rank-item rank-item-first">
            <view class="no">
              <image class="medal" mode="aspectFit" src="../../image/icon/icon-medal.png" />
            </view>
            <view class="user">
              <image class="avatar" mode="widthFix" src="../../image/icon/icon-default-avatar.png" />
              nickname
            </view>
            <view class="integral">1000</view>
          </view>
          <view class="rank-item">
            <view class="no">2</view>
            <view class="user">
              <image class="avatar" mode="widthFix" src="../../image/icon/icon-default-avatar.png" />
              nickname
            </view>
            <view class="integral">1000</view>
          </view>
          <view class="rank-item">
            <view class="no">2</view>
            <view class="user">
              <image class="avatar" mode="widthFix" src="../../image/icon/icon-default-avatar.png" />
              nickname
            </view>
            <view class="integral">1000</view>
          </view>
          <view class="rank-item">
            <view class="no">2</view>
            <view class="user">
              <image class="avatar" mode="widthFix" src="../../image/icon/icon-default-avatar.png" />
              nickname
            </view>
            <view class="integral">1000</view>
          </view>
          <view class="rank-item">
            <view class="no">2</view>
            <view class="user">
              <image class="avatar" mode="widthFix" src="../../image/icon/icon-default-avatar.png" />
              nickname
            </view>
            <view class="integral">1000</view>
          </view>
          <view class="rank-item">
            <view class="no">2</view>
            <view class="user">
              <image class="avatar" mode="widthFix" src="../../image/icon/icon-default-avatar.png" />
              nickname
            </view>
            <view class="integral">1000</view>
          </view>
          <view class="rank-item">
            <view class="no">2</view>
            <view class="user">
              <image class="avatar" mode="widthFix" src="../../image/icon/icon-default-avatar.png" />
              nickname
            </view>
            <view class="integral">1000</view>
          </view>
        </scroll-view>
        <!-- 省略号 -->
        <view class="etc">...</view>
        <!-- 我的排名 -->
        <view class="my-rank">
          <view class="rank-item">
            <view class="no">
              1
              <!-- <image class="medal" mode="aspectFit" src="../../image/icon/icon-medal.png" /> -->
            </view>
            <view class="user">
              <image class="avatar" mode="widthFix" src="../../image/icon/icon-default-avatar.png" />
              nickname
            </view>
            <view class="integral">300</view>
          </view>
        </view>
      </view>
      <!-- 我的奖励按钮 -->
      <view class="btn-wrap">
        <view class="btn">
          <image class="integral" mode="aspectFit" src="../../image/icon/icon-rank-rewrad.png" />
          我的奖励
        </view>
      </view>
    </view>
  </view>
</view>
<van-popup show="{{ authorizeVisible }}">
  <authorize-comp bind:evtcomp="evtcomp"></authorize-comp>
</van-popup>