login.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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"
  8. ><image src="@/static/images/jobApplicant/wechat.svg" mode="scaleToFill" />
  9. 微信登录</view
  10. >
  11. <view class="login-btn password"
  12. ><image
  13. src="@/static/images/jobApplicant/password.svg"
  14. mode="scaleToFill"
  15. />账号密码登录</view
  16. >
  17. <view class="login-btn phone"
  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. },
  57. };
  58. </script>
  59. <style lang="scss" scoped>
  60. .login {
  61. position: absolute;
  62. left: 0;
  63. right: 0;
  64. top: 0;
  65. bottom: 0;
  66. display: flex;
  67. flex-direction: column;
  68. .logo-box {
  69. flex: 1;
  70. display: flex;
  71. justify-content: center;
  72. align-items: center;
  73. image {
  74. width: 160rpx;
  75. height: 160rpx;
  76. }
  77. }
  78. .login-btn-box {
  79. flex-shrink: 0;
  80. padding: 0 32rpx;
  81. padding-bottom: 160rpx;
  82. box-sizing: border-box;
  83. .login-btn {
  84. padding: 20rpx;
  85. box-sizing: border-box;
  86. border-radius: 100rpx;
  87. color: rgba(255, 255, 255, 1);
  88. font-family: DM Sans;
  89. font-size: 32rpx;
  90. font-weight: 400;
  91. line-height: 44rpx;
  92. display: flex;
  93. justify-content: center;
  94. align-items: center;
  95. margin-bottom: 16rpx;
  96. image {
  97. width: 28rpx;
  98. height: 28rpx;
  99. margin-right: 20rpx;
  100. }
  101. }
  102. .wechat {
  103. background: linear-gradient(
  104. 90deg,
  105. rgba(13, 39, 247, 1),
  106. rgba(19, 193, 234, 1) 100%
  107. );
  108. }
  109. .password {
  110. background: rgba(1, 107, 246, 1);
  111. }
  112. .phone {
  113. background: #99c4fa;
  114. }
  115. }
  116. .txt-desc {
  117. font-family: DM Sans;
  118. font-size: 16rpx;
  119. font-weight: 400;
  120. letter-spacing: 0%;
  121. text-align: left;
  122. display: flex;
  123. align-items: center;
  124. color: #605d67;
  125. text {
  126. color: #016bf6;
  127. }
  128. .check-box {
  129. display: flex;
  130. justify-content: center;
  131. align-items: center;
  132. margin-right: 16rpx;
  133. image {
  134. width: 24rpx;
  135. height: 24rpx;
  136. }
  137. }
  138. }
  139. }
  140. </style>