<!--pages/myhome/myhome.wxml-->
<view class="myhome-wrp">
	<auth wx:if="{{!userInfo}}" bind:getAuth="getAuth"></auth>
	<view class="topbg"></view>
	<view class="header">
		<image src="{{memberInfo.member_avatar}}" class="avtor"></image>
		<view class="info">
			<view class="leftContent">
				<text class="nickname">{{memberInfo.member_nickname}}</text>
				<text class="qrcodeLabel">点击分享二维码</text>
			</view>
			<image src="/image/myhome/arrow-right.png" class="link"></image>
			<!-- <text class="other" wx:if="{{memberInfo.is_vip}}">会员额度还剩下:{{memberInfo.vip_left_amount}}元</text> -->
		</view>
	</view>

	<view class="limit" wx:if="{{memberInfo.is_vip}}">
		<image src="../../image/crown.png" class="crown"></image>
		<text class="label">尊敬的椰子会员</text>
		<text>您还剩{{memberInfo.vip_left_amount}}元额度</text>
	</view>

	<view class="order_list">
		<view class="order_list_box">
			<view class='order_title' bindtap='skip_all_order'>
				<text>我的订单</text>
			</view>
			<view class='order_info'>
				<view>
					<navigator url="/pages/vorderList/orderTabs?state_type=state_new" hover-class="none" class="pos_rel">
						<image style='width:70rpx;height: 70rpx;' src='../../image/wait_pay.png'></image>
						<view class="mt8">
							<text class="label">待付款</text>
						</view>
						<view class="sub_count" wx:if="{{pre_pay_count}}">{{pre_pay_count}}</view>
					</navigator>
				</view>
				<view>
					<navigator url="/pages/vorderList/orderTabs?state_type=state_pay" hover-class="none" class="pos_rel">
						<image style='width:70rpx;height: 70rpx;' src='../../image/paying.png'></image>
						<view class="mt8">
							<text class="label">充值中</text>
						</view>
						<view class="sub_count" wx:if="{{pre_send_count}}">{{pre_send_count}}</view>
					</navigator>
				</view>
				<view>
					<navigator url="/pages/vorderList/orderTabs?state_type=state_success" hover-class="none" class="pos_rel">
						<image style='width:70rpx;height: 70rpx;' src='../../image/completed.png'></image>
						<view class="mt8">
							<text class="label">已完成</text>
						</view>
						<view class="sub_count" wx:if="{{evaluate_count}}">{{evaluate_count}}</view>
					</navigator>
				</view>
			</view>
		</view>
	</view>


	<view class="cardList">
		<view class="card">
			<view class="card-title" bindtap="handleMore" data-cardtype="phone">
				<image src="/image/phone.png" class="icon icon-phone"></image>
				<text class="text">我的手机号</text>
				<image src="/image/myhome/arrow-right.png" class="more"></image>
			</view>
			<!-- <view class="card-body">
				<view wx:if="{{phone.card_type==='phone'}}" class="card-item bg-blue">{{phone.card_no}}</view>
			</view> -->
		</view>
		<view class="card">
			<view class="card-title" bindtap="handleMore" data-cardtype="petrochina">
				<image src="/image/petrochina.png" class="icon icon-postage"></image>
				<text class="text">我的中石油油卡</text>
				<image src="/image/myhome/arrow-right.png" class="more"></image>
			</view>
			<!-- <view class="card-body">
				<view wx:if="{{petrochina.card_type==='petrochina'}}" class="card-item bg-orange">{{petrochina.card_no}}</view>
			</view> -->
		</view>
		<view class="card">
			<view class="card-title" bindtap="handleMore" data-cardtype="sinopec">
				<image src="/image/sinopec.png" class="icon icon-postage"></image>
				<text class="text">我的中石化油卡</text>
				<image src="/image/myhome/arrow-right.png" class="more"></image>
			</view>
			<!-- <view class="card-body">
				<view wx:if="{{sinopec.card_type==='sinopec'}}" class="card-item bg-orange">{{sinopec.card_no}}</view>
			</view> -->
		</view>
		<view class="card">
			<view class="card-title" bindtap="handleMore" data-cardtype="invitees">
				<image src="/image/friends.png" class="icon more"></image>
				<text class="text">我的好友列表</text>
				<image src="/image/myhome/arrow-right.png" class="more"></image>
			</view>
		</view>
	</view>

</view>