developing.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. <template>
  2. <view class="developing-page">
  3. <view class="back-btn" @click="goBack">
  4. <text class="back-icon">←</text>
  5. <text class="back-text">返回</text>
  6. </view>
  7. <view class="content-wrapper">
  8. <view class="icon-wrapper">
  9. <text class="icon">🚧</text>
  10. </view>
  11. <text class="title">正在开发中</text>
  12. <text class="subtitle">功能即将上线,敬请期待</text>
  13. <view class="progress-bar">
  14. <view class="progress-inner"></view>
  15. </view>
  16. <text class="tip">我们正在努力为您打造更好的体验</text>
  17. </view>
  18. </view>
  19. </template>
  20. <script>
  21. export default {
  22. data() {
  23. return {};
  24. },
  25. onLoad() {},
  26. methods: {
  27. goBack() {
  28. uni.navigateBack({
  29. delta: 1,
  30. fail: () => {
  31. uni.switchTab({
  32. url: '/pages/index/index'
  33. });
  34. }
  35. });
  36. }
  37. }
  38. };
  39. </script>
  40. <style lang="scss" scoped>
  41. .developing-page {
  42. width: 100%;
  43. min-height: 100vh;
  44. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  45. display: flex;
  46. align-items: center;
  47. justify-content: center;
  48. position: relative;
  49. .back-btn {
  50. position: absolute;
  51. top: 60rpx;
  52. left: 40rpx;
  53. display: flex;
  54. align-items: center;
  55. padding: 16rpx 32rpx;
  56. background: rgba(255, 255, 255, 0.25);
  57. border-radius: 40rpx;
  58. backdrop-filter: blur(10rpx);
  59. .back-icon {
  60. font-size: 36rpx;
  61. color: #ffffff;
  62. margin-right: 8rpx;
  63. font-weight: bold;
  64. }
  65. .back-text {
  66. font-size: 28rpx;
  67. color: #ffffff;
  68. }
  69. &:active {
  70. background: rgba(255, 255, 255, 0.35);
  71. }
  72. }
  73. .content-wrapper {
  74. background: #ffffff;
  75. border-radius: 32rpx;
  76. padding: 80rpx 60rpx;
  77. text-align: center;
  78. box-shadow: 0 20rpx 60rpx rgba(0, 0, 0, 0.15);
  79. .icon-wrapper {
  80. width: 200rpx;
  81. height: 200rpx;
  82. margin: 0 auto 48rpx;
  83. background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  84. border-radius: 50%;
  85. display: flex;
  86. align-items: center;
  87. justify-content: center;
  88. animation: floatAnimation 3s ease-in-out infinite;
  89. .icon {
  90. font-size: 100rpx;
  91. line-height: 1;
  92. }
  93. }
  94. .title {
  95. display: block;
  96. font-size: 44rpx;
  97. font-weight: bold;
  98. color: #333333;
  99. margin-bottom: 24rpx;
  100. letter-spacing: 4rpx;
  101. }
  102. .subtitle {
  103. display: block;
  104. font-size: 28rpx;
  105. color: #666666;
  106. margin-bottom: 56rpx;
  107. }
  108. .progress-bar {
  109. width: 100%;
  110. height: 12rpx;
  111. background: #f0f0f0;
  112. border-radius: 6rpx;
  113. overflow: hidden;
  114. margin-bottom: 36rpx;
  115. .progress-inner {
  116. width: 65%;
  117. height: 100%;
  118. background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  119. border-radius: 6rpx;
  120. animation: progressAnimation 2s ease-in-out infinite alternate;
  121. }
  122. }
  123. .tip {
  124. display: block;
  125. font-size: 24rpx;
  126. color: #999999;
  127. line-height: 1.6;
  128. }
  129. }
  130. }
  131. @keyframes progressAnimation {
  132. from {
  133. width: 45%;
  134. }
  135. to {
  136. width: 85%;
  137. }
  138. }
  139. @keyframes floatAnimation {
  140. 0%,
  141. 100% {
  142. transform: translateY(0);
  143. }
  144. 50% {
  145. transform: translateY(-20rpx);
  146. }
  147. }
  148. </style>