chongzhi.wxml 1.69 KB
<wxs module="g_filter" src="g_filter.wxs"></wxs>
<view class="container">
	<!-- 封面 -->
	<view class="banner-container"><image class="img-block" src="{{url + imgAd}}"></image></view>
	<!-- 列表 -->
	<view>
		<!-- 标题 -->
		<view class="title flex" bindtap="onClickTab">
			<view class="t-item {{currentIndex == 0 ? 'active':''}}" data-index="0">待核销</view>
			<view class="t-item {{currentIndex == 1 ? 'active':''}}" data-index="1">已核销</view>
		</view>
		<!-- 内容 -->
		<view class="list">
			<block wx:for="{{list}}" >            
				 <view class="l-item"  bindtap="goDetails" data-id="{{item.ID}}" >
					<!-- 上 -->
					<view class="{{currentIndex == 0 ? 'top flex':'flex'}}">
						<!-- 左 -->
						<!-- <view class="left">
							<image class="img-block"></image>
						</view> -->
						<!-- 右 -->
						<view class="right">
							<view class="fs28 ellipsis-2 txt-justify">{{item.ActName}}</view>
							<view>
								<view class="price fs24">零售价:¥{{item.PosPrice}}</view>
								<view class="date fs24">{{(currentIndex == 0 ? '兑换截止日期': '核销时间') + ':' + item.BeginDate + '至' + item.EndDate}}</view>
							</view>
						</view>
					</view>
					<!-- 下 -->
					<view class="bottom" wx:if="{{currentIndex == 0  && g_filter.is_acting(item.EndDate) }}" >
						<text catchtap="viewDetails" data-index="{{index}}"  class="btn" >立即使用</text>
					</view>
				</view>	
		   </block>	
						
		   <nodata nodataContainer="nodata" wx:if="{{list.length === 0}}">暂无数据</nodata>
		   <view hidden="{{!noMore}}" class="no-more t-c" wx:if="{{list.length !== 0}}">- 已全部加载 -</view>
						
		</view>
	</view>
</view>

<qrcode id="qrcode" ></qrcode>