| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <!--pages/login/login.wxml-->
- <view class="login">
- <image src="/images/bxd_logo.png" mode="heightFix"></image>
- <view class="title">欢迎使用!</view>
- <view class="title">堡昕德订单管理系统</view>
- <view class="brief">登录享受更多服务</view>
- <form catchsubmit="submit">
- <view class="form" wx:if="{{!straumann}}">
- <view data-index="0" bind:tap="setLoginType" class="phone {{loginType == 0 ? 'active' : ''}}">手机登录</view>
- <view data-index="1" bind:tap="setLoginType" class="phone {{loginType == 1 ? 'active' : ''}}" style="margin-left: 20rpx;">账号登录</view>
- <block wx:if="{{loginType == 1}}">
- <view class="text">请输入账号</view>
- <view class="input"><input name="username" data-name="username" bindinput="asyncValue" value="{{user.username}}" placeholder="账号" /></view>
- <view class="text">请输入密码</view>
- <view class="input">
- <!-- value="{{user.password}}" -->
- <input wx:if="{{eyes}}" class="password" name="password" data-name="password" bindinput="asyncValue" type="text" placeholder="密码" />
- <input wx:else="" class="password" name="password" data-name="password" bindinput="asyncValue" type="password" placeholder="密码" />
- <view class="eyes iconfont {{eyes ? 'icon-xianshi' : 'icon-yincang'}}" bind:tap="eyesTap"></view>
- </view>
- <view class="text">请输入验证码</view>
- <view class="input">
- <input maxlength="6" value="{{user.code}}" data-name="code" bindinput="asyncValue" value="{{user.code}}" placeholder="验证码,点击右侧图片更换" />
- <!-- <button>发送验证码</button> -->
- <image src="{{code.src}}" bind:tap="renderCode"></image>
- </view>
- <button class="submit" form-type="submit">登录</button>
- </block>
- <block wx:if="{{loginType == 0}}">
- <view class="text">请输入手机号</view>
- <view class="input"><input type="number" name="mobile" data-name="mobile" bindinput="asyncValue" value="{{user.mobile}}" maxlength="11" placeholder="手机号" /></view>
- <view class="text">请输入验证码</view>
- <view class="input">
- <input maxlength="6" name="code1" data-name="code1" bindinput="asyncValue" value="{{user.code1}}" placeholder="验证码" />
- <button wx:if="{{smsTime == 0}}" bind:tap="getSmsCode">发送验证码</button>
- <button wx:else="">{{smsTime}}秒后重发</button>
- </view>
- <button class="submit" form-type="submit">登录</button>
- </block>
- </view>
- </form>
- </view>
- <CompanyName bind:ok="ok"></CompanyName>
|