知识付费微信小程序
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.

147 lines
2.6 KiB

  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. 欢迎使用xx知识平台
  8. </view>
  9. <view class="btn mt">
  10. <view class="icon">
  11. <!-- <image src="/static/image/login/wx.png" mode=""></image> -->
  12. </view>
  13. <view class=""
  14. @click="wxLogin">
  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="30rpx"
  30. :name="1"
  31. ></uv-checkbox>
  32. 阅读并同意我们的<text @click="openConfigDetail('privacyAgreement')">服务协议与隐私条款</text>
  33. </view>
  34. <view class="">
  35. 以及<text @click="openConfigDetail('userAgreement')">个人信息保护指引</text>
  36. </view>
  37. </view>
  38. </uv-checkbox-group>
  39. </view>
  40. <configPopup ref="popup"></configPopup>
  41. </view>
  42. </template>
  43. <script>
  44. import configPopup from '@/components/configPopup/configPopup.vue'
  45. export default {
  46. name : 'Login',
  47. components : { configPopup },
  48. data() {
  49. return {
  50. checkboxValue : []
  51. }
  52. },
  53. methods: {
  54. wxLogin(){
  55. this.$store.commit('login')
  56. },
  57. //打开应用配置
  58. openConfigDetail(key){
  59. this.$refs.popup.open(key)
  60. }
  61. }
  62. }
  63. </script>
  64. <style scoped lang="scss">
  65. .login{
  66. display: flex;
  67. justify-content: center;
  68. align-items: center;
  69. height: 80vh;
  70. flex-direction: column;
  71. position: relative;
  72. .logo{
  73. height: 80rpx;
  74. width: 80rpx;
  75. padding: 40rpx 30rpx;
  76. background-color: #ddd;
  77. border-radius: 70rpx;
  78. image{
  79. width: 80rpx;
  80. height: 80rpx;
  81. }
  82. margin-bottom: 20rpx;
  83. }
  84. .title{
  85. position: relative;
  86. font-weight: 900;
  87. font-size: 45rpx;
  88. &::after{
  89. content: '';
  90. position: absolute;
  91. left: 0;
  92. top: 100%;
  93. display: block;
  94. height: 8rpx;
  95. width: 210rpx;
  96. background: linear-gradient(to right,#00aaff, #fff);
  97. }
  98. }
  99. .btn{
  100. width: 80%;
  101. height: 100rpx;
  102. background-color: #00aaff;
  103. color: #fff;
  104. display: flex;
  105. justify-content: center;
  106. align-items: center;
  107. margin: 20rpx 0;
  108. border-radius: 20rpx;
  109. .icon{
  110. margin-right: 10rpx;
  111. image{
  112. width: 40rpx;
  113. height: 35rpx;
  114. }
  115. }
  116. }
  117. .b2{
  118. background-color: #3c69f122;
  119. color: #3c69f1;
  120. }
  121. .mt{
  122. margin-top: 200rpx;
  123. }
  124. .config{
  125. position: absolute;
  126. bottom: 0;
  127. font-size: 22rpx;
  128. text-align: center;
  129. line-height: 40rpx;
  130. text{
  131. color: #00aaff;
  132. }
  133. }
  134. }
  135. </style>