<!-- 个人中心 -->
<block wx:if="{{isUser}}">
	<view class="userHead">
		<view class="userHead-img">
			<image src="{{infos.avatar}}" mode="aspectFill"></image>
			<view class="userHead-tips default" wx:if="{{infos.identity.identity_id == 0}}">
				{{infos.identity.name}}
			</view>
			<view class="userHead-tips super" wx:elif="{{infos.identity.identity_id == 1}}">
				<image src="/static/img/user_identity_00.png"></image><text>{{infos.identity.name}}</text>
			</view>
			<view class="userHead-tips sage" wx:else>
				<image src="/static/img/user_identity_01.png"></image><text>{{infos.identity.name}}</text>
			</view>
		</view>
		<view class="userHead-text">
			<view class="userHead-name">
				{{infos.nickname}}
			</view>
			<view class="userHead-tel">
				{{infos.username}}
			</view>
		</view>
		<view class="userHead-switch" bindtap="switchParty">
			<image src="/static/icon/switch.png"></image>
			切换账号
		</view>
	</view>
</block>
<block wx:else>
	<view class="userHead" bindtap="userLogin">
		<image class="userHead-img no-userHead" src="/static/img/default_cover.png" mode="aspectFill"></image>
		<view class="userHead-text">
			<view class="userHead-login">
				去登录
			</view>
		</view>
	</view>
</block>

<!-- 我的会员卡 -->
<view class="userCard">
	<view class="userCard-title">我的会员卡</view>
	<view class="userCard-cont">
		<view class="userCard-clip">
			<swiper class="userCard-swiper" autoplay="{{swiper.autoplay}}" interval="{{swiper.interval}}" duration="{{swiper.duration}}" current="{{currentId}}">
				<!-- <swiper-item class="userCard-item" bindtap="swiperNav" data-type="{{item.type}}" wx:for="{{swiper.imgUrls}}" wx:key="swiper">
					<image class="userCard-img" src="{{item.src}}" mode="scaleToFill" bindtap="bannerTap" data-id="{{item.id}}"></image>
					<view class="userCard-parice" style="color:{{item.color}}" wx:if="{{isUser}}"><text>可用余额：</text>
						<block wx:if="{{item.id == 0}}">{{account.silver}}</block>
						<block wx:if="{{item.id == 1}}">{{account.gold}}</block>
						<block wx:if="{{item.id == 2}}">{{account.balance}}</block>
					</view>
				</swiper-item> -->
				<swiper-item class="userCard-item" bindtap="swiperNav" data-type="silver">
					<image class="userCard-img" src="/static/img/user_card_00.png" mode="scaleToFill" bindtap="bannerTap" data-id="0"></image>
					<view class="userCard-parice" style="color: #676869" wx:if="{{isUser}}"><text>可用余额：</text>{{account.silver}}</view>
				</swiper-item>
				<swiper-item class="userCard-item" bindtap="swiperNav" data-type="drill">
					<image class="userCard-img" src="/static/img/user_card_02.png" mode="scaleToFill" bindtap="bannerTap" data-id="1"></image>
					<view class="userCard-parice" style="color: #192b4c" wx:if="{{isUser}}"><text>可用余额：</text>{{account.drill}}</view>
				</swiper-item>
				<swiper-item class="userCard-item" bindtap="swiperNav" data-type="balance" wx:if="{{infos.identity.identity_id != 0}}">
					<image class="userCard-img" src="/static/img/user_card_01.png" mode="scaleToFill" bindtap="bannerTap" data-id="2"></image>
					<view class="userCard-parice" style="color: #ff8f00" wx:if="{{isUser}}"><text>可用余额：</text>{{account.balance}}</view>
				</swiper-item>
			</swiper>
		</view>
		<image src="/static/icon/arrow_left.png" class='userCard-arrow-left' bindtap='nextImg'></image>
		<image src="/static/icon/arrow_right.png" class='userCard-arrow-right' bindtap='prevImg'></image>
	</view>
	<view class="userCard-tips">
		滑动切换，查看更多权益
		<image src="/static/icon/arrow_tips.png"></image>
	</view>
</view>

<!-- 我的服务 -->
<view class="userCard">
	<view class="userCard-title">我的服务</view>
	<view class="userOrder">
		<view class="userOrder-label" bindtap="userNav" data-url="/pages/coupon/coupon">
			<view class="userOrder-icon active">
				<image src="/static/img/userCoupon.png"></image>
			</view>
			<text>我的卡券</text>
		</view>
		<view class="userOrder-label" bindtap="userNav" data-url="/pages/packet/packet">
			<view class="userOrder-icon active">
				<image src="/static/img/userOrder_06.png"></image>
			</view>
			<text>红包领取</text>
		</view>
		<!-- <view class="userOrder-label" bindtap="userNav" data-url="/pages/activityOrder/activityOrder">
			<view class="userOrder-icon active">
				<image src="/static/img/userOrder_04.png"></image>
			</view>
			<text>活动订单</text>
		</view> -->
		<view class="userOrder-label" bindtap="userNav" data-url="/pages/address/address">
			<view class="userOrder-icon active">
				<image src="/static/img/userSite.png"></image>
			</view>
			<text>收货地址</text>
		</view>
		<view class="userOrder-label" bindtap="userNav" data-url="/pages/activate/activate">
			<view class="userOrder-icon active">
				<image src="/static/img/userOrder_05.png"></image>
			</view>
			<text>实体卡激活</text>
		</view>
	</view>
</view>

<!-- 我的订单 -->
<view class="userCard">
	<view class="userCard-title">兑换订单</view>
	<!-- <view class="userOrder">
		<view class="userOrder-label" bindtap="await">
			<view class="userOrder-icon">
				<image src="/static/img/userOrder_00.png"></image>
			</view>
			<text>所有订单</text>
		</view>
		<view class="userOrder-label" bindtap="await">
			<view class="userOrder-icon">
				<image src="/static/img/userOrder_01.png"></image>
			</view>
			<text>待付款</text>
		</view>
		<view class="userOrder-label" bindtap="await">
			<view class="userOrder-icon">
				<image src="/static/img/userOrder_02.png"></image>
			</view>
			<text>待发货</text>
		</view>
		<view class="userOrder-label" bindtap="await">
			<view class="userOrder-icon">
				<image src="/static/img/userOrder_03.png"></image>
			</view>
			<text>已发货</text>
		</view>
	</view> -->
	<view class="userOrder userOrder-label-new">
		<!-- <view class="userOrder-label" bindtap="userNav" data-url="/pages/activityOrder/activityOrder">
			<view class="userOrder-icon">
				<image src="/static/img/userOrder_04.png"></image>
			</view>
			<text>活动订单</text>
		</view> -->
		<view class="userOrder-label" bindtap="userNav" data-url="/pages/order/order?orderType=welfareGoods">
			<view class="userOrder-icon">
				<image src="/static/img/userOrder_00.png"></image>
			</view>
			<text>福利券订单</text>
		</view>
		<view class="userOrder-label" bindtap="userNav" data-url="/pages/order/order?orderType=welfare">
			<view class="userOrder-icon">
				<image src="/static/img/userOrder_01.png"></image>
			</view>
			<text>福利商品订单</text>
		</view>
		<view class="userOrder-label" bindtap="userNav" data-url="/pages/order/order?orderType=rightsCoupons">
			<view class="userOrder-icon">
				<image src="/static/img/userOrder_02.png"></image>
			</view>
			<text>权益券订单</text>
		</view>
		<view class="userOrder-label" bindtap="userNav" data-url="/pages/order/order?orderType=rights">
			<view class="userOrder-icon">
				<image src="/static/img/userOrder_03.png"></image>
			</view>
			<text>权益商品订单</text>
		</view>
		<!-- <view class="userOrder-label" bindtap="userNav" data-url="/pages/rights/rights?type=web&rightsId=39">
			<view class="userOrder-icon">
				<image src="/static/img/userOrder_03.png"></image>
			</view>
			<text>券领取</text>
		</view> -->
	</view>
</view>

<!-- 我的工具 -->
<view class="userCard" wx:if="{{isUser}}">
	<view class="userCard-title">我的工具</view>
	<view class="userOrder">
		<view class="userOrder-label" bindtap="userNav" data-url="/pages/userStored/userStored" wx:if="{{infos.identity.identity_id != 0}}">
			<view class="userOrder-icon active">
				<image src="/static/img/userOrder_07.png"></image>
			</view>
			<text>储值分享</text>
		</view>
		<view class="userOrder-label" bindtap="userNav" data-url="/pages/userGoods/userGoods" wx:if="{{infos.identity.identity_id != 0}}">
			<view class="userOrder-icon active">
				<image src="/static/img/userOrder_08.png"></image>
			</view>
			<text>产品分享</text>
		</view>
		<view class="userOrder-label" bindtap="userNav" data-url="/pages/favour/favour">
			<view class="userOrder-icon active">
				<image src="/static/img/userOrder_09.png"></image>
			</view>
			<text>红包赠予</text>
		</view>
		<view class="userOrder-label" bindtap="userNav" data-url="/pages/password_set/password_set">
			<view class="userOrder-icon active">
				<image src="/static/img/userOrder_10.png"></image>
			</view>
			<text>支付密码</text>
		</view>
	</view>
</view>