more.wxml 1.2 KB

  <bolck wx:for='{{volunteer}}' wx:key  >
    <view class='volunteerbox'>
      <view class='volunteercell' wx:for='{{item}}' wx:key>
        <view class='cell_top'>
          <view class='cellimg'>
            <image src='{{item.photo?item.photo:"https://volunteer.cnpu.org/imgs/wode_02@2x.png"}}' mode="aspectFill" />
          </view>
          <view class="c_right">
            <view class="name">{{item.name}}</view>
            <view class="province">{{item.province}}</view>
            <view class='star_box'>
              <image src="/imgs/xingxing_xuanzhong_icon@2x.png" mode='scaleToFill' wx:if='{{item.level>0}}'></image>
              <image src="/imgs/xingxing_xuanzhong_icon@2x.png" mode='scaleToFill' wx:if='{{item.level>1}}'></image>
              <image src="/imgs/xingxing_xuanzhong_icon@2x.png" mode='scaleToFill' wx:if='{{item.level>2}}'></image>
              <image src="/imgs/xingxing_xuanzhong_icon@2x.png" mode='scaleToFill' wx:if='{{item.level>3}}'></image>
              <image src="/imgs/xingxing_xuanzhong_icon@2x.png" mode='scaleToFill' wx:if='{{item.level>4}}'></image>
            </view>
          </view>
        </view>
      </view>
    </view>
    <view class='vold_line'></view>
  </bolck>