<!-- 判断隐私是不是显示 -->
<privacy_pop id="privacy_pop" bind:agree_pri="agree_pri"></privacy_pop>

<view>
  <!-- 登录图 -->
  <view >
    <view class="logins flex-center2 ali-c flex" style="padding-top: 120rpx;">
	  <image mode="widthFix"  bindtap="go_index" class="login_img_back" src="{{imghots}}/miniapp/images/loginbg.jpg"></image>
      <view class="middle_view">
         <image bindtap="go_index" class="login_img" src="{{store_logo}}" binderror="bind_bnerr" lazy-load="true" data-errorimg="store_logo"></image>
	        <view>{{store.store_name}}</view>
      </view>
    </view>
  </view>

  <!-- 登录按钮 -->
  <view>
    <view class="phones">

		<view bindtap="" class="user-name flex-vertical fs24 jc-center">
			<checkbox-group bindchange="isAgree">
				<checkbox checked="{{isAgree}}" value="true" style="display: flex;">
				<label for="true">
					<view class="user-name-txt">我已阅读同意 <text class="gray" catchtap="goto" data-url="/packageA/pages/parseHtml/parseHtml?t=0">《用户使用协议》</text>与<text class="gray" catchtap="goto" data-url="/packageA/pages/parseHtml/parseHtml?t=1">《隐私政策》</text></view>
				</label>
				</checkbox>
			</checkbox-group>


		</view>

	 <!-- 授权获取基础信息 -->
	 <block wx:if="{{canIUseGetUserProfile}}">
	 		  <button hidden="{{user}}"  class="getPhoneNumber" bindtap="bindGetUserInfo">
	 			<view class="flex flex-center ali-c">
	 			  <!-- <image class="we_chat" src="{{imghots}}/miniapp/images/we_chat.png"></image> -->
	 			  <view>一键快捷登录</view>
	 			</view>
	 		  </button>
	 </block>

	 <block wx:else>
		  <!-- 授权获取基础信息 -->
		  <button hidden="{{user}}"  class="getPhoneNumber" open-type="getUserInfo" bindgetuserinfo="bindUserInfo">
		  		<view class="flex flex-center ali-c">
		  			   <!-- <image class="we_chat" src="{{imghots}}/miniapp/images/we_chat.png"></image> -->
		  			   <view>一键快捷登录</view>
		  		</view>
		  </button>
	  </block>

	  <!-- 点击显示绑定手机的对话框 -->
	  <button  hidden="{{!user}}" class="getPhoneNumber" bindtap="show_bind_mobile">
		  <view  class="flex flex-center2 ali-c" >
			<!-- <image class="we_chat" src="{{imghots}}/miniapp/images/we_chat.png"></image> -->
			<view>手机号快捷登录</view>
		  </view>
	  </button>
    </view>

    <view class="userlongin flex-center2 flex fs30 jc_sb" style="margin: 0 130rpx">
      <view bindtap="cancle_bind">暂不登录</view>
    </view>

  </view>

</view>

<view wx:if="{{show_bind}}">
	<view class="cover-layer" bindtap="close_pop"></view>
	<view class="p_content">
		<view class="p_title flex ali-c fs34">
			登录手机号，同步会员信息以及订单记录
		</view>
		<view class="flex btn_view">
			<view bindtap="close_pop_back" style="height: 100%; line-height:normal;" class="txt-center f2 flex ali-c flex-center2 fs36 b_right">暂不授权</view>
			<button disabled="{{sub}}" style="height: 100%;" class="g_mobile f2 flex ali-c flex-center2 fs36 txt-red" open-type="getPhoneNumber" bindgetphonenumber="getphone">立即授权</button>
		 </view>
    </view>
</view>
<warn id="warn"></warn>

