特易招,招聘小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

148 lines
2.6 KiB

6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
4 months ago
6 months ago
4 months ago
6 months ago
  1. <template>
  2. <view class="login">
  3. <view class="logo">
  4. <!-- <image src="/static/image/login/logo.png" mode=""></image> -->
  5. </view>
  6. <view class="title">
  7. 欢迎使用特易招
  8. </view>
  9. <view class="btn mt"
  10. @click="wxLogin">
  11. <view class="icon">
  12. <image src="../static/auth/wx.png" mode=""></image>
  13. </view>
  14. <view class="">
  15. 微信授权登录
  16. </view>
  17. </view>
  18. <!-- <view class="btn b2">
  19. 使用短信验证登录
  20. </view> -->
  21. <view class="config">
  22. <uv-checkbox-group
  23. v-model="checkboxValue"
  24. shape="circle">
  25. <view class="content">
  26. <view
  27. style="display: flex;">
  28. <uv-checkbox
  29. size="40rpx"
  30. icon-size="30rpx"
  31. activeColor="#3796F8"
  32. :name="1"
  33. ></uv-checkbox>
  34. 阅读并同意我们的<text @click="$refs.popup.open('config_privacy')">隐私协议</text>
  35. </view>
  36. <view class="">
  37. 以及<text @click="$refs.popup.open('config_service')">服务条款</text>
  38. </view>
  39. </view>
  40. </uv-checkbox-group>
  41. </view>
  42. <configPopup ref="popup"></configPopup>
  43. </view>
  44. </template>
  45. <script>
  46. import configPopup from '@/components/config/configPopup.vue';
  47. export default {
  48. name : 'Login',
  49. data() {
  50. return {
  51. checkboxValue : []
  52. }
  53. },
  54. methods: {
  55. wxLogin(){
  56. if(!this.checkboxValue.length){
  57. return uni.showToast({
  58. title: '请先同意隐私协议',
  59. icon:'none'
  60. })
  61. }
  62. this.$store.commit('login')
  63. },
  64. }
  65. }
  66. </script>
  67. <style scoped lang="scss">
  68. .login{
  69. display: flex;
  70. justify-content: center;
  71. align-items: center;
  72. height: 80vh;
  73. flex-direction: column;
  74. position: relative;
  75. .logo{
  76. height: 140rpx;
  77. width: 140rpx;
  78. background-color: #ddd;
  79. border-radius: 30rpx;
  80. image{
  81. width: 80rpx;
  82. height: 80rpx;
  83. }
  84. margin-bottom: 20rpx;
  85. }
  86. .title{
  87. position: relative;
  88. font-weight: 900;
  89. font-size: 45rpx;
  90. &::after{
  91. content: '';
  92. position: absolute;
  93. left: 0;
  94. top: 100%;
  95. display: block;
  96. height: 8rpx;
  97. width: 210rpx;
  98. background: linear-gradient(to right,$uni-color, #fff);
  99. }
  100. }
  101. .btn{
  102. width: 80%;
  103. height: 100rpx;
  104. background-color: $uni-color;
  105. color: #fff;
  106. display: flex;
  107. justify-content: center;
  108. align-items: center;
  109. margin: 20rpx 0;
  110. border-radius: 20rpx;
  111. .icon{
  112. margin-right: 10rpx;
  113. image{
  114. width: 40rpx;
  115. height: 35rpx;
  116. }
  117. }
  118. }
  119. .b2{
  120. background-color: rgba($uni-color, 0.2);
  121. color: $uni-color;
  122. }
  123. .mt{
  124. margin-top: 200rpx;
  125. }
  126. .config{
  127. position: absolute;
  128. bottom: 0;
  129. font-size: 22rpx;
  130. text-align: center;
  131. line-height: 40rpx;
  132. text{
  133. color: $uni-color;
  134. }
  135. }
  136. }
  137. </style>