You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

98 lines
1.9 KiB

4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
  1. <template>
  2. <view class="blank-page">
  3. <view class="header" :style="{ paddingTop: safeAreaInsets?.top + 'px' }">
  4. <!-- 返回按钮 -->
  5. <view class="head-left">
  6. <image class="back-button" @click="goBack" src="/static/icons/Left.png">
  7. <!-- <text class="tip">当前特斯拉该如何布局</text> -->
  8. </image>
  9. </view>
  10. <view class="header-center">
  11. <text class="title" :style="{ paddingTop: safeAreaInsets?.top + 'px' }"
  12. >消息推送通知</text
  13. >
  14. </view>
  15. </view>
  16. <image class="picture" src="/static/images/blank.png" />
  17. <text class="tip">暂无内容~</text>
  18. </view>
  19. </template>
  20. <script setup>
  21. // 返回到 deepMate 页面
  22. const goBack = () => {
  23. // 返回上一页,避免新开页面造成堆叠
  24. uni.navigateBack({ delta: 1 })
  25. };
  26. </script>
  27. <style scoped>
  28. .blank-page {
  29. display: flex;
  30. flex-direction: column;
  31. position: fixed;
  32. /* 充满视口,彻底禁用页面滚动 */
  33. top: 0;
  34. left: 0;
  35. right: 0;
  36. bottom: 0;
  37. height: 100vh;
  38. overflow: hidden;
  39. /* 锁定页面滚动 */
  40. background-color: #ffffff;
  41. padding: 20rpx 0rpx;
  42. }
  43. .header {
  44. display: flex;
  45. justify-content: space-between;
  46. align-items: center;
  47. padding: 20rpx 30rpx;
  48. background-color: #ffffff;
  49. box-shadow: 0 2rpx rgba(0, 0, 0, 0.1);
  50. }
  51. .head-left {
  52. display: flex;
  53. align-items: center;
  54. }
  55. .back-button {
  56. width: 40rpx;
  57. height: 40rpx;
  58. }
  59. .header-center .title {
  60. position: fixed;
  61. top: 25rpx;
  62. left: 50%;
  63. transform: translateX(-50%);
  64. font-size: 36rpx;
  65. font-weight: bold;
  66. color: #333333;
  67. }
  68. .back-button:hover {
  69. background-color: #e0e0e0;
  70. }
  71. .back-button:active {
  72. transform: scale(0.95);
  73. }
  74. .back-icon {
  75. font-size: 32rpx;
  76. color: #333333;
  77. margin-right: 10rpx;
  78. }
  79. .picture {
  80. display: block;
  81. margin: 200rpx auto 0; /* 图片水平居中 */
  82. width: 60%;
  83. height: 600rpx;
  84. }
  85. .tip {
  86. color: #999999;
  87. font-size: 28rpx;
  88. text-align: center;
  89. margin-top: 20rpx;
  90. }
  91. </style>