猫妈狗爸伴宠师小程序前端代码
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.

93 lines
2.1 KiB

  1. <template>
  2. <view>
  3. <view class="flex-rowl">
  4. <image src="@/static/images/ydd/logo.png" 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. 为保证喂养员认证顺利进行请认真填写并确保信息的真实性
  27. </view>
  28. </view>
  29. </view>
  30. </template>
  31. <script setup>
  32. import { reactive } from 'vue'
  33. const props = defineProps({
  34. step: {
  35. type: Number,
  36. default: 0,
  37. }
  38. })
  39. const steps = reactive(['基本考核', '培训考核', '最终准备'])
  40. </script>
  41. <style lang="scss" scoped>
  42. .logo {
  43. width: 194rpx;
  44. height: 70rpx;
  45. }
  46. .renz {
  47. image {
  48. width: 26rpx;
  49. height: 26rpx;
  50. }
  51. }
  52. .neir {
  53. padding: 47rpx 27rpx 36rpx 27rpx;
  54. border-radius: 16rpx;
  55. box-sizing: border-box;
  56. width: 716rpx;
  57. .steps {
  58. .line {
  59. width: 163rpx;
  60. height: 3rpx;
  61. background-color: #BDBDBD;
  62. margin-bottom: 30rpx;
  63. margin: 0 26rpx;
  64. }
  65. .num {
  66. width: 50rpx;
  67. height: 50rpx;
  68. background-color: #BDBDBD;
  69. border-radius: 50%;
  70. margin-bottom: 7rpx;
  71. }
  72. .desc {
  73. white-space: nowrap;
  74. }
  75. .line.is-active,
  76. .step.is-active .num {
  77. background-color: #FFBF60;
  78. }
  79. }
  80. }
  81. </style>