index.wxml 4.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <view class="container">
  2. <view class="form-box">
  3. <view class="form-center">
  4. <image class="userinfo-avatar" src="/static/images/logo.png" mode="cover"></image>
  5. </view>
  6. <view class="form-center">
  7. <text wx:if="{{!isJms}}">服务人员接单系统-<text style="color:red">全职</text></text>
  8. <text wx:else>服务人员接单系统-<text style="color:red">兼职</text></text>
  9. </view>
  10. <view class="form-item">
  11. <!-- <view class="label" style="font-size:29rpx">登录方式</view> -->
  12. <view class="content" style="display:flex;justify-content: center;">
  13. <van-checkbox value="{{ isPro }}" wx:if="{{loginType!=2&&loginType!=1}}" bind:change="onProChange">验证码登录
  14. </van-checkbox>
  15. <van-checkbox value="{{ isUat }}" wx:if="{{loginType==1}}" style="margin-left: 30rpx;"
  16. bind:change="onUatChange">验证登录</van-checkbox>
  17. <van-checkbox value="{{ isJms }}" wx:if="{{loginType==2}}" style="margin-left: 30rpx;"
  18. bind:change="onJmsChange">服务者</van-checkbox>
  19. </view>
  20. </view>
  21. <block wx:if="{{!isJms}}">
  22. <!-- 自营登录 -->
  23. <view class="form-item">
  24. <view class="label" style="font-size:29rpx">手机号</view>
  25. <view class="content">
  26. <input class="username" type="number" maxlength="11" value="{{mobile}}"
  27. bindinput="bindMobileInput" placeholder="请输入联系手机" /> <!--disabled="{{!isUat}}"-->
  28. </view>
  29. </view>
  30. <view class="form-item">
  31. <view class="label" style="font-size:29rpx">验证码</view>
  32. <view class="content" style="display:flex">
  33. <input class="captcha" style="width: 260rpx;" type="number" value="{{captcha}}"
  34. bindinput="bindcaptchaInput" placeholder="验证码" auto-focus /><!--disabled="{{!isUat}}"-->
  35. <button class="form-item-getPhone" bindtap="getCaptcha" disabled="{{disabled}}">{{countdown}}</button><!--disabled="{{!isUat}}"-->
  36. </view>
  37. </view>
  38. </block>
  39. <block wx:if="{{isJms}}">
  40. <!-- 加盟商登录 -->
  41. <view class="form-item">
  42. <view class="label" style="font-size:29rpx">手机号</view>
  43. <view class="content">
  44. <input class="username" type="number" maxlength="11" value="{{mobile}}" bindinput="bindJmsMobileInput"
  45. placeholder="请输入联系手机" />
  46. </view>
  47. </view>
  48. <view class="form-item">
  49. <view class="label" style="font-size:29rpx">验证码</view>
  50. <view class="content" style="display:flex">
  51. <input class="captcha" style="width: 260rpx;" type="number" value="{{jmsCaptcha}}"
  52. bindinput="bindJmsCaptchaInput" placeholder="验证码" />
  53. <button class="form-item-getPhone" bindtap="getJmsCaptcha" disabled="{{disabled}}">{{countdown}}</button>
  54. </view>
  55. </view>
  56. </block>
  57. </view>
  58. <block wx:if="{{!isJms}}">
  59. <view style="display:flex;text-align:center">
  60. <button class="register-btn" wx:if="{{!isUat}}"
  61. bindtap="getPhoneNumber" >登录</button>
  62. <!-- open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber"-->
  63. <button class="register-btn" type="warn" wx:else="" bindtap="getUserProfile">验证登录</button>
  64. </view>
  65. <!-- <view style="width: 100%;text-align: center;text-decoration: underline;" bindtap="goShelter">报告上传</view> -->
  66. <view class="link-block">
  67. <view bindtap="goInvite">快速推荐全职保洁线索</view>
  68. <!-- <view bindtap="goTemp" style="margin-left:40rpx;">加盟接单</view> -->
  69. </view>
  70. </block>
  71. <block wx:if="{{isJms}}">
  72. <view style="display:flex;text-align:center">
  73. <button class="register-btn" bindtap="loginTemp">登录</button>
  74. </view>
  75. <view style="margin-top:40rpx;">
  76. <view bindtap="checkProBtn" style="color:#09afff">《鲸致生活接单系统用户协议》</view>
  77. </view>
  78. <view class="link-block">
  79. <view bindtap="goRegister">申请注册-兼职</view>
  80. </view>
  81. </block>
  82. <button style="margin-top:20rpx;color:red;background-color: rgb(227, 227, 236);" bindtap="chooseLogin">切换登录</button>
  83. </view>