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

149 lines
2.6 KiB

10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
9 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
10 months ago
10 months ago
  1. <template>
  2. <view class="login">
  3. <view class="logo">
  4. <image src="/static/image/login/logo.jpg"
  5. mode="aspectFill"></image>
  6. </view>
  7. <view class="title">
  8. 欢迎登录帧视界
  9. </view>
  10. <view class="btn mt"
  11. @click="wxLogin">
  12. <view class="icon">
  13. <image src="/static/image/login/wx.png" mode=""></image>
  14. </view>
  15. <view class="">
  16. 微信授权登录
  17. </view>
  18. </view>
  19. <view class="btn b2"
  20. @click="$utils.redirectTo('/index/index')">
  21. 取消登录
  22. </view>
  23. <view class="config">
  24. <uv-checkbox-group
  25. v-model="checkboxValue"
  26. shape="circle">
  27. <view class="content">
  28. <view
  29. style="display: flex;">
  30. <uv-checkbox
  31. size="30rpx"
  32. :name="1"
  33. ></uv-checkbox>
  34. 阅读并同意我们的<text @click="openConfigDetail('getPrivacyPolicy')">服务协议与隐私条款</text>
  35. </view>
  36. <view class="">
  37. 以及<text @click="openConfigDetail('getUserAgreement')">个人信息保护指引</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. components : { configPopup },
  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. openConfigDetail(key){
  66. this.$refs.popup.open(key)
  67. }
  68. }
  69. }
  70. </script>
  71. <style scoped lang="scss">
  72. .login{
  73. display: flex;
  74. justify-content: center;
  75. align-items: center;
  76. height: 80vh;
  77. flex-direction: column;
  78. position: relative;
  79. .logo{
  80. image{
  81. width: 160rpx;
  82. height: 160rpx;
  83. border-radius: 80rpx;
  84. box-shadow: 0 0 10rpx 10rpx #00000012;
  85. }
  86. margin-bottom: 40rpx;
  87. }
  88. .title{
  89. position: relative;
  90. font-weight: 900;
  91. font-size: 45rpx;
  92. &::after{
  93. content: '';
  94. position: absolute;
  95. left: 0;
  96. top: 100%;
  97. display: block;
  98. height: 8rpx;
  99. width: 210rpx;
  100. background: linear-gradient(to right,#3c69f1, #fff);
  101. }
  102. }
  103. .btn{
  104. width: 80%;
  105. height: 100rpx;
  106. background-color: #3c69f1;
  107. color: #fff;
  108. display: flex;
  109. justify-content: center;
  110. align-items: center;
  111. margin: 20rpx 0;
  112. .icon{
  113. margin-right: 10rpx;
  114. image{
  115. width: 40rpx;
  116. height: 35rpx;
  117. }
  118. }
  119. }
  120. .b2{
  121. background-color: #3c69f122;
  122. color: #3c69f1;
  123. }
  124. .mt{
  125. margin-top: 200rpx;
  126. }
  127. .config{
  128. position: absolute;
  129. bottom: 0;
  130. font-size: 28rpx;
  131. text-align: center;
  132. line-height: 50rpx;
  133. text{
  134. color: #3c69f1;
  135. }
  136. }
  137. }
  138. </style>