training.vue 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. <template>
  2. <view class="container">
  3. <view class="status-bar"></view>
  4. <view class="nav-bar">
  5. <view class="nav-left" @click="goBack">
  6. <image src="/static/icons/back_black.svg" class="back-icon" mode="aspectFit"></image>
  7. </view>
  8. <text class="page-title">岗位培训测评</text>
  9. <view class="nav-right"></view>
  10. </view>
  11. <view class="content">
  12. <view class="success-header">
  13. <view class="check-circle">
  14. <view class="css-check"></view>
  15. </view>
  16. <text class="success-title">预约成功</text>
  17. <text class="success-subtitle">请按照提示步骤完成所有测评环节</text>
  18. </view>
  19. <view class="training-card">
  20. <view class="card-header">
  21. <text class="job-name">{{ title }}</text>
  22. <text class="status-tag">进行中</text>
  23. </view>
  24. <view class="step-list">
  25. <view class="step-item active">
  26. <view class="step-num">1</view>
  27. <view class="step-info">
  28. <text class="s-title">培训环节</text>
  29. <text class="s-desc">了解岗位职责与核心能力要求</text>
  30. </view>
  31. <view class="step-status">已完成</view>
  32. </view>
  33. <view class="step-item current">
  34. <view class="step-num">2</view>
  35. <view class="step-info">
  36. <text class="s-title">在线测评</text>
  37. <text class="s-desc">检验培训成果,获取能力值雷达图</text>
  38. </view>
  39. <view class="step-status">待开始</view>
  40. </view>
  41. <view class="step-item">
  42. <view class="step-num">3</view>
  43. <view class="step-info">
  44. <text class="s-title">测评报告生成</text>
  45. <text class="s-desc">全能力维度分析报告</text>
  46. </view>
  47. </view>
  48. </view>
  49. </view>
  50. <view class="action-section">
  51. <button class="start-btn" @click="goToAssessment">进入岗位测评</button>
  52. <text class="tip">由于该项目为专业测评,请确保预留30分钟不间断时间</text>
  53. </view>
  54. </view>
  55. </view>
  56. </template>
  57. <script setup>
  58. import { ref } from 'vue';
  59. import { onLoad } from '@dcloudio/uni-app';
  60. const title = ref('审计员一级');
  61. const assessmentId = ref('');
  62. onLoad((options) => {
  63. if (options.title) title.value = options.title;
  64. if (options.assessmentId) assessmentId.value = options.assessmentId;
  65. else if (options.id) assessmentId.value = options.id;
  66. });
  67. const goBack = () => uni.navigateBack();
  68. const goToAssessment = () => {
  69. // 进入测评提醒页面,带上 source=training 参数以便在结果页识别
  70. uni.navigateTo({
  71. url: `/pages/assessment/remind?family=audit&source=training&id=${assessmentId.value}`
  72. });
  73. };
  74. </script>
  75. <style lang="scss" scoped>
  76. .container { min-height: 100vh; background-color: #F8F9FB; display: flex; flex-direction: column; }
  77. .status-bar { height: env(safe-area-inset-top); background: #FFF; }
  78. .nav-bar {
  79. height: 88rpx; background: #FFF; display: flex; align-items: center; justify-content: space-between; padding: 0 30rpx;
  80. .page-title { font-size: 34rpx; font-weight: bold; }
  81. .nav-left, .nav-right { width: 60rpx; }
  82. .back-icon { width: 40rpx; height: 40rpx; }
  83. }
  84. .content { padding: 120rpx 40rpx 40rpx; flex: 1; display: flex; flex-direction: column; }
  85. .success-header {
  86. display: flex; flex-direction: column; align-items: center; margin-bottom: 80rpx;
  87. .check-circle {
  88. width: 140rpx; height: 140rpx; background: #67C23A; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 30rpx;
  89. .css-check { width: 60rpx; height: 30rpx; border-left: 7rpx solid #fff; border-bottom: 7rpx solid #fff; transform: rotate(-45deg); margin-top:-10rpx;}
  90. }
  91. .success-title { font-size: 44rpx; font-weight: bold; color: #1A1A1A; margin-bottom: 16rpx; }
  92. .success-subtitle { font-size: 28rpx; color: #999; }
  93. }
  94. .training-card {
  95. background: #FFF; border-radius: 32rpx; padding: 40rpx; box-shadow: 0 4rpx 24rpx rgba(0,0,0,0.03); margin-bottom: 40rpx;
  96. .card-header {
  97. display: flex; justify-content: space-between; align-items: center; margin-bottom: 40rpx; padding-bottom: 30rpx; border-bottom: 1rpx solid #F0F0F0;
  98. .job-name { font-size: 36rpx; font-weight: bold; color: #1A1A1A; }
  99. .status-tag { background: #EBF2FF; color: #1F6CFF; font-size: 22rpx; padding: 6rpx 16rpx; border-radius: 30rpx; }
  100. }
  101. .step-list {
  102. display: flex; flex-direction: column; gap: 40rpx;
  103. .step-item {
  104. display: flex; align-items: center; position: relative;
  105. &::after { content: ''; position: absolute; left: 24rpx; top: 50rpx; bottom: -50rpx; width: 2rpx; background: #EEE; }
  106. &:last-child::after { display: none; }
  107. .step-num { width: 48rpx; height: 48rpx; border-radius: 50%; background: #EEE; color: #999; display: flex; align-items: center; justify-content: center; font-size: 24rpx; font-weight: bold; margin-right: 30rpx; z-index: 1; }
  108. .step-info {
  109. flex: 1;
  110. .s-title { font-size: 28rpx; font-weight: bold; color: #333; display: block; margin-bottom: 4rpx; }
  111. .s-desc { font-size: 22rpx; color: #999; display: block; }
  112. }
  113. .step-status { font-size: 24rpx; color: #999; }
  114. &.active { .step-num { background: #E6F7FF; color: #1F6CFF; } .step-status { color: #1F6CFF; } }
  115. &.current { .step-num { background: #1F6CFF; color: #FFF; } .s-title { color: #1F6CFF; } }
  116. }
  117. }
  118. }
  119. .action-section {
  120. margin-top: 60rpx; display: flex; flex-direction: column; align-items: center;
  121. .start-btn {
  122. width: 100%; height: 100rpx; background: #1F6CFF; color: #FFF; border-radius: 50rpx; font-size: 32rpx; font-weight: bold; display: flex; align-items: center; justify-content: center; margin-bottom: 30rpx;
  123. box-shadow: 0 10rpx 20rpx rgba(31, 108, 255, 0.2);
  124. }
  125. .tip { font-size: 22rpx; color: #BBB; text-align: center; }
  126. }
  127. </style>