<!--packageD/energy/userCard/userCard.wxml-->

<view class="cardBox">
	<swiper indicator-dots="{{false}}"  wx:if="{{onceCard||familyCard||timeCard}}">
		<swiper-item wx:if="{{familyCard == '1'}}">
			<view class="card">
				<image src="{{family_card_pic}}" mode="scaleToFill"></image>
				<view class="is_type">家庭卡-主卡</view>
				<view class="residue">有效期至 2020.12.30</view>
			</view>
			<view class="storeInformation">
				<view class="name">店铺信息</view>
				<block wx:if="{{result.team_dividend_agency}}">
					<view class="storeDetail">店铺名称：{{result.team_dividend_agency.shop_name}}</view>
					<view class="storeDetail">联系方式：{{result.team_dividend_agency.phone}}</view>
					<view class="storeDetail">店铺地址：{{result.team_dividend_agency.shop_address}}</view>
				</block>
			</view>
			<view class="line"></view>
			<view class="cardlis">
				<view class="lis" style="margin-left: 91rpx;margin-right: 150rpx;" catchtap="gocard" data-id="2">
					<view class="img">
						<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/energytank_carddetle@2x.png"></image>
					</view>
					<view>卡详情</view>
				</view>
				<view class="lis" style="margin-right: 150rpx;" catchtap="gofamily" data-id="2">
					<view class="img">
						<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/energytank_homemember@2x.png"></image>
					</view>
					<view>家庭成员</view>
				</view>
				<view class="lis" catchtap="goNotes" data-id="2">
					<view class="img">
						<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/energytank_record@2x.png"></image>
					</view>
					<view>核销记录</view>
				</view>
			</view>
			<!-- <view class="btnBox">
				<view class="btn">核销</view>
			</view> -->
		</swiper-item>
		<swiper-item wx:if="{{onceCard}}">
			<view class="card">
				<image src="{{once_card_pic}}" mode="scaleToFill"></image>
				<view class="is_type">次卡</view>
				<view class="residue">剩余次数：{{onceCard.use_count}}次</view>
			</view>
			<view class="storeInformation">
				<view class="name">店铺信息</view>
				<block wx:if="{{result.team_dividend_agency}}">
					<view class="storeDetail">店铺名称：{{result.team_dividend_agency.shop_name}}</view>
					<view class="storeDetail">联系方式：{{result.team_dividend_agency.phone}}</view>
					<view class="storeDetail">店铺地址：{{result.team_dividend_agency.shop_address}}</view>
				</block>
			</view>
			<view class="line"></view>
			<view class="cardlis">
				<view class="lis" style="margin-left: 91rpx;margin-right: 150rpx;" catchtap="gocard" data-id="0">
					<view class="img">
						<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/energytank_carddetle@2x.png"></image>
					</view>
					<view>卡详情</view>
				</view>
				<view class="lis" catchtap="goNotes" data-id="0">
					<view class="img">
						<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/energytank_record@2x.png"></image>
					</view>
					<view>核销记录</view>
				</view>
			</view>
			<!-- <view class="btnBox">
				<view class="btn">核销</view>
			</view> -->
		</swiper-item>

		<swiper-item wx:if="{{timeCard}}">
			<view class="card">
				<image src="{{time_card_pic}}" mode="scaleToFill"></image>
				<view class="is_type">时间卡</view>
				<view class="residue">有效期至 {{result.timeCard.created_at}}</view>
			</view>
			<view class="storeInformation">
				<view class="name">店铺信息</view>
				<block wx:if="{{result.team_dividend_agency}}">
					<view class="storeDetail">店铺名称：{{result.team_dividend_agency.shop_name}}</view>
					<view class="storeDetail">联系方式：{{result.team_dividend_agency.phone}}</view>
					<view class="storeDetail">店铺地址：{{result.team_dividend_agency.shop_address}}</view>
				</block>
			</view>
			<view class="line"></view>
			<view class="cardlis">
				<view class="lis" style="margin-left: 91rpx;margin-right: 150rpx;" catchtap="gocard" data-id="1">
					<view class="img">
						<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/energytank_carddetle@2x.png"></image>
					</view>
					<view>卡详情</view>
				</view>
				<view class="lis" catchtap="goNotes" data-id="1">
					<view class="img">
						<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/energytank_record@2x.png"></image>
					</view>
					<view>核销记录</view>
				</view>
			</view>
			<!-- <view class="btnBox">
				<view class="btn">核销</view>
			</view> -->
		</swiper-item>

	</swiper>

	<view wx:if="{{onceCard == '0'||familyCard == '0'||timeCard == '0'}}" class="isNone" >
		<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/energytank_vipblank@2x.png"></image>
		<text style="padding-top:20rpx">暂无会员卡信息</text>
	</view>
</view>