123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141 |
- <template>
- <view class="success-container">
- <view class="success-icon">
- <image src="http://121.36.251.245:9000/minlong/ze-certificate%201%401x.png" mode="aspectFit"></image>
- </view>
- <view class="success-title">恭喜完成全部检测</view>
-
- <view class="check-list">
- <view class="check-item" v-for="(item, index) in checkItems" :key="index">
- <view class="check-index">{{index + 1}}</view>
- <view class="check-name">{{item.name}}</view>
- <view class="check-status">{{item.status}}</view>
- </view>
- </view>
-
- <view class="button-group">
- <button class="btn-retake" @click="retake">重拍</button>
- <button class="btn-next" @click="goNext">下一步</button>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- checkItems: [
- { name: '左手手心', status: '动作检测成功' },
- { name: '左手手背', status: '动作检测成功' },
- { name: '左手握拳', status: '动作检测成功' },
- { name: '右手手心', status: '动作检测成功' },
- { name: '右手手背', status: '动作检测成功' },
- { name: '右手握拳', status: '动作检测成功' }
- ]
- }
- },
- methods: {
- retake() {
- // 返回到拍照页面
- uni.navigateBack();
- },
- goNext() {
- // 进入下一步
- uni.navigateTo({
- url: '/pages/success/success'
- });
- }
- }
- }
- </script>
- <style>
- .success-container {
- display: flex;
- flex-direction: column;
- align-items: center;
- padding: 40rpx 30rpx;
- }
- .success-icon {
- margin-top: 162rpx;
- width: 160rpx;
- height: 160rpx;
- }
- .success-icon image {
- width: 100%;
- height: 100%;
- }
- .success-title {
- font-size: 36rpx;
- font-weight: bold;
- margin: 30rpx 0 50rpx;
- }
- .check-list {
- width: 100%;
- margin-bottom: 60rpx;
- display: flex;
- flex-direction: column;
- align-content: center;
- flex-wrap: wrap;
- }
- .check-item {
- display: flex;
- align-items: center;
- margin-bottom: 20rpx;
- }
- .check-index {
- width: 40rpx;
- height: 40rpx;
- border-radius: 50%;
- background-color: #f0f0f0;
- color: #999;
- display: flex;
- justify-content: center;
- align-items: center;
- font-size: 24rpx;
- margin-right: 20rpx;
- }
- .check-name {
- margin-right: 20px;
- font-size: 28rpx;
- color: #333;
- }
- .check-status {
- font-size: 28rpx;
- color: #67c23a;
- }
- .button-group {
- display: flex;
- width: 100%;
- justify-content: space-between;
- margin-top: 240rpx;
- }
- .btn-retake, .btn-next {
- width: 45%;
- height: 80rpx;
- line-height: 80rpx;
- text-align: center;
- border-radius: 8rpx;
- }
- .btn-retake {
- background-color: #f5f5f5;
- color: #333;
- border: 1px solid #ddd;
- }
- .btn-next {
- background-color: #003399;
- color: #fff;
- }
- </style>
|