allowance.wxml
2.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<!--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>