togoin.wxml 2.01 KB
<view>

  <!-- 登录图 -->
  <view >
    <view class="logins flex-center2 ali-c flex" style="position: relative;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">
	  <!-- 授权获取基础信息 -->	
      <button hidden="{{user}}"  class="getPhoneNumber" bindtap="bindGetUserInfo">
        <view class="flex flex-center2 ali-c">
          <image class="we_chat" src="{{imghots}}/miniapp/images/we_chat.png"></image>
          <view>微信账号快捷登录</view>
        </view>
      </button>  
	  <!-- 点击显示绑定手机的对话框 -->	
	  <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" style="height: 100%; line-height:normal;" class="txt-center f2 flex ali-c flex-center2 fs36 b_right">拒绝</view>        
			<button 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>