login.wxml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <!--pages/login/login.wxml-->
  2. <view class="login">
  3. <image src="/images/bxd_logo.png" mode="heightFix"></image>
  4. <view class="title">欢迎使用!</view>
  5. <view class="title">堡昕德订单管理系统</view>
  6. <view class="brief">登录享受更多服务</view>
  7. <form catchsubmit="submit">
  8. <view class="form" wx:if="{{!straumann}}">
  9. <view data-index="0" bind:tap="setLoginType" class="phone {{loginType == 0 ? 'active' : ''}}">手机登录</view>
  10. <view data-index="1" bind:tap="setLoginType" class="phone {{loginType == 1 ? 'active' : ''}}" style="margin-left: 20rpx;">账号登录</view>
  11. <block wx:if="{{loginType == 1}}">
  12. <view class="text">请输入账号</view>
  13. <view class="input"><input name="username" data-name="username" bindinput="asyncValue" value="{{user.username}}" placeholder="账号" /></view>
  14. <view class="text">请输入密码</view>
  15. <view class="input">
  16. <!-- value="{{user.password}}" -->
  17. <input wx:if="{{eyes}}" class="password" name="password" data-name="password" bindinput="asyncValue" type="text" placeholder="密码" />
  18. <input wx:else="" class="password" name="password" data-name="password" bindinput="asyncValue" type="password" placeholder="密码" />
  19. <view class="eyes iconfont {{eyes ? 'icon-xianshi' : 'icon-yincang'}}" bind:tap="eyesTap"></view>
  20. </view>
  21. <view class="text">请输入验证码</view>
  22. <view class="input">
  23. <input maxlength="6" value="{{user.code}}" data-name="code" bindinput="asyncValue" value="{{user.code}}" placeholder="验证码,点击右侧图片更换" />
  24. <!-- <button>发送验证码</button> -->
  25. <image src="{{code.src}}" bind:tap="renderCode"></image>
  26. </view>
  27. <button class="submit" form-type="submit">登录</button>
  28. </block>
  29. <block wx:if="{{loginType == 0}}">
  30. <view class="text">请输入手机号</view>
  31. <view class="input"><input type="number" name="mobile" data-name="mobile" bindinput="asyncValue" value="{{user.mobile}}" maxlength="11" placeholder="手机号" /></view>
  32. <view class="text">请输入验证码</view>
  33. <view class="input">
  34. <input maxlength="6" name="code1" data-name="code1" bindinput="asyncValue" value="{{user.code1}}" placeholder="验证码" />
  35. <button wx:if="{{smsTime == 0}}" bind:tap="getSmsCode">发送验证码</button>
  36. <button wx:else="">{{smsTime}}秒后重发</button>
  37. </view>
  38. <button class="submit" form-type="submit">登录</button>
  39. </block>
  40. </view>
  41. </form>
  42. </view>
  43. <CompanyName bind:ok="ok"></CompanyName>