index.wxml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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>
  8. <text wx:else>接单系统</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">获取验证码</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">获取验证码</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. </view>