teenagePopUpWindow.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <template>
  2. <CustomPopup ref="customPopup">
  3. <view class="customerService">
  4. <image src="../../static/me/qingshaonianmoshi.png"></image>
  5. <view class="text-title">青少年模式</view>
  6. <view class="text-content">为呵护未成年人健康成长,萌创星球推出青少年模式,该模式下部分功能将无法正常使用。请监护人主动选择,并设置监护密码。</view>
  7. <view class="text-link" @click="goPage()">关闭青少年模式 ></view>
  8. <view class="btn-box" @click="close()">知道了</view>
  9. </view>
  10. </CustomPopup>
  11. </template>
  12. <script>
  13. import CustomPopup from '@/components/CustomPopup/CustomPopup.vue'
  14. export default {
  15. components: { CustomPopup },
  16. methods: {
  17. open() {
  18. this.$refs.customPopup.open();
  19. },
  20. close() {
  21. this.$refs.customPopup.close();
  22. },
  23. goPage(){
  24. this.$refs.customPopup.close();
  25. uni.$emit('check_login', () => {
  26. uni.navigateTo({
  27. url: '/pages/my/adolescent'
  28. })
  29. })
  30. }
  31. }
  32. }
  33. </script>
  34. <style scoped lang="scss">
  35. .customerService {
  36. width: 600rpx;
  37. height: 750rpx;
  38. background: #ffffff;
  39. border-radius: 14rpx;
  40. padding: 30rpx 70rpx;
  41. display: flex;
  42. align-items: center;
  43. justify-content: center;
  44. flex-direction: column;
  45. image {
  46. width: 236rpx;
  47. height: 236rpx;
  48. }
  49. .text-title {
  50. padding-top: 28rpx;
  51. font-family: 'PingFang SC-Bold';
  52. font-weight: 400;
  53. font-size: 36rpx;
  54. color: #1F1F1F;
  55. }
  56. .text-content {
  57. padding: 20rpx 0;
  58. font-weight: 400;
  59. font-size: 28rpx;
  60. color: #999999;
  61. font-family: 'PingFang SC-Medium';
  62. }
  63. .text-link{
  64. font-weight: 400;
  65. font-size: 32rpx;
  66. color: #0084FF;
  67. }
  68. .btn-box {
  69. background: #1F1F1F;
  70. color: #fff;
  71. margin: 0 auto;
  72. width: 244rpx;
  73. height: 72rpx;
  74. font-size: 32rpx;
  75. font-family: 'PingFang SC-Bold';
  76. background: #1F1F1F;
  77. border-radius: 12rpx;
  78. display: flex;
  79. align-items: center;
  80. justify-content: center;
  81. margin-top: 20rpx;
  82. }
  83. }
  84. </style>