Files
RenyiXCX/pages/login/index.wxml

65 lines
2.4 KiB
Plaintext

<view class="container">
<!-- <view class="myorder-menu">
<view class='{{nav==1?"hover":""}}' bindtap="onnav" data-id="1">账号密码登录</view>
<view class='{{nav==0?"hover":""}}' bindtap="onnav" data-id="0">手机验证码登录</view>
</view> -->
<view class="login-box" wx:if="{{nav==0}}">
<view class="frombody">
<form bindsubmit='login'>
<view class="phone">
<text>手机号码:</text><input name="txtphone" type="text" bindinput='getphoneValue' placeholder="请填写手机号码" value="{{phone}}" />
</view>
<view class="code">
<text>手机验证码:</text><input name="txtcode" type="password" placeholder="请填写手机验证码" value="" /> <button bindtap="getcode0">{{getcode0}}</button>
</view>
<view class="button">
<button form-type="submit">{{loginbutton}}</button>
</view>
</form>
<!--
<view class="weixinbutton">
<button bindtap="weixinlogin">{{loginbutton2}}</button>
</view>-->
</view>
</view>
<view class="login-box" wx:if="{{nav==1}}">
<view class="frombody">
<form bindsubmit='login'>
<view>
<text>手机号码:</text><input name="txtusername" type="text" placeholder="请填写手机号码" value="{{username}}" />
</view>
<view>
<text>登录密码:</text><input name="txtpsd" type="password" placeholder="请填写登录密码" value="{{psd}}" />
</view>
<view class="button">
<button form-type="submit">{{loginbutton}}</button>
</view>
</form>
<view class="loginbottom">
<view>
<text>记住账号和密码:</text>
<switch checked='{{IFDefault}}' color="#6BA3F0" bindchange="changeisDefault"></switch>
</view>
</view>
<view class="wjmm">
<view bindtap="wjmm">忘记密码?</view> <view class="zchy" bindtap="register">注册新会员</view>
</view>
<!-- <view class="weixinbutton">
<button bindtap="weixinlogin">{{loginbutton2}}</button>
</view>-->
</view>
</view>
</view>