xiuxi.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <template>
  2. <view class="page">
  3. <!-- <view class="code">
  4. <image src="../../static/code.png" mode=""></image>
  5. <text>扫描二维码,您的朋友也可以使用或下载哦~</text>
  6. </view> -->
  7. <view class="xy-list">
  8. <view class="list">
  9. <view class="title">青少年防沉迷提示</view>
  10. <view class="content">
  11. 你已进入青少年保护模式,为了保障充足的休息时间,你在每日晚22时至次日早6时期间无法使用本APP应用(萌创星球),另外你每日的使用时长仅限40分钟。
  12. </view>
  13. </view>
  14. </view>
  15. </view>
  16. </template>
  17. <script>
  18. export default {
  19. data() {
  20. return {
  21. showYong: false,
  22. showYongMode: false,
  23. myinfo: {}
  24. };
  25. },
  26. onLoad() {},
  27. onShow() {
  28. // this.loadInfo();
  29. },
  30. methods: {
  31. onBack() {},
  32. loadInfo() {
  33. let that = this;
  34. uni.request({
  35. url: this.$apiHost + '/My/idcheck',
  36. data: {
  37. uuid: getApp().globalData.uuid
  38. },
  39. header: {
  40. "content-type": "application/json",
  41. 'sign': getApp().globalData.headerSign
  42. },
  43. success: (res) => {
  44. console.log("----:", res.data);
  45. that.myinfo = res.data;
  46. if (that.myinfo.step < 9) {
  47. that.showYong = true;
  48. } else {
  49. that.showYong = false;
  50. if (res.data.age < 18) {
  51. that.showYongMode = true;
  52. }
  53. }
  54. },
  55. complete: (com) => {
  56. // uni.hideLoading();
  57. },
  58. fail: (e) => {
  59. console.log("----e:", e);
  60. }
  61. });
  62. },
  63. onGoGoGo() {
  64. let that = this;
  65. that.$refs['DialogBox'].confirm({
  66. title: '提示',
  67. content: '您还没有实名,请先去实名认证',
  68. DialogType: 'inquiry',
  69. btn1: '否',
  70. btn2: '是',
  71. animation: 0
  72. }).then((res) => {
  73. uni.navigateTo({
  74. url: '/pages/my/idcheck'
  75. })
  76. })
  77. }
  78. }
  79. }
  80. </script>
  81. <style scoped lang="scss">
  82. page {
  83. position: absolute;
  84. left: 0;
  85. top: 0;
  86. width: 100%;
  87. height: 100%;
  88. background-color: #161616;
  89. }
  90. .xy-list {
  91. padding: 0 4%;
  92. border-radius: 20rpx;
  93. margin: 20rpx auto;
  94. .list {
  95. display: flex;
  96. align-items: flex-start;
  97. justify-content: space-between;
  98. flex-direction: column;
  99. width: 100%;
  100. padding-bottom: 20rpx;
  101. padding-top: 10rpx;
  102. .title {
  103. color: #fff;
  104. width: 100%;
  105. text-align: center;
  106. }
  107. .content {
  108. display: flex;
  109. width: 100%;
  110. align-items: center;
  111. justify-content: center;
  112. padding-top: 280rpx;
  113. color: #ffffff;
  114. font-size: 26rpx;
  115. }
  116. }
  117. }
  118. .btn {
  119. position: fixed;
  120. bottom: 80rpx;
  121. left: 200rpx;
  122. width: 350rpx;
  123. height: 70rpx;
  124. background-color: #f0f0f0;
  125. border-radius: 70rpx;
  126. text-align: center;
  127. line-height: 70rpx;
  128. }
  129. </style>