index.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <template>
  2. <section class="app-container">
  3. <van-nav-bar title="认知任务" />
  4. <div class="w-[630px] min-h-[180px] bg-white rounded-[16px] mt-[18px] ml-[4%] p-x-[30px] p-y-[28px]">
  5. <div class="flex-row border">
  6. <resolverImage :src="`images/task/${subjectInfo.id}.png`" />
  7. <div class="ml-[24px] text-[42px] font-600">{{ subjectInfo.name }}</div>
  8. </div>
  9. <div class="mt-[40px] mb-[20px] text-[#00AABD] text-[36px]">操作提示:</div>
  10. <div class="text-[#999999] text-[32px] line-height-[44px]">
  11. 空间定向是测试者在所处环境中根据参照点或者绝对坐标系统定位正确辨识方向的知觉反应,要求主体编码并记住环境中不同地点的相对位置,然后利用自身的认知结构和空间表征对自己所在的空间的感知觉线索进行迅速而准确的分析和加工,从而对自己姿态、位置和运动做出判断。
  12. </div>
  13. </div>
  14. <van-button type="primary" color="#00AABD" class="bottom-block-btn" @click="startTest">开始测试</van-button>
  15. </section>
  16. </template>
  17. <script setup lang="ts">
  18. /*
  19. * 组件名: index
  20. * 组件用途: XXX
  21. * 创建日期: 2024/8/16
  22. * 编写者: JutarryWu
  23. */
  24. import { router } from '/@/router'
  25. const subjectInfo = ref({
  26. name: '空间定向训练',
  27. id: 1
  28. })
  29. const urlList = ['/cognitiveTasks/spatialOrientationAbility']
  30. const startTest = () => {
  31. router.push(urlList[subjectInfo.value.id - 1])
  32. }
  33. async function exec() {}
  34. onMounted(() => {
  35. exec()
  36. })
  37. </script>
  38. <style scoped lang="less">
  39. .app-container {
  40. background-image: url('./../../../assets/images/bg-main.png');
  41. background-size: cover;
  42. background-repeat: no-repeat;
  43. background-position: center; /* 可选,让图片居中对齐 */
  44. :deep(.van-nav-bar) {
  45. background-color: transparent;
  46. }
  47. .van-image {
  48. width: 240px;
  49. height: 240px;
  50. }
  51. }
  52. </style>