<!--index.wxml-->
<view class="container home">
	<view class="unbind-box" wx:if="{{!userInfo.userNumber && !onQuery}}">
		<image class="unbind-img" src="/static/img/img_no_customer.png"></image>
		<button  class="open-button"  wx:if="{{ !weixinLogin }}"open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">点击授权</button>
	</view>
	<view wx:else class="waterInfo">
		<block>
			<view class="dashboard-wrap">
				<dashboard params="{{userInfo}}"></dashboard>
			</view>
			<view class="info clearfix">
				<view class="left">
					<image src="/static/img/icon-code.png"></image>
					<text>{{userInfo.userNumber || '--'}}</text>
				</view>
				<view class="right">
					<image src="/static/img/icon-user.png"></image>
					<text>{{userInfo.username || '--'}}</text>
				</view>
				<view class="bottom">
					<image src="/static/img/icon-address.png"></image>
					<text>{{userInfo.address || '--'}}</text>
				</view>
			</view>
		</block>
	</view>
	<view class="entrance">
		<view>
			<view class="item" wx:for="{{items}}" wx:key="index" data-item="{{item}}" bindtap="gotopage">
				<image src="{{item.icon}}"></image>
				<text>{{item.label}}</text>
			</view>
		</view>
	</view>
	<popup id="popup" bind:cancelEvent="cancelEvent" bind:confirmEvent="confirmEvent"></popup>
</view>