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

81 lines
3.3 KiB

<template>
<view class="notice">
<uni-section title="选择的宠物类型" type="line" titleFontSize="32rpx"></uni-section>
<u-cell>
<template #label>
<uni-data-checkbox mode="button" multiple v-model="type" :localdata="typeData"></uni-data-checkbox>
</template>
</u-cell>
<uni-section title="考试说明" type="line" titleFontSize="32rpx"></uni-section>
<u-cell>
<template #label>
<view class="line-h200">1题目类型单选题</view>
<view class="line-h200">2题目数量34</view>
<view class="line-h200">3通过要求准确率100%</view>
<view class="line-h200">4考核内容</view>
<view class="line-h200">
个人经验10本部分是基于平台对于伴宠师入驻门槛条件的问题审核需要完全符合否则考试将直接失败
</view>
<view class="line-h200">
养宠理念及常识30本部分是对伴宠师养宠经验及理念的基础考核均为单选题大多是科学养宠所涉及的常识题以客观事实判定标准答案
</view>
</template>
</u-cell>
<uni-section title="考试注意事项" type="line" titleFontSize="32rpx"></uni-section>
<u-cell>
<template #label>
<view class="line-h200">1关注家养宠物不考虑流浪动物散养等特殊情况</view>
<view class="line-h200">
2所以题目适用于家养宠物暂不考虑经过训练的宠物流浪猫狗小部分习惯习性差异较大的特殊情况
</view>
<view class="line-h200">3仅有3次考核机会如未通过将无法再考核入驻</view>
<view class="line-h200">
4为保证猫妈狗爸平台的服务质量需要对伴宠师进行严格筛选所以每位伴宠师的答题次数仅3次3次内回答准确率达标1次即可通过均未达标则无法再次答题需等待半年后再次认证
</view>
<view class="line-h200">5系统不会给出错误提示请自行检查</view>
</template>
</u-cell>
</view>
<submitBut text="开始考试" @click="handleClick" :disabled="(sumNum - answerCount) < 1">
<template #tips>
<view class="tips-sum">剩余考试机会
<text>{{ sumNum - answerCount }}</text>
</view>
</template>
</submitBut>
</template>
<script setup>
import {ref} from "vue";
import {onShow} from '@dcloudio/uni-app'
import submitBut from "../../../components/submitBut/index.vue"
import tab from "@/plugins/tab";
import {getStorage} from "../../../utils/auth";
import modal from "../../../plugins/modal";
onShow(() => {
answerCount.value = getStorage("userInfo").answerCount
console.log(answerCount.value);
})
const type = getStorage("userInfo")?.petType?.split(',')
const sumNum = ref(3)
const answerCount = ref(0)
const typeData = ref(
[
{value: '1', text: "猫咪", disable: true},
{value: '2', text: "狗狗", disable: true},
{value: '3', text: "异宠", disable: true}
]
)
const handleClick = () => {
if (sumNum.value - answerCount.value > 0) {
tab.navigateTo("/otherPages/workbenchManage/startExam/index")
} else {
modal.msg("考试机会已用完")
}
}
</script>
<style scoped lang="scss">
@import "index";
</style>