【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.

120 lines
2.4 KiB

  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. uni.navigateTo({
  47. url: "/pages/login/wxUserInfo"
  48. })
  49. }
  50. }
  51. }
  52. </script>
  53. <style lang="scss" scoped>
  54. .login {
  55. display: flex;
  56. flex-direction: column;
  57. justify-content: center;
  58. align-items: center;
  59. min-height: 100vh;
  60. background: white;
  61. // logo
  62. .logo {
  63. display: flex;
  64. align-items: center;
  65. justify-content: center;
  66. padding: 20rpx 0rpx;
  67. width: 40%;
  68. color: white;
  69. background: linear-gradient(180deg, #4C9EEA, #6DB9FF);
  70. border-radius: 45rpx 13rpx 45rpx 13rpx;
  71. font-size: 60rpx;
  72. }
  73. // 标题
  74. .login-title {
  75. font-size: 40rpx;
  76. font-weight: bold;
  77. margin: 20rpx 0rpx;
  78. }
  79. //登录按钮
  80. .login-btn {
  81. display: flex;
  82. justify-content: center;
  83. align-items: center;
  84. width: 70%;
  85. background: #05C160;
  86. height: 90rpx;
  87. border-radius: 45rpx;
  88. color: white;
  89. margin-top: 200rpx;
  90. .wx {
  91. margin-left: 10rpx;
  92. }
  93. }
  94. //隐私政策
  95. .privacy {
  96. display: flex;
  97. align-items: center;
  98. margin-top: 20rpx;
  99. &::v-deep .uv-checkbox-group {
  100. align-items: center !important;
  101. justify-content: center !important;
  102. flex-wrap : nowrap !important;
  103. }
  104. .privacy-title {
  105. color: #05C160;
  106. }
  107. }
  108. }
  109. </style>