adolescent.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <template>
  2. <view>
  3. <PageHeader title="" class="PageHeader">
  4. <template slot="center">
  5. 青少年模式
  6. </template>
  7. </PageHeader>
  8. <view class="content-box">
  9. <view class="umbrella-box">
  10. <image class="umbrella" src="../../static/me/qingshaonianmoshi.png"></image>
  11. </view>
  12. <view class="textBox">
  13. <view class="teenageMode">
  14. <view class="title">
  15. 青少年模式
  16. <view class="switchMode active" v-if="true">已开启</view>
  17. <view class="switchMode " v-else>未开启</view>
  18. </view>
  19. <view class="prompt">
  20. 此模式下部分功能无法使用,且会带来以下限制
  21. </view>
  22. </view>
  23. <view class="textList">
  24. <view class="textItem">·青少年模式下,将不支持充值、订阅会员功</view>
  25. <view class="textItem">·每日22时至次日8时,期间无法使用本应</view>
  26. <view class="textItem">·未成年人每日可使用40分</view>
  27. </view>
  28. </view>
  29. <view class="bottm-box">
  30. <view class="button">开启青少年模式</view>
  31. <view class="button">退出青少年模式</view>
  32. <view class="setPassword">修改密码</view>
  33. </view>
  34. </view>
  35. </view>
  36. </template>
  37. <script>
  38. export default {
  39. data() {
  40. return {
  41. }
  42. },
  43. methods: {
  44. }
  45. }
  46. </script>
  47. <style lang="scss">
  48. page {
  49. background: url("../../static/me/wd_bg_bianjiziliao.png") top center/ 100% auto no-repeat,
  50. #f2f6f2;
  51. }
  52. .PageHeader {
  53. background: url("../../static/me/wd_bg_bianjiziliao.png") center top / 100% auto no-repeat,
  54. #f2f6f2;
  55. background-position-y: var(--status-bar-height);
  56. }
  57. .content-box {
  58. padding-top: calc(210rpx + var(--status-bar-height));
  59. .umbrella-box {
  60. padding-bottom: 96rpx;
  61. display: flex;
  62. align-items: center;
  63. justify-content: center;
  64. .umbrella {
  65. width: 364rpx;
  66. height: 364rpx;
  67. }
  68. }
  69. .textBox {
  70. padding: 0 40rpx;
  71. .teenageMode {
  72. display: flex;
  73. align-items: center;
  74. justify-content: center;
  75. flex-direction: column;
  76. .title {
  77. display: flex;
  78. align-items: center;
  79. justify-content: center;
  80. font-weight: 400;
  81. font-size: 36rpx;
  82. font-family: 'PingFang SC-Bold';
  83. color: #1F1F1F;
  84. position: relative;
  85. left: 0;
  86. top: 0;
  87. .switchMode {
  88. position: absolute;
  89. right: -95rpx;
  90. top: 50%;
  91. transform: translateY(-50%);
  92. width: 80rpx;
  93. height: 36rpx;
  94. font-weight: 400;
  95. font-size: 20rpx;
  96. color: #999999;
  97. background: url(../../static/me/text-bg.png) center top / 100% auto no-repeat;
  98. display: flex;
  99. align-items: center;
  100. justify-content: center;
  101. &.active{
  102. background: url(../../static/me/text-bg-active.png) center top / 100% auto no-repeat;
  103. color: #8BB849;
  104. }
  105. }
  106. }
  107. }
  108. }
  109. }
  110. </style>