rankpage.wxml 2.6 KB
<view class="commonpadding topbu">

  <view class="tiezitopone flex">
    <view class="tiezitouhead">
      <image src="{{userinfo.avatar==null?'/img/peopleimg.png':userinfo.avatar}}" mode=""></image>
    </view>

    <view class="zhuyeright" wx:if="{{userinfo.nickname!=null}}">
      <view class="tieziname">{{userinfo.nickname}}</view>
      <view class="star starone flexone">
        <view class="staritem">
          <image src="/img/star.png" wx:if="{{userinfo.level>=1}}"></image>
          <image src="/img/huangkong.png" wx:if="{{userinfo.level<1}}"></image>
          <image src="/img/huangban.png" wx:if="{{userinfo.level>=1.5&&userinfo.level<2}}"></image>
        </view>
        <view class="staritem">
          <image src="/img/star.png" wx:if="{{userinfo.level>=2}}"></image>
          <image src="/img/huangkong.png" wx:if="{{userinfo.level<2}}"></image>
          <image src="/img/huangban.png" wx:if="{{userinfo.level>=2.5&&userinfo.level<3}}"></image>
        </view>
        <view class="staritem">
          <image src="/img/star.png" wx:if="{{userinfo.level>=3}}"></image>
          <image src="/img/huangkong.png" wx:if="{{userinfo.level<31}}"></image>
          <image src="/img/huangban.png" wx:if="{{userinfo.level>=3.5&&userinfo.level<4}}"></image>
        </view>
        <view class="staritem">
          <image src="/img/star.png" wx:if="{{userinfo.level>=4}}"></image>
          <image src="/img/huangkong.png" wx:if="{{userinfo.level<4}}"></image>
          <image src="/img/huangban.png" wx:if="{{userinfo.level>=4.5&&userinfo.level<5}}"></image>
        </view>
        <view class="staritem">
          <image src="/img/star.png" wx:if="{{userinfo.level>=5}}"></image>
          <image src="/img/huangkong.png" wx:if="{{userinfo.level<5}}"></image>
          <image src="/img/huangban.png" wx:if="{{userinfo.level>=5.5&&userinfo.level<6}}"></image>
        </view>
      </view>
    </view>

    <view class="zhuyeright" wx:else bindtap="userlogin">
      <view class="tieziname">微信登录</view>
    </view>

  </view>
  <view class="starlevel flextwo">
    <view class="levelstar">
      <image src="/img/star.png"></image>
    </view>
    <view class="startight flexone">
      <view class="levelstar">
        <image src="/img/star.png"></image>
      </view>
      <view class="levelstar">
        <image src="/img/star.png"></image>
      </view>
    </view>
  </view>
  <view class="level">
    <view class="neilevel" style="width:{{userinfo.percent}}"></view>
  </view>

  <view class="startext">{{userinfo.num}}/{{userinfo.max_num}}</view>


</view>

<view class="ranktext">

<rich-text nodes="{{content}}"></rich-text>
</view>