developing.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  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. backdrop-filter: blur(10rpx);
  67. .back-icon {
  68. font-size: 36rpx;
  69. color: #333;
  70. margin-right: 8rpx;
  71. font-weight: bold;
  72. }
  73. .back-text {
  74. font-size: 28rpx;
  75. color: #333;
  76. }
  77. &:active {
  78. background: rgba(255, 255, 255, 0.35);
  79. }
  80. }
  81. .content-wrapper {
  82. background: #ffffff;
  83. border-radius: 32rpx;
  84. padding: 80rpx 60rpx;
  85. text-align: center;
  86. box-shadow: 0 20rpx 60rpx rgba(0, 0, 0, 0.15);
  87. .icon-wrapper {
  88. width: 200rpx;
  89. height: 200rpx;
  90. margin: 0 auto 48rpx;
  91. background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  92. border-radius: 50%;
  93. display: flex;
  94. align-items: center;
  95. justify-content: center;
  96. animation: floatAnimation 3s ease-in-out infinite;
  97. .icon {
  98. font-size: 100rpx;
  99. line-height: 1;
  100. }
  101. }
  102. .title {
  103. display: block;
  104. font-size: 44rpx;
  105. font-weight: bold;
  106. color: #333333;
  107. margin-bottom: 24rpx;
  108. letter-spacing: 4rpx;
  109. }
  110. .subtitle {
  111. display: block;
  112. font-size: 28rpx;
  113. color: #666666;
  114. margin-bottom: 56rpx;
  115. }
  116. .progress-bar {
  117. width: 100%;
  118. height: 12rpx;
  119. background: #f0f0f0;
  120. border-radius: 6rpx;
  121. overflow: hidden;
  122. margin-bottom: 36rpx;
  123. .progress-inner {
  124. width: 65%;
  125. height: 100%;
  126. background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  127. border-radius: 6rpx;
  128. animation: progressAnimation 2s ease-in-out infinite alternate;
  129. }
  130. }
  131. .tip {
  132. display: block;
  133. font-size: 24rpx;
  134. color: #999999;
  135. line-height: 1.6;
  136. }
  137. }
  138. }
  139. @keyframes progressAnimation {
  140. from {
  141. width: 45%;
  142. }
  143. to {
  144. width: 85%;
  145. }
  146. }
  147. @keyframes floatAnimation {
  148. 0%,
  149. 100% {
  150. transform: translateY(0);
  151. }
  152. 50% {
  153. transform: translateY(-20rpx);
  154. }
  155. }
  156. </style>