childrenInfo.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <template>
  2. <view class="container">
  3. <!-- 返回按钮 -->
  4. <back></back>
  5. <!-- 孩子头部信息 -->
  6. <view class="top-info">
  7. <image class="top-avatar" :src="childreninfo.avatar" size="100"></image>
  8. <view class="top-name">
  9. <text class="name">{{childreninfo.name}}</text>
  10. <text class="detail">{{childreninfo.schoolname}}</text>
  11. </view>
  12. </view>
  13. <!-- 内容列表 -->
  14. <view class="card-box">
  15. <u-cell-group :border="false">
  16. <view class="i-item">
  17. <view class="t-icon t-icon-canyon-nature-svgrepo-com"></view>
  18. <u-cell class="cell-box" size="large" title="班级" :label="childreninfo.class" :border="false"></u-cell>
  19. </view>
  20. <view class="i-item">
  21. <view class="t-icon t-icon-galata-tower-istanbul-svgrepo-com"></view>
  22. <u-cell class="cell-box" size="large" title="年龄" label="描述信息" :border="false"></u-cell>
  23. </view>
  24. <view class="i-item">
  25. <view class="t-icon t-icon-desert-nature-svgrepo-com"></view>
  26. <u-cell class="cell-box" size="large" title="个人信息" label="描述信息" :border="false"></u-cell>
  27. </view>
  28. </u-cell-group>
  29. <!-- 横向内容列表 -->
  30. <view style="display: flex; flex-wrap: wrap; align-items: center;margin: 0 40rpx 0 40rpx;">
  31. <view class="data-box-item">
  32. <view class="item-text">能力卡片</view>
  33. </view>
  34. <view class="data-box-item"></view>
  35. <view class="data-box-item"></view>
  36. <view class="data-box-item"></view>
  37. </view>
  38. </view>
  39. </view>
  40. </template>
  41. <script>
  42. import {
  43. mapState,
  44. mapMutations
  45. } from 'vuex'
  46. export default {
  47. computed: {
  48. ...mapState('m_children', ['childreninfo', 'semester']),
  49. },
  50. data() {
  51. return {
  52. };
  53. },
  54. methods: {
  55. ...mapMutations('m_children', ['updateChildrenInfo']),
  56. },
  57. }
  58. </script>
  59. <style lang="scss">
  60. @import '@/subpkg/common/infopage.scss';
  61. </style>