studentInfo.vue 745 B

12345678910111213141516171819202122232425262728293031323334
  1. <template>
  2. <view class="">
  3. <view class="window flex-center-center flex-dir-column">
  4. <uv-image width="60px" height="60px" :src="`${imgUrl}/avatar-${props.student.gender==2?'girl':'boy'}.png`"/>
  5. <!-- <view class="">{{ props.student.jname || '' }}</view>-->
  6. </view>
  7. </view>
  8. </template>
  9. <script setup>
  10. import {onActivated, onMounted, reactive, ref} from "vue";
  11. import config from "@/utils/config";
  12. const props = defineProps({
  13. student: {
  14. type: [Object, Array],
  15. default: () => {
  16. return {
  17. jname: '未识别',
  18. gender: 1,
  19. }
  20. },
  21. },
  22. })
  23. const countDown = ref(0)
  24. const imgUrl = config.get('imgUrl')
  25. // 挂载完成之后
  26. onMounted(() => {
  27. })
  28. </script>
  29. <style lang="scss" scoped>
  30. </style>