login.wxml 2.3 KB
<view class="headtitle">
  WinesBook
</view>

<view class="logintitle">
  <view class="loginleft {{login==1?'loginactive':''}}" bindtap='yanzheng'>验证码登录</view>
  <view class="loginright {{login==2?'loginactive':''}}" bindtap="mima">密码登录</view>
</view>

<!-- 验证码登录 -->
<view wx:if="{{login==1}}">
  <view class="yanzheng">
    <view class="yanzhengleft">
      <view class="pho">+86</view>
      <view class="rowimg" >
        <image src="{{url}}/aicon_53x.png"></image>
      </view>
    </view>
 <!--   -->
    <view class="yanzhengmiddle">

      <input placeholder='请输入手机号' placeholder-class='enterphone' bindinput="enterphone" value="{{phone}}" type="number"/>
    </view>
    <view class="chaimg" bindtap="yclearphone">
      <image src="{{url}}/aicon_07x.png"></image>
    </view>
  </view> 
  
  <view class="login" bindtap="login">登录</view>
 

  <view class="firlogin">首次登录会自动创建新账号</view>
</view>


<!-- 密码登录 -->
<view wx:if="{{login==2}}">

  <view class="yanzheng ">
    <view class="yanzhengleft">
      <view class="pho">+86 </view>
      <view class="rowimg">
        <image src="{{url}}/aicon_53x.png"></image>
      </view>
    </view>

    <view class="yanzhengmiddle">

      <input placeholder='请输入手机号' placeholder-class='enterphone' value="{{mimaphone}}" type="number" bindinput="mimaphone" />
    </view>
    <view class="chaimg" bindtap="clearphone">
      <image src="{{url}}/aicon_07x.png"></image>
    </view>
  </view>
  <view class="yanzheng mima">
    <view class="yanzhengmiddle yanzhengma">

      <input placeholder='请输入密码' placeholder-class='enterphone' bindinput="shumima" type="password" value="{{mima}}" wx:if="{{passtype==true}}"/>
       <input placeholder='{{mima}}' placeholder='请输入密码' placeholder-class='enterphone' bindinput="entershuru" type="text" value="{{shuru}}" wx:else/>
      
    </view>
    
    <view class="mimaimg" bindtap="clearmima">
      <view class="chaimg">
        <image src="{{url}}/aicon_07x.png"></image>
      </view>
      <view class="eyeimg" bindtap="showmia">
        <image src="{{url}}/bicon_13x.png"></image>
      </view>
    </view>

  </view>

  

  <view class="login" bindtap="mimalogin">登录</view>
  <view class="forgetmima" bindtap="forgetmima">忘记密码?</view>
</view>