You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
clothesProject/pages/index/index.wxml

86 lines
2.6 KiB

2 years ago
<!--pages/index/index.wxml
-->
<view class="wrapper">
<!-- 第一部分 -->
<view wx:if="{{islogin==1}}">
<image class="photo1" src="../img/登陆.jpg"></image>
<view class="header">
</view>
</view>
<!-- 找回密码 -->
<view wx:elif="{{islogin==2}}">
<view class="header">
<view class="title">找回密码</view>
<view class="info">Retrieve the password</view>
</view>
</view>
<!-- 请注册 -->
<view wx:else="{{islogin==3}}">
<view class="header">
<view class="title">请注册</view>
<view class="info">Please Register Your Account</view>
</view>
</view>
<!-- 第二部分 -->
<view class="body">
<!-- 登录页面 -->
<view wx:if="{{islogin==1}}">
<view class="input1">
<input class="one" type="number" bindinput="inputiphone1" maxlength="11" placeholder="请输入手机号" value="{{strloginUser}}"/>
<input class="one" password="true" bindinput="password1" placeholder="请输入密码" value="{{strloginpassword}}"/>
</view>
<view class="remenber"> <switch type="checkbox" checked="{{switchChecked}}" bindswitcheck="switchChecked" bindchange="bindswitchchange" style="transform:scale(0.8)"/>记住密码</view>
<button class="two" color="#3d7ef9" type="primary" bindtap="onlogin" disabled="{{loginbtnstate}}">登录</button>
</view>
<!-- 找回密码 -->
<view wx:elif="{{islogin==2}}">
<view class="input1">
<input class="one" type="number" bindinput="compass" maxlength="11" placeholder="请输入手机号" />
</view>
<button class="two" color="#3d7ef9" type="primary" bindtap="comebackpassword" disabled="{{loginbtnstate}}">找回密码</button>
</view>
<!-- 注册页面 -->
<view wx:else="{{islogin==3}}">
<form bindsubmit="formsubmit">
<view class="input1">
<input class="one" type="number" bindinput="inputiphone2" maxlength="11" placeholder="请输入手机号" name="iphone" />
<input class="one" password="true" bindinput="password2" placeholder="请输入密码" name="inputpassword" />
</view>
<button class="two" color="#3d7ef9" type="primary" form-type="submit" disabled="{{loginbtnstate}}">注册</button>
</form>
</view>
<!-- 第三部分 -->
<!-- 登录 -->
<view wx:if="{{islogin==1}}">
<view class="end">
<text bindtap="register">注册账户</text>
<text>|</text>
<text bindtap="forget">忘记密码</text>
</view>
</view>
<!-- 找回密码 -->
<view wx:elif="{{islogin==2}}">
<view class="end">
<text bindtap="denglu">登录页面</text>
</view>
</view>
<!-- 注册 -->
<view wx:else="{{islogin==3}}">
<view class="end">
<text bindtap="denglu">登录页面</text>
</view>
</view>
<view class="end-power">
<view class="power">
<text>Power By WSY</text>
</view>
</view>
</view>
</view>