| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243 |
- <template>
- <view class="container">
- <!-- 状态栏占位 -->
- <view class="status-bar" :style="{height: statusBarHeight}"></view>
-
- <!-- 顶部导航栏 -->
- <view class="header">
- <view class="back-btn" @click="goBack">
- <image src="@/static/image/back.png" mode="aspectFill"></image>
- </view>
- <view class="title">完成任务</view>
- <view class="header-right">
- <text class="more-icon">⋯</text>
- <text class="more-icon">○</text>
- </view>
- </view>
-
- <view class="content">
- <view class="success-content">
- <view class="success-icon-wrapper">
- <view class="success-icon">
- <text class="checkmark">✓</text>
- </view>
- <view class="success-ring ring1"></view>
- <view class="success-ring ring2"></view>
- <view class="decoration dot1"></view>
- <view class="decoration dot2"></view>
- <view class="decoration plus"></view>
- <view class="decoration dot3"></view>
- </view>
- <view class="success-text">任务已完成</view>
- </view>
-
- <view class="back-btn-large" @click="goBackToList">
- 返回任务列表
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- statusBarHeight: uni.getSystemInfoSync().statusBarHeight + 'px'
- }
- },
- methods: {
- goBack() {
- uni.navigateBack()
- },
- goBackToList() {
- uni.navigateBack({
- delta: 2
- })
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .container {
- min-height: 100vh;
- background: #fff;
- display: flex;
- flex-direction: column;
- }
- .status-bar {
- width: 100%;
- background: #fff;
- }
- .header {
- position: relative;
- height: 88rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- background: #fff;
- border-bottom: 1rpx solid #f0f0f0;
-
- .back-btn {
- position: absolute;
- left: 24rpx;
- width: 40rpx;
- height: 40rpx;
-
- image {
- width: 100%;
- height: 100%;
- }
- }
-
- .title {
- font-size: 36rpx;
- font-weight: bold;
- color: #333;
- }
-
- .header-right {
- position: absolute;
- right: 24rpx;
- display: flex;
- align-items: center;
- gap: 16rpx;
-
- .more-icon {
- font-size: 32rpx;
- color: #333;
- }
- }
- }
- .content {
- flex: 1;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- padding: 48rpx;
- }
- .success-content {
- display: flex;
- flex-direction: column;
- align-items: center;
- margin-bottom: 80rpx;
-
- .success-icon-wrapper {
- position: relative;
- width: 200rpx;
- height: 200rpx;
- margin-bottom: 48rpx;
-
- .success-icon {
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- width: 120rpx;
- height: 120rpx;
- background: #4CAF50;
- border-radius: 50%;
- display: flex;
- align-items: center;
- justify-content: center;
- z-index: 3;
-
- .checkmark {
- font-size: 80rpx;
- color: #fff;
- font-weight: bold;
- }
- }
-
- .success-ring {
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- border-radius: 50%;
- border: 2rpx solid rgba(76, 175, 80, 0.3);
-
- &.ring1 {
- width: 160rpx;
- height: 160rpx;
- z-index: 2;
- }
-
- &.ring2 {
- width: 200rpx;
- height: 200rpx;
- z-index: 1;
- }
- }
-
- .decoration {
- position: absolute;
-
- &.dot1 {
- top: 20rpx;
- left: 20rpx;
- width: 12rpx;
- height: 12rpx;
- background: rgba(76, 175, 80, 0.3);
- border-radius: 50%;
- }
-
- &.dot2 {
- top: 30rpx;
- right: 40rpx;
- width: 8rpx;
- height: 8rpx;
- background: #FFC107;
- border-radius: 50%;
- }
-
- &.plus {
- top: 10rpx;
- right: 20rpx;
- width: 16rpx;
- height: 16rpx;
- color: rgba(76, 175, 80, 0.3);
- font-size: 16rpx;
- }
-
- &.dot3 {
- bottom: 30rpx;
- right: 30rpx;
- width: 8rpx;
- height: 8rpx;
- background: #FFC107;
- border-radius: 50%;
- }
- }
- }
-
- .success-text {
- font-size: 36rpx;
- font-weight: bold;
- color: #333;
- }
- }
- .back-btn-large {
- width: 100%;
- max-width: 600rpx;
- height: 88rpx;
- background: #388BFF;
- border-radius: 44rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- font-size: 32rpx;
- color: #fff;
- font-weight: 500;
- }
- </style>
|