【PT.SCC实名制管理系统】24.10.01 -30天,考勤打卡小程序
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.

118 lines
2.4 KiB

1 year ago
1 year ago
1 year ago
  1. <template>
  2. <div class="login">
  3. <!-- logo -->
  4. <div class="logo">
  5. 打卡系统
  6. </div>
  7. <!-- 标题 -->
  8. <view class="login-title">工程项目打卡系统</view>
  9. <!-- 登录按钮 -->
  10. <view @click="login" class="login-btn">
  11. <uni-icons type="weixin" size="30" color="#fff"></uni-icons>
  12. <text class="wx">微信登录</text>
  13. </view>
  14. <!-- 隐私政策 -->
  15. <view class="privacy">
  16. <uv-radio-group>
  17. <uv-checkbox-group v-model="consent">
  18. <uv-checkbox :size="30" shape="circle" active-color="#05C160" :name="privacy"></uv-checkbox>
  19. </uv-checkbox-group>
  20. 已同意<text class="privacy-title">隐私政策</text>
  21. <text class="privacy-title">服务条款</text>
  22. </uv-radio-group>
  23. </view>
  24. <!-- 隐私政策弹框 -->
  25. <PrivacyAgreementPoup></PrivacyAgreementPoup>
  26. </div>
  27. </template>
  28. <script>
  29. import PrivacyAgreementPoup from '@/components/PrivacyAgreementPoup/PrivacyAgreementPoup.vue'
  30. export default {
  31. name : "Login",
  32. components : { PrivacyAgreementPoup },
  33. data() {
  34. return {
  35. consent : []
  36. }
  37. },
  38. methods: {
  39. login() {
  40. if(this.consent.length <= 0){
  41. return uni.showToast({
  42. icon: "none",
  43. title: "请勾选隐私协议"
  44. })
  45. }
  46. this.$store.commit('login')
  47. }
  48. }
  49. }
  50. </script>
  51. <style lang="scss" scoped>
  52. .login {
  53. display: flex;
  54. flex-direction: column;
  55. justify-content: center;
  56. align-items: center;
  57. min-height: 100vh;
  58. background: white;
  59. // logo
  60. .logo {
  61. display: flex;
  62. align-items: center;
  63. justify-content: center;
  64. padding: 20rpx 0rpx;
  65. width: 40%;
  66. color: white;
  67. background: linear-gradient(180deg, #4C9EEA, #6DB9FF);
  68. border-radius: 45rpx 13rpx 45rpx 13rpx;
  69. font-size: 60rpx;
  70. }
  71. // 标题
  72. .login-title {
  73. font-size: 40rpx;
  74. font-weight: bold;
  75. margin: 20rpx 0rpx;
  76. }
  77. //登录按钮
  78. .login-btn {
  79. display: flex;
  80. justify-content: center;
  81. align-items: center;
  82. width: 70%;
  83. background: #05C160;
  84. height: 90rpx;
  85. border-radius: 45rpx;
  86. color: white;
  87. margin-top: 200rpx;
  88. .wx {
  89. margin-left: 10rpx;
  90. }
  91. }
  92. //隐私政策
  93. .privacy {
  94. display: flex;
  95. align-items: center;
  96. margin-top: 20rpx;
  97. &::v-deep .uv-checkbox-group {
  98. align-items: center !important;
  99. justify-content: center !important;
  100. flex-wrap : nowrap !important;
  101. }
  102. .privacy-title {
  103. color: #05C160;
  104. }
  105. }
  106. }
  107. </style>