studentInfo.vue 716 B

1234567891011121314151617181920212223242526272829303132333435
  1. <template>
  2. <view class="">
  3. <view class="window w40 flex-center-center flex-dir-column">
  4. <uv-image :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>