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

88 lines
2.1 KiB

8 months ago
  1. <template>
  2. <view class="home">
  3. <view class="content" style="padding-top: 25vh;">
  4. <span class="font-bold">Genius Journey Club</span>
  5. <text style="margin-top: 20rpx; font-size: 28rpx; color: #878787;">欢迎您的到来</text>
  6. <text style="margin-top: 30rpx; font-size: 28rpx; color: #878787;">使用小程序请确认您已满18周岁</text>
  7. <view class="mian-btn" :class="{active:isActive === 'yes'}" @click="setActive('yes')">未满18岁</view>
  8. <view class="mian-btn" :class="{active:isActive === 'no'}" @click="setActive('no')">已满18岁</view>
  9. <view class="flex-center mt-40">
  10. <uv-checkbox-group>
  11. <uv-checkbox size="15px" v-model="isCheck" iconSize="20rpx" activeColor="#e6bf7f" @change="change"></uv-checkbox>
  12. </uv-checkbox-group>
  13. <span style="font-size: 26rpx;">我已阅读政策隐私条</span>
  14. </view>
  15. <view class="" style="margin-top: 60rpx;" @click="start">
  16. <view class="btn2">
  17. 立即开启
  18. </view>
  19. </view>
  20. <view class="flex-col query" style="gap: 0rpx;">
  21. <text class="second-color">欢快无限饮&nbsp;&nbsp;饮酒有限度</text>
  22. </view>
  23. </view>
  24. </view>
  25. </template>
  26. <script>
  27. export default {
  28. data() {
  29. return {
  30. isActive: null,
  31. isCheck: false
  32. }
  33. },
  34. methods: {
  35. setActive(val) {
  36. this.isActive = val
  37. },
  38. change(e){
  39. this.isCheck = e
  40. },
  41. start() {
  42. if (this.isActive && this.isCheck) {
  43. uni.navigateTo({
  44. url:'/pages/index/fillIn'
  45. })
  46. } else {
  47. uni.showToast({
  48. title: '请选择并勾选后开启',
  49. icon: 'none'
  50. })
  51. }
  52. }
  53. }
  54. }
  55. </script>
  56. <style lang="scss" scoped>
  57. .query {
  58. position: relative;
  59. bottom: -15vh;
  60. }
  61. .b-btn {
  62. width: 86%;
  63. display: flex;
  64. justify-content: space-between;
  65. padding-top: 20vh;
  66. .pre-btn {
  67. border: 4rpx solid #f1e0c6;
  68. padding: 16rpx 90rpx;
  69. border-radius: 66rpx;
  70. color: #e6bf7f;
  71. }
  72. .next-btn {
  73. background-image: url('../../static/image/home/btn.png');
  74. background-size: contain;
  75. background-repeat: no-repeat;
  76. background-position: center;
  77. width: 40vw;
  78. display: flex;
  79. align-items: center;
  80. justify-content: center;
  81. color: white;
  82. }
  83. }
  84. </style>