login.wxml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <!--pages/login/login.wxml-->
  2. <navBar backType="editLaw"></navBar>
  3. <wux-toptips id="wux-toptips" />
  4. <van-notify id="van-notify" />
  5. <myDialog isShown="{{showDialog}}" title="检验码" bindcancel="closeDialog" bindconfirm="getCheckCode">
  6. <view>
  7. <wux-input bind:change="changeInput" placeholder="请输入校验码">
  8. <view slot="footer" style="margin-left: 5px;">
  9. <image src="{{imgURL}}" style="height: 70rpx;width: 180rpx;" bind:tap="changeVerifyCode" mode=""/>
  10. </view>
  11. </wux-input>
  12. </view>
  13. </myDialog>
  14. <view class="container">
  15. <view class="logo">
  16. <image class="img" src="/static/image/logo-3.png" mode=""/>
  17. </view>
  18. <view>
  19. <wux-form
  20. id="wux-form"
  21. layout="{{ layout }}"
  22. validateMessages="{{ validateMessages }}"
  23. bind:change="onValuesChange"
  24. >
  25. <wux-field name="phone" label="手机号" initialValue="{{''}}" rules="{{ [{ required: true },{validator:'checkPhone'} ] }}">
  26. <wux-input maxlength="11" placeholder="请输入手机号" />
  27. </wux-field>
  28. <wux-field name="code" label="验证码" rules="{{ [{ required: true, message: '请输入验证码' }] }}">
  29. <wux-input placeholder="请输入验证码" />
  30. <view slot="extra" style="color: #387ef5; padding-left: 12px;" bind:tap="onSendCode">{{ c2 || '发送验证码'}}</view>
  31. </wux-field>
  32. <view slot="footer" class="btn-area btn-area_auto">
  33. <button type="primary" bindtap="onSubmit">登录 / 注册</button>
  34. <button type="primary" open-type="getPhoneNumber" bindgetphonenumber="fastLogin" style="margin-top:20rpx">微信一键登录</button>
  35. </view>
  36. </wux-form>
  37. </view>
  38. </view>