猫妈狗爸伴宠师小程序前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

100 lines
2.3 KiB

  1. <template>
  2. <view>
  3. <view class="flex-rowl">
  4. <image :src="configList.applet_logo.paramValueImage" mode="" class="logo"></image>
  5. <view class="size-36 fw700 color-fff">
  6. 伴宠师认证
  7. </view>
  8. </view>
  9. <view class="renz flex-rowl mt10">
  10. <text class="size-28 color-fff mr24">查看认证要求工作详情服务酬劳扥信息</text>
  11. <image src="@/static/images/ydd/more.png" mode=""></image>
  12. </view>
  13. <view class="neir bg-fff mt24">
  14. <view class="steps flex-between">
  15. <template v-for="(item, index) in steps" :key="`step-${index}`">
  16. <view v-if="index > 0" class="line" :class="[index < props.step ? 'is-active' : '']"></view>
  17. <view class="step flex-colc" :class="[index < props.step ? 'is-active' : '']">
  18. <view class="num mb6 flex-rowc size-26 color-fff">
  19. {{ index + 1 }}
  20. </view>
  21. <text class="size-22 desc">{{ item }}</text>
  22. </view>
  23. </template>
  24. </view>
  25. <view class="color-ffb size-22 mt32">
  26. {{ configList.pet_describe.paramValueText }}
  27. </view>
  28. </view>
  29. </view>
  30. </template>
  31. <script setup>
  32. import { reactive } from 'vue'
  33. import { store } from '@/store'
  34. const configList = store.state.system.configList
  35. const props = defineProps({
  36. step: {
  37. type: Number,
  38. default: 0,
  39. }
  40. })
  41. const steps = reactive(['基本考核', '培训考核', '最终准备'])
  42. </script>
  43. <style lang="scss" scoped>
  44. .logo {
  45. width: 194rpx;
  46. height: 70rpx;
  47. }
  48. .renz {
  49. image {
  50. width: 26rpx;
  51. height: 26rpx;
  52. }
  53. }
  54. .neir {
  55. padding: 47rpx 27rpx 36rpx 27rpx;
  56. border-radius: 16rpx;
  57. box-sizing: border-box;
  58. width: 716rpx;
  59. .steps {
  60. .line {
  61. width: 163rpx;
  62. height: 3rpx;
  63. background-color: #BDBDBD;
  64. margin-bottom: 30rpx;
  65. margin: 0 26rpx;
  66. }
  67. .num {
  68. width: 50rpx;
  69. height: 50rpx;
  70. background-color: #BDBDBD;
  71. border-radius: 50%;
  72. margin-bottom: 7rpx;
  73. }
  74. .desc {
  75. white-space: nowrap;
  76. color: #BDBDBD;
  77. }
  78. .line.is-active,
  79. .step.is-active .num {
  80. background-color: #FFBF60;
  81. }
  82. .step.is-active .desc {
  83. color: #000000;
  84. }
  85. }
  86. }
  87. </style>