allowance.wxml 2.42 KB
<!--page/subPackage/pages/allowance/allowance.wxml-->
<view class='allowance-container'>
  <view class='top-container'>
    
<image class='image-bg' src='./images/red_bg.png'>
    </image>
    <view class='red-pac-detail' >
  
      <view class='tip1'>可用红包</view>

      <view class='red-num-container'>
        <view class='red-num'>{{redPacSum}}</view>
        <view class='yuan'>元</view>
      </view>

      <view class='go-detail' bindtap='goDetail'>
        <view style='color:#ffffff;font-size:24rpx;font-family: PingFang-SC-Regular; margin-bottom: 2rpx;'>查看明细</view>
        <image style='width:9.2rpx;height:16rpx;margin-left:5rpx' src='./images/arrow_right.png'></image>
      </view>
    </view>

    <image class='bottom-bg' src='./images/coin.png'></image>
  </view>

  <view class='red-explain-chain'>
    <block wx:for="{{explain}}" wx:key="{{index}}">
      <view class='explain-item' style='margin-bottom:{{index==explain.length-1?0:10}}rpx'>
        <view class='point'></view>
        <view class='text'>{{item}}</view>
        <view class='go-explain' bindtap='goExplain' style="display:{{index==explain.length-1?'flex':'none'}};">
          <text>玩法介绍</text><image style='width:9.2rpx;height:16rpx;margin-left:8rpx' src='./images/arrow_right_gray.png'></image>
        </view>
      </view>
    </block>
  </view>
  <block wx:if="{{bannerData.length > 0}}">
  <view class='line-short'></view>
  <view class='red-banner'>
    <block wx:for="{{bannerData}}" wx:key="{{index}}">
      <image class='banner' bindtap='bannerTab' data-url='{{item.url}}' style='height:{{320 * bannerRatio}}rpx' src='{{item.src}}'></image>
      <view style="width:30rpx;display:{{index == bannerData.length - 1 ?'none':'flex'}}"></view>
    </block>
    <!-- <image class='banner' style='width:'></image> -->
  </view>
  </block>

  <block wx:if="{{recommdData.productList.length > 0}}">
    <view style='width:100%;height:20rpx;background-color:#f0f0f0'></view>
    <view class='may-like-title'>
      <view class='line'></view>
      <view class='text'>你可能喜欢</view>
    </view>
    <view class="likeContainer">
      <block wx:for="{{recommdData.productList}}" wx:key="{{index}}">
        <productListCell item="{{item}}" page-name="{{current_page_name}}"></productListCell>
      </block>
    </view>

    <view wx:if="{{recommdData.productList.length>0 && recommdData.hasMore}}" class='load-more'>加载中...</view>
  </block>
</view>