1
0

userLogin.wxml 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <view class="container">
  2. <view class="form-box" wx:if="{{isRegist}}">
  3. <view class="form-item">
  4. <!-- 用于微信支付人手机号联系 -->
  5. <input class="phone" value="{{phone}}" disabled="{{disabledUpdate}}" type="number" maxlength="{{11}}" bindinput="bindPhoneInput" placeholder="手机号" />
  6. <image wx:if="{{ phone.length > 0 }}" id="clear-phone" class="clear" src="/static/images/clear_input.png" catchtap="clearPhone"></image>
  7. </view>
  8. <view class="form-item-code">
  9. <view class="form-item code-item">
  10. <input class="smscode" disabled="{{disabledUpdate}}" value="{{smscode}}" type="number" bindinput="bindSmscodeInput" placeholder="验证码" />
  11. <image class="clear" id="clear-smscode" wx:if="{{ smscode.length > 0 }}" src="/static/images/clear_input.png" catchtap="clearCode"></image>
  12. </view>
  13. <view class="sms-rr">
  14. <button class="btn" disabled="{{disabled}}" catchtap="smscode" >{{second}}</button>
  15. </view>
  16. </view>
  17. <view style='width:100%;margin: 0px auto;'>
  18. <button class="login-btn" open-type="getUserInfo" bindtap="loginUser">手机号绑定登录</button>
  19. <button class="no-login-btn" bindtap="bindCancelLogin">暂不登录</button>
  20. </view>
  21. </view>
  22. <!-- <view class="form-box" wx:if="{{!isRegist}}">
  23. <view class="form-item">
  24. <input class="phone" value="{{phone}}" disabled="{{disabledUpdate}}" type="number" maxlength="{{11}}" bindinput="bindPhoneInput" placeholder="手机号" auto-focus/>
  25. <image wx:if="{{ phone.length > 0 }}" id="clear-phone" class="clear" src="/static/images/clear_input.png" catchtap="clearPhone"></image>
  26. </view>
  27. <view class="form-item-code">
  28. <view class="form-item code-item">
  29. <input class="smscode" disabled="{{disabledUpdate}}" value="{{smscode}}" type="number" bindinput="bindSmscodeInput" placeholder="验证码" />
  30. <image class="clear" id="clear-smscode" wx:if="{{ smscode.length > 0 }}" src="/static/images/clear_input.png" catchtap="clearCode"></image>
  31. </view>
  32. <view class="sms-rr">
  33. <button class="btn" disabled="{{disabled}}" catchtap="smscode" >{{second}}</button>
  34. </view>
  35. </view>
  36. <view style='width:100%;margin: 0px auto;'>
  37. <button class="regist-btn" open-type="getUserInfo" bindtap="registUser">注册</button>
  38. </view>
  39. </view> -->
  40. <!-- <view class='regist' wx:if="{{isRegist}}" bindtap='showRegist'>立即注册</view> -->
  41. <view style='margin:80rpx auto 80rpx auto;width:100%;' wx:if="{{isRegist}}">
  42. <view class='login-third-div'></view>
  43. <view class='login-third'>
  44. <view class='login-third-text'>第三方账号登录</view>
  45. <view class='login-third-div2'></view>
  46. </view>
  47. <view class='sq-weixin-view'>
  48. <button open-type="getUserInfo" class="sq-weixin" bindgetuserinfo="bindGetUserInfo"></button>
  49. <!-- <image class="sq-weixin" src="/static/images/weixin_sq.png">
  50. </image> -->
  51. </view>
  52. </view>
  53. </view>