teenagePopUpWindow.vue 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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.navigateTo({
  26. url: '/pages/my/adolescent'
  27. })
  28. }
  29. }
  30. }
  31. </script>
  32. <style scoped lang="scss">
  33. .customerService {
  34. width: 600rpx;
  35. height: 750rpx;
  36. background: #ffffff;
  37. border-radius: 14rpx;
  38. padding: 30rpx 70rpx;
  39. display: flex;
  40. align-items: center;
  41. justify-content: center;
  42. flex-direction: column;
  43. image {
  44. width: 236rpx;
  45. height: 236rpx;
  46. }
  47. .text-title {
  48. padding-top: 28rpx;
  49. font-family: 'PingFang SC-Bold';
  50. font-weight: 400;
  51. font-size: 36rpx;
  52. color: #1F1F1F;
  53. }
  54. .text-content {
  55. padding: 20rpx 0;
  56. font-weight: 400;
  57. font-size: 28rpx;
  58. color: #999999;
  59. font-family: 'PingFang SC-Medium';
  60. }
  61. .text-link{
  62. font-weight: 400;
  63. font-size: 32rpx;
  64. color: #0084FF;
  65. }
  66. .btn-box {
  67. background: #1F1F1F;
  68. color: #fff;
  69. margin: 0 auto;
  70. width: 244rpx;
  71. height: 72rpx;
  72. font-size: 32rpx;
  73. font-family: 'PingFang SC-Bold';
  74. background: #1F1F1F;
  75. border-radius: 12rpx;
  76. display: flex;
  77. align-items: center;
  78. justify-content: center;
  79. margin-top: 20rpx;
  80. }
  81. }
  82. </style>