<view class="card_index">
	<view class="content">
		<view class="content_a">
			<view class="card_equity">
				<view class="card_bg_a" wx:if="{{!card_status}}" style="background-image: url(https://www.yunzmall.com/addons/yun_shop/static/images/universal_card_bg.png)">
					<view class="p">您还未开通{{titles}}，无法享受特权</view>
					<button type="button" catchtap="gotoOpen">立即开通</button>
				</view>
				<view class="card_bg_b" wx:if="{{card_status}}" style="background-image:url({{info.card_thumb}})">
					<view class="top">
						<view class="top_a">
							<view class="img">
								<image src="{{info.thumb?info.thumb:'https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/photo-mr.jpg'}}" style="width:100%;height:100%;" />
							</view>
							<view class="text ul">
								<view class="name li">{{info.nickname}}</view>
								<view class="grade li">我的等级：{{info.level_name?info.level_name:''}}</view>
							</view>
							<view class="all_vip">
								<button type="button" catchtap="gotoOpen">
									<icon class="iconfont icon-card_cap"></icon>所有等级
								</button>
							</view>
						</view>
					</view>
					<view class="time p">{{info.expire_date}}到期</view>
					<view class="btn">
						<button type="button" catchtap="gotoFare">立即续费</button>
					</view>
				</view>
				<view class="h1">{{titles}}<text class="span">尊享权益/PRIVLEGE</text></view>
			</view>
		</view>

		<view wx:if='{{info.text}}' class="amount-box" catchtap="gotoCouponLog">
			<view class="amount-box-left">{{info.text}} <text>{{info.amount}}</text></view>
			<view class="amount-box-right">使用记录 <icon class="fa fa-angle-right"></icon></view>
    </view>

		<view class="content_b" wx:if="{{tabShow}}">
			<view class="tab_a">
				<view class="tab_a_box ul">
					<view wx:for="{{tabArr}}" wx:for-index="index" wx:key="index" data-index="{{index}}" class="li {{index==tabIndex?'current':''}}"
					 catchtap="toggle">{{item}}</view>
				</view>
			</view>
			<view class="content_b_a" wx:if="{{privilege_discount_show}}">
				<view class="tab_b">
					<view class="tab_b_box ul">
						<view wx:for="{{pd_classfy_arr}}" wx:for-index="index" wx:key="index" data-index="{{index}}" data-id="{{item.id}}" class="li {{index==pd_index?'current':''}}"
						 catchtap="pdClassfySearch">{{item.name}}</view>
					</view>
				</view>
				<view class="tab_c">
					<view class="tab_c_box ul">
						<view wx:for="{{pd_date_arr}}" wx:for-index="index" wx:key="index" data-index="{{index}}" data-item="{{item}}" class=" li {{index==pd_date_index?'current':''}}"
						 catchtap="pdDateSearch">
							<text class="span">{{item.week}}</text>
							<text class="span">{{item.ye}}</text>
						</view>
					</view>
				</view>
				<view class="goods_list">
					<view class="goods" wx:for="{{pd_arr}}" wx:key="index" data-id="{{item.id}}" catchtap="gotoShop">
						<view class="img">
							<image src="{{item.thumb}}" style="width:100%;height:100%" />
						</view>
						<view class="info ul">
							<view class="info_a li">
								<text class="span">{{item.store_name}}</text>
								<text class="span">距离{{item.distance}}km</text>
							</view>
							<view class="info_b li">
								<text class="span">{{item.has_many_privilege[0].title}}</text>
							</view>
							<view class="info_c li">
								<text class="span">{{item.has_many_privilege[0].discount_value}}折</text>
								<button class='button-styles' type="button" data-id="{{item.id}}" catchtap="gotoShop">立即使用</button>
							</view>
						</view>
					</view>
				</view>
			</view>
			<view class="content_b_c" wx:if="{{exclusive_coupons_show}}">
				<view class="coupon_box">
					<view class="coupon" wx:for="{{ec_arr}}" wx:key="index">
						<view class="left">
							<view class="img">
								<image src="{{item.store.thumb?item.store.thumb:'https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/photo-mr.jpg'}}" style="width:100%;height:100%;" />
							</view>
							<view class="p">{{item.store.store_name}}</view>
						</view>
						<view class="right">
							<view class="right_a ul">
								<view class="li">{{item.name}}</view>
								<view class="li" wx:if="{{item.coupon_method==1}}">满{{item.enough}}立减{{item.deduct}}{{language['元']}}</view>
								<view class="li" wx:if="{{item.coupon_method==0}}">{{item.discount}}折优惠</view>
							</view>
							<view class="right_b ul">
								<view class="li" wx:if="{{item.coupon_method==1}}">{{language['money']}}<text class="span">{{item.deduct}}</text></view>
								<view class="li" wx:if="{{item.coupon_method==0}}"><text class="span">{{item.discount}}</text>折</view>
								<view class="li"><button type="button" data-id="{{item.id}}" catchtap="getCoupon">立即领取</button></view>
							</view>
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</view>
<shopfoot></shopfoot>
