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

80 lines
3.3 KiB

  1. <template>
  2. <view class="notice">
  3. <uni-section title="选择的宠物类型" type="line" titleFontSize="32rpx"></uni-section>
  4. <u-cell>
  5. <template #label>
  6. <uni-data-checkbox mode="button" multiple v-model="type" :localdata="typeData"></uni-data-checkbox>
  7. </template>
  8. </u-cell>
  9. <uni-section title="考试说明" type="line" titleFontSize="32rpx"></uni-section>
  10. <u-cell>
  11. <template #label>
  12. <view class="line-h200">1题目类型单选题</view>
  13. <view class="line-h200">2题目数量34</view>
  14. <view class="line-h200">3通过要求准确率100%</view>
  15. <view class="line-h200">4考核内容</view>
  16. <view class="line-h200">
  17. 个人经验10本部分是基于平台对于伴宠师入驻门槛条件的问题审核需要完全符合否则考试将直接失败
  18. </view>
  19. <view class="line-h200">
  20. 养宠理念及常识30本部分是对伴宠师养宠经验及理念的基础考核均为单选题大多是科学养宠所涉及的常识题以客观事实判定标准答案
  21. </view>
  22. </template>
  23. </u-cell>
  24. <uni-section title="考试注意事项" type="line" titleFontSize="32rpx"></uni-section>
  25. <u-cell>
  26. <template #label>
  27. <view class="line-h200">1关注家养宠物不考虑流浪动物散养等特殊情况</view>
  28. <view class="line-h200">
  29. 2所以题目适用于家养宠物暂不考虑经过训练的宠物流浪猫狗小部分习惯习性差异较大的特殊情况
  30. </view>
  31. <view class="line-h200">3仅有3次考核机会如未通过将无法再考核入驻</view>
  32. <view class="line-h200">
  33. 4为保证猫妈狗爸平台的服务质量需要对伴宠师进行严格筛选所以每位伴宠师的答题次数仅3次3次内回答准确率达标1次即可通过均未达标则无法再次答题需等待半年后再次认证
  34. </view>
  35. <view class="line-h200">5系统不会给出错误提示请自行检查</view>
  36. </template>
  37. </u-cell>
  38. </view>
  39. <submitBut text="开始考试" @click="handleClick" :disabled="(sumNum - answerCount) < 1">
  40. <template #tips>
  41. <view class="tips-sum">剩余考试机会
  42. <text>{{ sumNum - answerCount }}</text>
  43. </view>
  44. </template>
  45. </submitBut>
  46. </template>
  47. <script setup>
  48. import {ref} from "vue";
  49. import {onShow} from '@dcloudio/uni-app'
  50. import submitBut from "../../../components/submitBut/index.vue"
  51. import tab from "@/plugins/tab";
  52. import {getStorage} from "../../../utils/auth";
  53. import modal from "../../../plugins/modal";
  54. onShow(() => {
  55. answerCount.value = getStorage("userInfo").answerCount
  56. console.log(answerCount.value);
  57. })
  58. const type = getStorage("userInfo")?.petType?.split(',')
  59. const sumNum = ref(3)
  60. const answerCount = ref(0)
  61. const typeData = ref(
  62. [
  63. {value: '1', text: "猫咪", disable: true},
  64. {value: '2', text: "狗狗", disable: true},
  65. {value: '3', text: "异宠", disable: true}
  66. ]
  67. )
  68. const handleClick = () => {
  69. if (sumNum.value - answerCount.value > 0) {
  70. tab.navigateTo("/otherPages/workbenchManage/startExam/index")
  71. } else {
  72. modal.msg("考试机会已用完")
  73. }
  74. }
  75. </script>
  76. <style scoped lang="scss">
  77. @import "index";
  78. </style>