developing.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  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" v-if="!webUrl">
  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. <web-view :src="webUrl" v-else></web-view>
  19. </view>
  20. </template>
  21. <script>
  22. export default {
  23. data() {
  24. return {
  25. webUrl:''
  26. };
  27. },
  28. onLoad() {
  29. const session_key = uni.getStorageSync('session_key');
  30. if(session_key){
  31. this.webUrl = `https://ai.hnyfwlw.com/?token=${session_key}`
  32. }
  33. },
  34. methods: {
  35. goBack() {
  36. uni.navigateBack({
  37. delta: 1,
  38. fail: () => {
  39. uni.switchTab({
  40. url: '/pages/index/index'
  41. });
  42. }
  43. });
  44. }
  45. }
  46. };
  47. </script>
  48. <style lang="scss" scoped>
  49. .developing-page {
  50. width: 100%;
  51. min-height: 100vh;
  52. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  53. display: flex;
  54. align-items: center;
  55. justify-content: center;
  56. position: relative;
  57. .back-btn {
  58. position: absolute;
  59. top: 100rpx;
  60. left: 40rpx;
  61. display: flex;
  62. align-items: center;
  63. padding: 16rpx 32rpx;
  64. background: rgba(255, 255, 255, 0.25);
  65. border-radius: 40rpx;
  66. z-index: 10;
  67. backdrop-filter: blur(10rpx);
  68. .back-icon {
  69. font-size: 36rpx;
  70. color: #333;
  71. margin-right: 8rpx;
  72. font-weight: bold;
  73. }
  74. .back-text {
  75. font-size: 28rpx;
  76. color: #333;
  77. }
  78. &:active {
  79. background: rgba(255, 255, 255, 0.35);
  80. }
  81. }
  82. .content-wrapper {
  83. background: #ffffff;
  84. border-radius: 32rpx;
  85. padding: 80rpx 60rpx;
  86. text-align: center;
  87. box-shadow: 0 20rpx 60rpx rgba(0, 0, 0, 0.15);
  88. .icon-wrapper {
  89. width: 200rpx;
  90. height: 200rpx;
  91. margin: 0 auto 48rpx;
  92. background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  93. border-radius: 50%;
  94. display: flex;
  95. align-items: center;
  96. justify-content: center;
  97. animation: floatAnimation 3s ease-in-out infinite;
  98. .icon {
  99. font-size: 100rpx;
  100. line-height: 1;
  101. }
  102. }
  103. .title {
  104. display: block;
  105. font-size: 44rpx;
  106. font-weight: bold;
  107. color: #333333;
  108. margin-bottom: 24rpx;
  109. letter-spacing: 4rpx;
  110. }
  111. .subtitle {
  112. display: block;
  113. font-size: 28rpx;
  114. color: #666666;
  115. margin-bottom: 56rpx;
  116. }
  117. .progress-bar {
  118. width: 100%;
  119. height: 12rpx;
  120. background: #f0f0f0;
  121. border-radius: 6rpx;
  122. overflow: hidden;
  123. margin-bottom: 36rpx;
  124. .progress-inner {
  125. width: 65%;
  126. height: 100%;
  127. background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  128. border-radius: 6rpx;
  129. animation: progressAnimation 2s ease-in-out infinite alternate;
  130. }
  131. }
  132. .tip {
  133. display: block;
  134. font-size: 24rpx;
  135. color: #999999;
  136. line-height: 1.6;
  137. }
  138. }
  139. }
  140. @keyframes progressAnimation {
  141. from {
  142. width: 45%;
  143. }
  144. to {
  145. width: 85%;
  146. }
  147. }
  148. @keyframes floatAnimation {
  149. 0%,
  150. 100% {
  151. transform: translateY(0);
  152. }
  153. 50% {
  154. transform: translateY(-20rpx);
  155. }
  156. }
  157. </style>