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.

99 lines
1.9 KiB

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/缺省.png" />
  17. <text class="tip">暂无内容~</text>
  18. </view>
  19. </template>
  20. <script setup>
  21. // 返回到 deepMate 页面
  22. const goBack = () => {
  23. uni.navigateTo({
  24. url: '/pages/deepMate/deepMate'
  25. });
  26. };
  27. </script>
  28. <style scoped>
  29. .blank-page {
  30. display: flex;
  31. flex-direction: column;
  32. position: fixed;
  33. /* 充满视口,彻底禁用页面滚动 */
  34. top: 0;
  35. left: 0;
  36. right: 0;
  37. bottom: 0;
  38. height: 100vh;
  39. overflow: hidden;
  40. /* 锁定页面滚动 */
  41. background-color: #ffffff;
  42. padding: 20rpx 0rpx;
  43. }
  44. .header {
  45. display: flex;
  46. justify-content: space-between;
  47. align-items: center;
  48. padding: 20rpx 30rpx;
  49. background-color: #ffffff;
  50. box-shadow: 0 2rpx rgba(0, 0, 0, 0.1);
  51. }
  52. .head-left {
  53. display: flex;
  54. align-items: center;
  55. }
  56. .back-button {
  57. width: 40rpx;
  58. height: 40rpx;
  59. }
  60. .header-center .title {
  61. position: fixed;
  62. top: 25rpx;
  63. left: 50%;
  64. transform: translateX(-50%);
  65. font-size: 36rpx;
  66. font-weight: bold;
  67. color: #333333;
  68. }
  69. .back-button:hover {
  70. background-color: #e0e0e0;
  71. }
  72. .back-button:active {
  73. transform: scale(0.95);
  74. }
  75. .back-icon {
  76. font-size: 32rpx;
  77. color: #333333;
  78. margin-right: 10rpx;
  79. }
  80. .picture {
  81. display: block;
  82. margin: 200rpx auto 0; /* 图片水平居中 */
  83. width: 60%;
  84. height: 600rpx;
  85. }
  86. .tip {
  87. color: #999999;
  88. font-size: 28rpx;
  89. text-align: center;
  90. margin-top: 20rpx;
  91. }
  92. </style>