- <template>
- <view>
- <view class="flex-rowl">
- <image :src="configList.applet_logo.paramValueImage" class="logo"></image>
- <view class="size-36 fw700 color-fff"
- style="margin-left: 20rpx;">
- 伴宠师认证
- </view>
- </view>
- <view class="renz flex-rowl mt10"
- @click="$refs.configPopupRef.open('certificationRequirements')">
- <text class="size-28 color-fff mr24">查看认证要求,工作详情,服务酬劳扥信息</text>
- <image src="@/static/images/ydd/more.png" mode=""></image>
- </view>
- <view class="neir bg-fff mt24">
- <view class="steps flex-between">
- <template v-for="(item, index) in steps" :key="`step-${index}`">
- <view v-if="index > 0" class="line" :class="[index < props.step ? 'is-active' : '']"></view>
- <view class="step flex-colc" :class="[index < props.step ? 'is-active' : '']"
- @click="toPath(item)">
- <view class="num mb6 flex-rowc size-26 color-fff">
- {{ index + 1 }}
- </view>
- <text class="size-22 desc">{{ item.name }}</text>
- </view>
- </template>
- </view>
- <view class="color-ffb size-22 mt32">
- {{ configList.pet_describe.paramValueText }}
- </view>
- </view>
-
- <configPopup ref="configPopupRef" />
- </view>
- </template>
-
- <script setup>
- import {
- reactive,
- ref
- } from 'vue'
- import {
- store
- } from '@/store'
-
- import configPopup from '@/components/configPopup.vue'
-
- const configPopupRef = ref(null)
-
- const configList = store.state.system.configList
-
- const props = defineProps({
- step: {
- type: Number,
- default: 0,
- }
- })
-
- const steps = reactive([
- {
- name : '基本考核',
- path : '/otherPages/authentication/list/index',
- },
- {
- name : '培训考核',
- path : '/otherPages/authentication/examination/baseCompleted',
- },
- {
- name : '最终准备',
- // path : '/otherPages/authentication/examination/baseCompleted',
- },
- ])
-
- function toPath(item){
- if(item.path){
- uni.redirectTo({
- url: item.path
- })
- }
- }
-
- </script>
-
- <style lang="scss" scoped>
- .logo {
- width: 194rpx;
- height: 70rpx;
- }
-
- .renz {
-
- image {
- width: 26rpx;
- height: 26rpx;
- }
- }
-
- .neir {
- padding: 47rpx 27rpx 36rpx 27rpx;
- border-radius: 16rpx;
- box-sizing: border-box;
- width: 716rpx;
-
- .steps {
- .line {
- width: 163rpx;
- height: 3rpx;
- background-color: #BDBDBD;
- margin-bottom: 30rpx;
- margin: 0 26rpx;
- }
-
- .num {
- width: 50rpx;
- height: 50rpx;
- background-color: #BDBDBD;
- border-radius: 50%;
- margin-bottom: 7rpx;
- }
-
- .desc {
- white-space: nowrap;
- color: #BDBDBD;
- }
-
- .line.is-active,
- .step.is-active .num {
- background-color: #FFBF60;
- }
-
- .step.is-active .desc {
- color: #000000;
- }
- }
- }
- </style>
|