handlesteps.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. <template>
  2. <!-- 审核状态 -->
  3. <view class="step">
  4. <!-- 每个步骤都分三种状态 审核成功--绿色、审核失败--红色、等待审核 -->
  5. <view class="step-item item-loading">
  6. <view class="dian dian-loading">
  7. </view>
  8. <view class="step-num">
  9. 第一步
  10. </view>
  11. <view class="step-name">
  12. 提交申请
  13. </view>
  14. </view>
  15. <!-- 待审核 -->
  16. <view class="step-item item-loading" >
  17. <view class="dian dian-loading">
  18. </view>
  19. <view class="step-num">
  20. 第二步
  21. </view>
  22. <view class="step-name">
  23. 信息技术学院审核
  24. </view>
  25. </view>
  26. <view class="step-item item-loading">
  27. <view class="dian dian-loading">
  28. </view>
  29. <view class="step-num">
  30. 第三步
  31. </view>
  32. <view class="step-name">
  33. 实验中心审核
  34. </view>
  35. </view>
  36. <view class="step-item item-loading" style="border-left: solid 2px #fff">
  37. <view class="dian dian-loading">
  38. </view>
  39. <view class="step-num">
  40. 第四步
  41. </view>
  42. <view class="step-text">
  43. 审核完成
  44. </view>
  45. </view>
  46. <view class="step-tips">
  47. <view class="tips-title">
  48. 审核注意事项
  49. </view>
  50. <view class="tips-text">
  51. <u-parse :html="tips"></u-parse>
  52. </view>
  53. </view>
  54. </view>
  55. </template>
  56. <script>
  57. export default {
  58. data() {
  59. return {
  60. stepDetail: '',
  61. tips: '',
  62. time: '',
  63. apply_name: ''
  64. }
  65. },
  66. onLoad(options) {
  67. this.getTips()
  68. },
  69. methods: {
  70. //获取注意事项
  71. getTips() {
  72. this.$u.get('/base/setting-key', {
  73. key: 'TINGTIAOKE_TIPS'
  74. }).then(res => {
  75. console.log(res, 'lll')
  76. this.tips = res.data.value
  77. })
  78. },
  79. }
  80. }
  81. </script>
  82. <style lang="scss" scoped>
  83. .step {
  84. padding: 20px;
  85. }
  86. .step-item {
  87. padding: 0 20px;
  88. padding-bottom: 20px;
  89. border-left: solid 2px #1ee50c;
  90. position: relative;
  91. }
  92. .dian {
  93. height: 10px;
  94. width: 10px;
  95. border-radius: 50%;
  96. background-color: #1ee50c;
  97. position: absolute;
  98. left: -6px;
  99. }
  100. .step-num {
  101. color: rgba(0, 0, 0, 0.65);
  102. margin-bottom: 8px;
  103. }
  104. .step-name {
  105. color: #000;
  106. font-weight: bold;
  107. font-size: 14px;
  108. margin-bottom: 5px;
  109. }
  110. .step-text {
  111. line-height: 23px;
  112. }
  113. .fail {
  114. color: red;
  115. }
  116. .loading {
  117. color: #1890ff;
  118. }
  119. .success {
  120. color: #13ce66;
  121. }
  122. .item-fail {
  123. border-left: solid 2px red;
  124. }
  125. .item-loading {
  126. border-left: solid 2px #c7cbda;
  127. }
  128. .item-success {
  129. border-left: solid 2px #13ce66;
  130. }
  131. .dian-fail {
  132. background-color: red;
  133. }
  134. .dian-loading {
  135. background-color: #c7cbda;
  136. }
  137. .dian-success {
  138. background-color: #13ce66;
  139. }
  140. .step-tips {
  141. padding-top: 20px;
  142. // background-color: #13ce66;
  143. }
  144. .tips-title {
  145. font-size: 14px;
  146. font-weight: 550;
  147. color: #000;
  148. font-weight: bold;
  149. margin-bottom: 10px;
  150. }
  151. .tips-text {
  152. border: solid 1px #e4e4e4;
  153. background-color: #f8f5fb;
  154. border-radius: 8px;
  155. line-height: 22px;
  156. font-weight: 400;
  157. padding: 5px;
  158. rich-text {
  159. line-height: 23px !important;
  160. }
  161. }
  162. </style>