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

199 lines
4.0 KiB

3 weeks ago
1 week ago
3 weeks ago
1 week ago
3 weeks ago
2 weeks ago
1 week ago
1 week ago
3 weeks ago
1 week ago
2 weeks ago
1 week ago
1 week ago
1 week ago
3 weeks ago
2 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
1 week ago
1 week ago
1 week ago
1 week ago
3 weeks ago
1 week ago
3 weeks ago
  1. <template>
  2. <view class="home">
  3. <image src="/static/image/bg/X1.png"
  4. class="page-bg"
  5. mode="aspectFill"></image>
  6. <view class="content_now">
  7. <view class="title">
  8. Genius Journey Club
  9. </view>
  10. <view class="title-desc">
  11. 欢迎您的到来
  12. </view>
  13. <view class="desc">
  14. 使用小程序请确认您已满18周岁
  15. </view>
  16. <view class="mian-btn"
  17. :class="{active:isActive === '未满18岁'}"
  18. @click="setActive('未满18岁')">{{ '未满18岁' }}</view>
  19. <view class="mian-btn"
  20. :class="{active:isActive === '已满18岁'}"
  21. @click="setActive('已满18岁')">{{ '已满18岁' }}</view>
  22. <view class="checkbox">
  23. <uv-checkbox-group v-model="checkboxValue">
  24. <view class="flex-center"
  25. style="flex-wrap: wrap;">
  26. <uv-checkbox
  27. size="40rpx"
  28. icon-size="30rpx"
  29. activeColor="#ecb864"
  30. :name="1"></uv-checkbox>
  31. <view>我已仔细阅读并已同意以下条款</view>
  32. <text @click="$refs.popup.open('user_ys_one')">全球隐私声明1</text>
  33. <text @click="$refs.popup.open('user_ys_two')">全球隐私声明2</text>
  34. <text @click="$refs.popup.open('user_xy_three')">全球隐私声明3</text>
  35. <!-- <text @click="$refs.popup.open('user_xy_four')">全球隐私声明4</text> -->
  36. <text
  37. @click="$refs.checkboxPopup.open('bottom')"
  38. >
  39. 查看40项协议
  40. </text>
  41. </view>
  42. </uv-checkbox-group>
  43. </view>
  44. <view class="uni-color-btn"
  45. @click="next">
  46. 立即开启
  47. </view>
  48. <text class="second-color">{{ configObj.bg_title }}</text>
  49. </view>
  50. <!-- <configPopup ref="popup"
  51. required
  52. :keys="keys"
  53. @success="checkboxValue = [1]"/> -->
  54. <uv-popup ref="checkboxPopup"
  55. :round="30">
  56. <view class="checkboxPopupContent">
  57. <view @click="$refs.popup.open('user_xy_four')"
  58. v-for="item in 40"
  59. :key="item"
  60. >全球隐私声明{{item + 1}}</view>
  61. </view>
  62. </uv-popup>
  63. <configPopup ref="popup"/>
  64. </view>
  65. </template>
  66. <script>
  67. import { mapState } from 'vuex'
  68. export default {
  69. data() {
  70. return {
  71. isActive : null,
  72. checkboxValue : [],
  73. configObj : {},
  74. keys : ['user_ys_one', 'user_ys_two', 'user_xy_three', 'user_xy_four'],
  75. }
  76. },
  77. computed : {
  78. },
  79. onLoad() {
  80. uni.$on('initConfig', data => {
  81. this.configObj = data
  82. })
  83. },
  84. onShow() {
  85. },
  86. methods: {
  87. setActive(value){
  88. this.isActive = value
  89. },
  90. next(){
  91. if(!this.isActive){
  92. uni.showToast({
  93. title:'请选择',
  94. icon: 'none'
  95. })
  96. return
  97. }
  98. if(!this.checkboxValue.length){
  99. // uni.showToast({
  100. // title:'请同意隐私政策',
  101. // icon: 'none'
  102. // })
  103. this.$refs.popup.openkeys()
  104. return
  105. }
  106. if(!uni.getStorageSync('token')){
  107. this.$utils.toLogin()
  108. return
  109. }
  110. this.$store.commit('getUserInfo', () => {
  111. uni.navigateTo({
  112. url: '/pages/index/index'
  113. })
  114. })
  115. },
  116. }
  117. }
  118. </script>
  119. <style lang="scss" scoped>
  120. .content_now{
  121. display: flex;
  122. flex-direction: column;
  123. align-items: center;
  124. justify-content: center;
  125. text-align: center;
  126. position: fixed;
  127. top: 55%;
  128. transform: translate(0, -50%);
  129. padding: 0 70rpx;
  130. box-sizing: border-box;
  131. width: 100%;
  132. --color2 : #000;
  133. .title-desc{
  134. font-size: 26rpx;
  135. }
  136. .desc{
  137. font-size: 26rpx;
  138. margin-top: 30rpx;
  139. }
  140. .mian-btn{
  141. border-color: $uni-color-primary;
  142. color: $uni-color-primary;
  143. }
  144. .active{
  145. background-color: $uni-color-primary;
  146. color: #fff;
  147. }
  148. .checkbox{
  149. margin-top: 470rpx;
  150. view{
  151. line-height: 50rpx;
  152. }
  153. text{
  154. color: #1e52ff;
  155. line-height: 50rpx;
  156. }
  157. }
  158. .uni-color-btn{
  159. width: 80%;
  160. }
  161. .flex-center {
  162. display: flex;
  163. justify-content: center;
  164. align-items: center;
  165. font-size: 26rpx;
  166. }
  167. }
  168. .checkboxPopupContent{
  169. padding: 40rpx;
  170. display: flex;
  171. flex-wrap: wrap;
  172. view{
  173. color: #1e52ff;
  174. line-height: 50rpx;
  175. }
  176. }
  177. </style>