withdrawSuccess.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. <template>
  2. <view class="container">
  3. <!-- 导航栏 -->
  4. <view class="navbar">
  5. <view class="nav-left" @click="goBack">
  6. <text class="back-icon"><</text>
  7. </view>
  8. <view class="nav-title">完成任务</view>
  9. <view class="nav-right">
  10. <text class="more-icon">...</text>
  11. <text class="eye-icon">O</text>
  12. </view>
  13. </view>
  14. <!-- 内容区域 -->
  15. <view class="content">
  16. <!-- 成功图标 -->
  17. <view class="success-icon-wrapper">
  18. <view class="success-icon">
  19. <view class="circle circle-outer"></view>
  20. <view class="circle circle-middle"></view>
  21. <view class="circle circle-inner">
  22. <text class="checkmark">✓</text>
  23. </view>
  24. <view class="decoration decoration-1">○</view>
  25. <view class="decoration decoration-2">·</view>
  26. <view class="decoration decoration-3">+</view>
  27. <view class="decoration decoration-4">·</view>
  28. </view>
  29. </view>
  30. <!-- 成功文字 -->
  31. <view class="success-title">已提交</view>
  32. <!-- 提示文字 -->
  33. <view class="success-tips">提现申请发起后,预计在3个工作日到账</view>
  34. </view>
  35. <!-- 底部按钮 -->
  36. <view class="bottom-bar">
  37. <view class="home-btn" @click="goHome">返回首页</view>
  38. </view>
  39. </view>
  40. </template>
  41. <script>
  42. export default {
  43. methods: {
  44. goBack() {
  45. uni.navigateBack()
  46. },
  47. goHome() {
  48. uni.switchTab({
  49. url: '/pages/home/index'
  50. })
  51. }
  52. }
  53. }
  54. </script>
  55. <style lang="scss" scoped>
  56. .container {
  57. min-height: 100vh;
  58. background: #fff;
  59. display: flex;
  60. flex-direction: column;
  61. }
  62. .navbar {
  63. display: flex;
  64. align-items: center;
  65. justify-content: space-between;
  66. padding: 20rpx 24rpx;
  67. background: #fff;
  68. border-bottom: 1rpx solid #f0f0f0;
  69. .nav-left {
  70. width: 60rpx;
  71. .back-icon {
  72. font-size: 36rpx;
  73. color: #333;
  74. font-weight: bold;
  75. }
  76. }
  77. .nav-title {
  78. flex: 1;
  79. text-align: center;
  80. font-size: 36rpx;
  81. font-weight: bold;
  82. color: #333;
  83. }
  84. .nav-right {
  85. display: flex;
  86. align-items: center;
  87. gap: 24rpx;
  88. width: 60rpx;
  89. justify-content: flex-end;
  90. .more-icon {
  91. font-size: 32rpx;
  92. color: #333;
  93. }
  94. .eye-icon {
  95. font-size: 32rpx;
  96. color: #333;
  97. }
  98. }
  99. }
  100. .content {
  101. flex: 1;
  102. display: flex;
  103. flex-direction: column;
  104. align-items: center;
  105. justify-content: center;
  106. padding: 80rpx 24rpx;
  107. }
  108. .success-icon-wrapper {
  109. position: relative;
  110. margin-bottom: 48rpx;
  111. .success-icon {
  112. position: relative;
  113. width: 240rpx;
  114. height: 240rpx;
  115. .circle {
  116. position: absolute;
  117. left: 50%;
  118. top: 50%;
  119. transform: translate(-50%, -50%);
  120. border-radius: 50%;
  121. &.circle-outer {
  122. width: 240rpx;
  123. height: 240rpx;
  124. background: rgba(82, 196, 26, 0.1);
  125. }
  126. &.circle-middle {
  127. width: 180rpx;
  128. height: 180rpx;
  129. background: rgba(82, 196, 26, 0.3);
  130. }
  131. &.circle-inner {
  132. width: 120rpx;
  133. height: 120rpx;
  134. background: #52C41A;
  135. display: flex;
  136. align-items: center;
  137. justify-content: center;
  138. .checkmark {
  139. font-size: 72rpx;
  140. color: #fff;
  141. font-weight: bold;
  142. line-height: 1;
  143. }
  144. }
  145. }
  146. .decoration {
  147. position: absolute;
  148. color: #FFC107;
  149. font-size: 32rpx;
  150. &.decoration-1 {
  151. left: 20rpx;
  152. top: 40rpx;
  153. color: rgba(82, 196, 26, 0.4);
  154. }
  155. &.decoration-2 {
  156. left: 40rpx;
  157. top: 20rpx;
  158. }
  159. &.decoration-3 {
  160. right: 40rpx;
  161. top: 20rpx;
  162. color: rgba(82, 196, 26, 0.4);
  163. }
  164. &.decoration-4 {
  165. right: 20rpx;
  166. top: 60rpx;
  167. }
  168. }
  169. }
  170. }
  171. .success-title {
  172. font-size: 48rpx;
  173. font-weight: bold;
  174. color: #333;
  175. margin-bottom: 32rpx;
  176. }
  177. .success-tips {
  178. font-size: 26rpx;
  179. color: #999;
  180. text-align: center;
  181. line-height: 1.8;
  182. }
  183. .bottom-bar {
  184. padding: 24rpx;
  185. background: #fff;
  186. border-top: 1rpx solid #f0f0f0;
  187. .home-btn {
  188. width: 100%;
  189. height: 88rpx;
  190. background: #388BFF;
  191. border-radius: 44rpx;
  192. display: flex;
  193. align-items: center;
  194. justify-content: center;
  195. font-size: 32rpx;
  196. font-weight: bold;
  197. color: #fff;
  198. }
  199. }
  200. </style>