training.vue 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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. onLoad((options) => {
  62. if (options.title) title.value = options.title;
  63. });
  64. const goBack = () => uni.navigateBack();
  65. const goToAssessment = () => {
  66. // 进入测评提醒页面,带上 source=training 参数以便在结果页识别
  67. uni.navigateTo({
  68. url: '/pages/assessment/remind?family=audit&source=training'
  69. });
  70. };
  71. </script>
  72. <style lang="scss" scoped>
  73. .container { min-height: 100vh; background-color: #F8F9FB; display: flex; flex-direction: column; }
  74. .status-bar { height: env(safe-area-inset-top); background: #FFF; }
  75. .nav-bar {
  76. height: 88rpx; background: #FFF; display: flex; align-items: center; justify-content: space-between; padding: 0 30rpx;
  77. .page-title { font-size: 34rpx; font-weight: bold; }
  78. .nav-left, .nav-right { width: 60rpx; }
  79. .back-icon { width: 40rpx; height: 40rpx; }
  80. }
  81. .content { padding: 120rpx 40rpx 40rpx; flex: 1; display: flex; flex-direction: column; }
  82. .success-header {
  83. display: flex; flex-direction: column; align-items: center; margin-bottom: 80rpx;
  84. .check-circle {
  85. width: 140rpx; height: 140rpx; background: #67C23A; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 30rpx;
  86. .css-check { width: 60rpx; height: 30rpx; border-left: 7rpx solid #fff; border-bottom: 7rpx solid #fff; transform: rotate(-45deg); margin-top:-10rpx;}
  87. }
  88. .success-title { font-size: 44rpx; font-weight: bold; color: #1A1A1A; margin-bottom: 16rpx; }
  89. .success-subtitle { font-size: 28rpx; color: #999; }
  90. }
  91. .training-card {
  92. background: #FFF; border-radius: 32rpx; padding: 40rpx; box-shadow: 0 4rpx 24rpx rgba(0,0,0,0.03); margin-bottom: 40rpx;
  93. .card-header {
  94. display: flex; justify-content: space-between; align-items: center; margin-bottom: 40rpx; padding-bottom: 30rpx; border-bottom: 1rpx solid #F0F0F0;
  95. .job-name { font-size: 36rpx; font-weight: bold; color: #1A1A1A; }
  96. .status-tag { background: #EBF2FF; color: #1F6CFF; font-size: 22rpx; padding: 6rpx 16rpx; border-radius: 30rpx; }
  97. }
  98. .step-list {
  99. display: flex; flex-direction: column; gap: 40rpx;
  100. .step-item {
  101. display: flex; align-items: center; position: relative;
  102. &::after { content: ''; position: absolute; left: 24rpx; top: 50rpx; bottom: -50rpx; width: 2rpx; background: #EEE; }
  103. &:last-child::after { display: none; }
  104. .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; }
  105. .step-info {
  106. flex: 1;
  107. .s-title { font-size: 28rpx; font-weight: bold; color: #333; display: block; margin-bottom: 4rpx; }
  108. .s-desc { font-size: 22rpx; color: #999; display: block; }
  109. }
  110. .step-status { font-size: 24rpx; color: #999; }
  111. &.active { .step-num { background: #E6F7FF; color: #1F6CFF; } .step-status { color: #1F6CFF; } }
  112. &.current { .step-num { background: #1F6CFF; color: #FFF; } .s-title { color: #1F6CFF; } }
  113. }
  114. }
  115. }
  116. .action-section {
  117. margin-top: 60rpx; display: flex; flex-direction: column; align-items: center;
  118. .start-btn {
  119. 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;
  120. box-shadow: 0 10rpx 20rpx rgba(31, 108, 255, 0.2);
  121. }
  122. .tip { font-size: 22rpx; color: #BBB; text-align: center; }
  123. }
  124. </style>