百富门答题小程序
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.

200 lines
4.4 KiB

7 months ago
5 months ago
7 months ago
5 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
2 months ago
7 months ago
7 months ago
7 months ago
2 months ago
7 months ago
2 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
5 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
5 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
5 months ago
5 months ago
7 months ago
7 months ago
7 months ago
7 months ago
2 months ago
7 months ago
5 months ago
5 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
2 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
  1. <template>
  2. <view class="login">
  3. <view class="logo">
  4. <image :src="configList.logo_image" mode="widthFix"
  5. class="logo"></image>
  6. </view>
  7. <view class="title">
  8. {{ configList.logo_name }}
  9. </view>
  10. <view class="btn mt" @click="wxLogin">
  11. <view class="icon">
  12. <image src="../static/auth/wx.png" mode=""></image>
  13. </view>
  14. <view class="">
  15. 微信登录
  16. </view>
  17. </view>
  18. <view class="btn b2"
  19. @click="qux">
  20. 取消登录
  21. </view>
  22. <view class="config">
  23. <uv-checkbox-group v-model="checkboxValue" shape="circle">
  24. <view class="flex-center">
  25. <uv-checkbox size="30rpx" icon-size="20rpx" activeColor="#07c060" :name="1"></uv-checkbox>
  26. <text>已同意</text>
  27. <text @click="openConfigDetail('user_ys')">隐私政策</text>
  28. <text @click="openConfigDetail('user_xy')">用户协议</text>
  29. <view class="info">
  30. <img src="../static/auth/info.svg" alt="info" />
  31. </view>
  32. </view>
  33. </uv-checkbox-group>
  34. </view>
  35. <uv-popup mode="center" round="20" ref="service" duration="500">
  36. <view class="flex-col" style="width: 88vw;">
  37. <view class="flex-col" style="width: 76vw; padding: 30rpx;">
  38. <div class="icon-service">
  39. <img src="" alt="" />
  40. </div>
  41. <h3>服务协议和隐私权政策</h3>
  42. <span style="color: #7a7a7a; font-size: 26.5rpx; line-height: 55rpx;">
  43. 请您务必审慎阅读充分理解用户协议和隐私政策各条款包括但不限于用户注意事项用户行为规范以及为了向你提供服务而收集使用存储你的个人信息的情况等你可阅读
  44. <span style="color: black; font-weight: bold; font-size: 26.5rpx; ">遗产里的景德镇平台用户服务协议</span>
  45. <span style="color: black; font-weight: bold; font-size: 26.5rpx; ">遗产里的景德镇平台隐私权政策</span>
  46. 了解详细信息如你同意请点击下方按钮开始接受我们的服务
  47. </span>
  48. <view class="flex-sa mt-40 mb-60">
  49. <uv-button text="不同意" size="large" :custom-style=customStyle @click="close()"></uv-button>
  50. <uv-button type="error" size="large" text="同意" @click="agree"></uv-button>
  51. </view>
  52. </view>
  53. </view>
  54. </uv-popup>
  55. <configPopup ref="popup"></configPopup>
  56. </view>
  57. </template>
  58. <script>
  59. import { mapState } from 'vuex'
  60. import configPopup from '@/components/config/configPopup.vue';
  61. export default {
  62. name: 'Login',
  63. data() {
  64. return {
  65. checkboxValue: []
  66. }
  67. },
  68. computed : {
  69. ...mapState(['configList']),
  70. customStyle() {
  71. return {
  72. background: '#f1f1f1',
  73. color: '#00bf61'
  74. }
  75. },
  76. },
  77. methods: {
  78. wxLogin() {
  79. if (!this.checkboxValue.length) {
  80. return uni.showToast({
  81. title: '请先同意隐私协议',
  82. icon: 'none'
  83. })
  84. }
  85. // this.open()
  86. this.$store.commit('login')
  87. // uni.navigateTo({
  88. // url:'/pages/index/home'
  89. // })
  90. },
  91. leftClick() {
  92. uni.navigateBack({
  93. delta: 1
  94. })
  95. },
  96. openConfigDetail(key) {
  97. this.$refs.popup.open(key)
  98. },
  99. open(){
  100. this.$refs.service.open();
  101. },
  102. close(){
  103. this.$refs.service.close();
  104. },
  105. agree(){
  106. this.close();
  107. uni.navigateTo({
  108. url:'/pages/index/home'
  109. })
  110. },
  111. qux(){
  112. uni.reLaunch({
  113. url: '/pages/index/agreement'
  114. })
  115. },
  116. }
  117. }
  118. </script>
  119. <style scoped lang="scss">
  120. .logo {
  121. width: 320rpx;
  122. border-radius: 10rpx;
  123. }
  124. .login {
  125. display: flex;
  126. justify-content: center;
  127. align-items: center;
  128. height: 80vh;
  129. flex-direction: column;
  130. position: relative;
  131. .btn {
  132. width: 70%;
  133. height: 80rpx;
  134. background-color: $uni-wx-color;
  135. color: #fff;
  136. display: flex;
  137. justify-content: center;
  138. align-items: center;
  139. margin: 20rpx 0;
  140. border-radius: 120rpx;
  141. .icon {
  142. position: relative;
  143. top: 6rpx;
  144. right: 6rpx;
  145. margin-right: 10rpx;
  146. image {
  147. width: 40rpx;
  148. height: 35rpx;
  149. }
  150. }
  151. }
  152. .b2 {
  153. background-color: rgba($uni-wx-color, 0.2);
  154. color: $uni-wx-color;
  155. }
  156. .mt {
  157. margin-top: 200rpx;
  158. }
  159. .config {
  160. font-size: 22rpx;
  161. text-align: center;
  162. line-height: 40rpx;
  163. text {
  164. color: $uni-wx-color;
  165. }
  166. .info {
  167. width: 30rpx;
  168. height: 30rpx;
  169. position: relative;
  170. left: 80rpx;
  171. }
  172. }
  173. .icon-service {
  174. width: 90rpx;
  175. height: 90rpx;
  176. background-color: #e4c28b;
  177. border-radius: 50%;
  178. }
  179. }
  180. </style>