envelopesActivity.wxml
5.3 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<import src="../goodsList/productListCell.wxml"/>
<block wx:if="{{loading}}">
<loading wx:if="{{loading}}">加载中</loading>
</block>
<block wx:elif="{{loginFailded}}">
<view class='errorView' bindtap="reloadTapped">
<text class="error">出错啦!点击重试</text>
</view>
</block>
<block wx:else>
<view class='container'>
<scroll-view scroll-y style="height: {{scrollViewHeigth}}px;background-color: #e0e0e0;">
<view class='header'>
<image class="activityBanner" src="{{activityBanner}}"bindtap="bannerTapped"></image>
</view>
<view class='userDetail'>
<image class='userDetailBG' src="{{bgImage}}"/>
<image class='userIconBack' src="{{userIconS}}"/>
<image class='userIcon' src="{{userAvatarUrl}}"/>
<view class='userDetailTextView'>
<block wx:if="{{status == 0 || status == 1}}">
<text class="userDetailText">你抢到了我的红包哦,快去使用吧!</text>
</block>
<block wx:elif="{{status == 2}}">
<text class="userDetailText">你来晚了,红包已经抢光!</text>
</block>
<block wx:else>
<text class="userDetailText">你来晚了,活动已过期!</text>
</block>
</view>
<block wx:if="{{status == 0}}">
<view class='couponDetail'bindtap="useTapped">
<image class='couponDetailImage' src="{{curCouponImage}}"bindtap="useTapped"/>
<view class='couponPrice'bindtap="useTapped">
<text class='couponPricefuhao'>¥</text>
<text class='couponPriceText'>{{receiveRecord.couponAmount}}</text>
</view>
<view class='couponTextDetailView'bindtap="useTapped">
<text class='couponTextDetail'>{{receiveRecord.couponUseLimit}}</text>
</view>
</view>
</block>
<block wx:elif="{{status == 1}}">
<view class='couponDetail'bindtap="useTapped">
<image class='couponDetailImage' src="{{curCouponImage}}"bindtap="useTapped"/>
<view class='couponPrice'bindtap="useTapped">
<text class='couponPricefuhao'>¥</text>
<text class='couponPriceText'>{{receiveRecord.couponAmount}}</text>
</view>
<image class='ysyChuo' src="{{ysyChuo}}"bindtap="useTapped"/>
<view class='couponTextDetailView'bindtap="useTapped">
<text class='couponTextDetail'>{{receiveRecord.couponUseLimit}}</text>
</view>
</view>
</block>
<block wx:elif="{{status == 2}}">
<view class='couponDetail'bindtap="useTapped">
<image class='couponDetailImage' src="{{curCouponImageGuang}}"bindtap="useTapped"/>
<view class='textView'bindtap="useTapped">
<text class='text1'>别灰心,看看我们</text>
<text class='text2'>给你带来的精选潮品吧!</text>
</view>
</view>
</block>
<block wx:else>
<view class='couponDetail'bindtap="useTapped">
<image class='couponDetailImage' src="{{curCouponImageGuang}}"bindtap="useTapped"/>
<view class='textView'bindtap="useTapped">
<text class='text1'>别灰心,</text>
<text class='text2'>去看看其他精彩活动吧!</text>
</view>
</view>
</block>
<view class='activityTextView'>
<text class="activityText" bindtap="lookTapped">查看活动说明</text>
</view>
</view>
<view class='couponList'>
<view class='backG'>
<block wx:for="{{receiveRecords}}" wx:key="unique">
<view class="couponCell">
<image class="couponCellIcon" src="{{item.receiveUser.avatar}}"></image>
<view class="couponCellMiddle">
<text class="name">{{item.receiveUser.name}}</text>
<text class="time">{{item.receiveTime}}</text>
</view>
<view class="couponCellRigth">
<text class="price">+{{item.couponAmount}}</text>
</view>
</view>
</block>
<view class="bottomNum">
<text class="numText">剩余{{currentNum}}/{{maxReceiveNum}}</text>
</view>
<view class="listTopOffset"/>
</view>
</view>
<block wx:if="{{product_list.length > 0}}">
<view class="space"/>
<view class="couponCellActivityTitleView">
<image class="couponCellActivityBG" src="{{czspImage}}"> </image>
</view>
</block>
<view class="likeContainer">
<block wx:for="{{product_list}}" wx:key="{{index}}">
<template is="productListCell" data="{{listWidth, listHeight, listImageWidth, listImageHeight, listImageTop, listMarginHorizontal,index,f_index:3, item}}"/>
</block>
</view>
</scroll-view>
<view class='line'></view>
<view class='bottom'>
<view class="button1" bindtap="useTapped">
<text class="buttonText1">有货商城</text>
</view>
<view class="button2" bindtap="myCouponTapped">
<text class="buttonText2">我的优惠劵</text>
</view>
</view>
</view>
</block>