login.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. <template>
  2. <view class="login">
  3. <view class="logo-box">
  4. <image src="@/static/images/jobApplicant/logo.svg" mode="scaleToFill" />
  5. </view>
  6. <view class="login-btn-box">
  7. <view class="login-btn wechat" @click="goLogin"
  8. ><image src="@/static/images/jobApplicant/wechat.svg" mode="scaleToFill" />
  9. 微信登录</view
  10. >
  11. <view class="login-btn password" @click="goLogin"
  12. ><image
  13. src="@/static/images/jobApplicant/password.svg"
  14. mode="scaleToFill"
  15. />账号密码登录</view
  16. >
  17. <view class="login-btn phone" @click="goLogin"
  18. ><image
  19. src="@/static/images/jobApplicant/phone.svg"
  20. mode="scaleToFill"
  21. />手机验证码登录</view
  22. >
  23. <view class="txt-desc">
  24. <view class="check-box" @click="isArgee">
  25. <image
  26. src="@/static/images/jobApplicant/check.svg"
  27. v-if="argee"
  28. mode="scaleToFill"
  29. />
  30. <image
  31. src="@/static/images/jobApplicant/border.svg"
  32. v-else
  33. mode="scaleToFill"
  34. />
  35. </view>
  36. 已阅读并同意<text>《亿职赞用户协议》</text>
  37. 和<text>《隐私协议》</text>,允许亿职赞统一管理本人账号信息
  38. </view>
  39. </view>
  40. </view>
  41. </template>
  42. <script>
  43. export default {
  44. data() {
  45. return {
  46. argee: false, //同意协议
  47. };
  48. },
  49. /**
  50. *
  51. */
  52. methods: {
  53. isArgee() {
  54. this.argee = !this.argee;
  55. },
  56. goLogin() {
  57. uni.navigateTo({ url: "/pages/my/jobApplicant/loginInput" });
  58. },
  59. },
  60. };
  61. </script>
  62. <style lang="scss" scoped>
  63. .login {
  64. position: absolute;
  65. left: 0;
  66. right: 0;
  67. top: 0;
  68. bottom: 0;
  69. display: flex;
  70. flex-direction: column;
  71. .logo-box {
  72. flex: 1;
  73. display: flex;
  74. justify-content: center;
  75. align-items: center;
  76. image {
  77. width: 160rpx;
  78. height: 160rpx;
  79. }
  80. }
  81. .login-btn-box {
  82. flex-shrink: 0;
  83. padding: 0 32rpx;
  84. padding-bottom: 160rpx;
  85. box-sizing: border-box;
  86. .login-btn {
  87. padding: 20rpx;
  88. box-sizing: border-box;
  89. border-radius: 100rpx;
  90. color: rgba(255, 255, 255, 1);
  91. font-family: DM Sans;
  92. font-size: 32rpx;
  93. font-weight: 400;
  94. line-height: 44rpx;
  95. display: flex;
  96. justify-content: center;
  97. align-items: center;
  98. margin-bottom: 16rpx;
  99. image {
  100. width: 28rpx;
  101. height: 28rpx;
  102. margin-right: 20rpx;
  103. }
  104. }
  105. .wechat {
  106. background: linear-gradient(
  107. 90deg,
  108. rgba(13, 39, 247, 1),
  109. rgba(19, 193, 234, 1) 100%
  110. );
  111. }
  112. .password {
  113. background: rgba(1, 107, 246, 1);
  114. }
  115. .phone {
  116. background: #99c4fa;
  117. }
  118. }
  119. .txt-desc {
  120. font-family: DM Sans;
  121. font-size: 16rpx;
  122. font-weight: 400;
  123. letter-spacing: 0%;
  124. text-align: left;
  125. display: flex;
  126. align-items: center;
  127. color: #605d67;
  128. text {
  129. color: #016bf6;
  130. }
  131. .check-box {
  132. display: flex;
  133. justify-content: center;
  134. align-items: center;
  135. margin-right: 16rpx;
  136. image {
  137. width: 24rpx;
  138. height: 24rpx;
  139. }
  140. }
  141. }
  142. }
  143. </style>