start.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <template>
  2. <view class="start">
  3. <view class="background"></view>
  4. <view class="popup">
  5. <view class="title">温馨提示</view>
  6. <scroll-view :scroll-y="true" class="content">
  7. <text>欢迎使用艺绘APP。我们非常重视您的用户权益和个人信息的保护,在您使用艺绘APP服务前,请认真阅读</text>
  8. <text class="money" @click="goUser">《用户协议》</text>
  9. <text>和</text>
  10. <text class="money" @click="goYs">《隐私政策》</text>
  11. <text>
  12. 全部条款。我们将通过上述协议向您说明我们如何为您提供服务并保障您的用户权益,
  13. 如何收集、使用、保存、共享和保护您的相关信息,以及我们为您提供的访问、更正、删除和申诉您信息相关问题的方式。
  14. 我们会严格按照您的授权,在上述协议约定的范围内收集、存储和使用您的注册信息、设备信息、位置信息、日志信息或其他经您授权的信息。
  15. 您点击“同意并继续”视为您已同意上述协议的全部内容
  16. </text>
  17. </scroll-view>
  18. <view class="button flex">
  19. <text class="disagree" @click="disagree">不同意</text>
  20. <text class="agree" @click="agree">同意并继续</text>
  21. </view>
  22. </view>
  23. </view>
  24. </template>
  25. <script>
  26. export default {
  27. data() {
  28. return {};
  29. },
  30. onLoad() {
  31. let agree = uni.getStorageSync('agree');
  32. if (agree) {
  33. uni.redirectTo({ url: '/pages/index/index' });
  34. }
  35. },
  36. methods: {
  37. //前往用户协议
  38. goUser() {
  39. uni.navigateTo({ url: './agreement' });
  40. },
  41. goYs() {
  42. uni.navigateTo({ url: './privacy' });
  43. },
  44. //不同意
  45. disagree() {
  46. plus.runtime.quit();
  47. },
  48. //同意
  49. agree() {
  50. uni.setStorageSync('agree', true);
  51. uni.switchTab({
  52. url: '/pages/index/index',
  53. success(e) {
  54. console.log(e);
  55. },
  56. fail(e) {
  57. console.log(e);
  58. }
  59. });
  60. }
  61. }
  62. };
  63. </script>
  64. <style lang="scss">
  65. .money {
  66. color: $base-color;
  67. }
  68. .disagree {
  69. padding: 10rpx 30rpx;
  70. font-size: 28rpx;
  71. width: 200rpx;
  72. height: 64rpx;
  73. color: $base-color;
  74. border-radius: 999rpx;
  75. border: 2rpx solid $base-color;
  76. }
  77. .agree {
  78. padding: 10rpx 30rpx;
  79. width: 210rpx;
  80. height: 64rpx;
  81. font-size: 28rpx;
  82. color: #fff;
  83. background-color: $base-color;
  84. border-radius: 999rpx;
  85. border: 2rpx solid $base-color;
  86. }
  87. .button {
  88. position: absolute;
  89. left: 0;
  90. right: 0;
  91. bottom: 0;
  92. z-index: 0;
  93. display: flex;
  94. padding: 24rpx;
  95. justify-content: center;
  96. text-align: center;
  97. justify-content: space-around;
  98. }
  99. .content {
  100. position: absolute;
  101. left: 0;
  102. right: 0;
  103. top: 100rpx;
  104. bottom: 120rpx;
  105. z-index: 0;
  106. font-size: 28rpx;
  107. padding: 0 50rpx;
  108. line-height: 44rpx;
  109. }
  110. .title {
  111. font-size: 36rpx;
  112. padding: 20rpx 50rpx;
  113. }
  114. .background {
  115. position: fixed;
  116. left: 0;
  117. right: 0;
  118. top: 0;
  119. bottom: 0;
  120. z-index: 0;
  121. background-color: rgba(0, 0, 0, 0.4);
  122. }
  123. .popup {
  124. position: absolute;
  125. z-index: 0;
  126. left: 50%;
  127. top: 50%;
  128. transform: translate(-50%, -50%);
  129. width: 600rpx;
  130. height: 700rpx;
  131. background-color: #fff;
  132. border-radius: 30rpx;
  133. }
  134. </style>