stuInfo.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <template>
  2. <view class="stu">
  3. <view class="stu-top">
  4. <view class="stu-top-left">
  5. <view class="stu-top-left-img">
  6. <image style="width: 100%;height: 100%;border-radius: 50%;" :src="info.student_photo == ''? '@/static/image/female.png':info.student_photo" mode=""></image>
  7. </view>
  8. <view class="stu-top-left-text">
  9. <view class="stu-top-left-text-title">
  10. {{info.student_name}}
  11. </view>
  12. <view class="stu-top-left-text-value">
  13. {{info.student_number}}
  14. </view>
  15. <view class="stu-top-left-text-value">
  16. {{info.school_name}}{{info.class_name}}
  17. </view>
  18. </view>
  19. </view>
  20. <!-- <view @click="goEnter" class="stu-top-right">
  21. <uni-icons color='#fff' type="compose" size="18"></uni-icons> 编辑信息
  22. </view> -->
  23. </view>
  24. <view v-for="(item,index) in info.parents" :key="index" class="stu-number">
  25. <uni-icons type="phone-filled" color='#fff' size="16"></uni-icons>
  26. <view class="stu-number-number">
  27. {{item.parent_phone}}
  28. </view>
  29. <view class="stu-number-name">
  30. 家长
  31. </view>
  32. </view>
  33. </view>
  34. </template>
  35. <script>
  36. export default {
  37. name: "stuInfo",
  38. props:{
  39. info:{
  40. type:Object,
  41. default:() => {}
  42. }
  43. },
  44. data() {
  45. return {
  46. };
  47. },
  48. methods:{
  49. goEnter(){
  50. uni.navigateTo({
  51. url: '/pages/stuEnter/stuEnter'
  52. })
  53. }
  54. }
  55. }
  56. </script>
  57. <style lang="scss" scoped>
  58. .stu {
  59. padding: 32rpx;
  60. color: #fff;
  61. width: 100%;
  62. height: 100%;
  63. position: absolute;
  64. top: 0;
  65. left: 0;
  66. box-sizing: border-box;
  67. .stu-top {
  68. display: flex;
  69. margin-bottom: 30rpx;
  70. .stu-top-left {
  71. flex: 1;
  72. display: flex;
  73. .stu-top-left-text {
  74. color: #fff;
  75. pointer-events: all;
  76. z-index: 11;
  77. .stu-top-left-text-title {
  78. font-size: 32rpx;
  79. }
  80. .stu-top-left-text-value {
  81. font-size: 24rpx;
  82. }
  83. }
  84. }
  85. }
  86. .stu-top-right {
  87. pointer-events: all;
  88. z-index: 11;
  89. line-height: 30rpx;
  90. }
  91. .stu-top-left-img {
  92. width: 128rpx;
  93. height: 128rpx;
  94. margin-right: 30rpx;
  95. }
  96. .stu-number {
  97. display: flex;
  98. align-items: center;
  99. margin-bottom: 10rpx;
  100. }
  101. .stu-number-number {
  102. pointer-events: all;
  103. z-index: 11;
  104. margin: 0 10rpx;
  105. }
  106. .stu-number-name {
  107. pointer-events: all;
  108. z-index: 11;
  109. margin-right: 10rpx;
  110. }
  111. }
  112. </style>