帧视界壹通告,付费看视频的微信小程序
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.

150 lines
2.6 KiB

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