top-semester.vue 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <template>
  2. <view>
  3. <!-- 页面标题内容 -->
  4. <view class="flex_row" style="margin: 140rpx 40rpx 0 40rpx;">
  5. <view class="flex_cloumn">
  6. <view class="flex_baseline">
  7. <view class="content_title">{{childInfo.semester.split('学年')[0]}}</view>
  8. <view class="content_title" style="margin-left: 20rpx;font-size: 40rpx;">学年</view>
  9. <view class="content_title" style="margin-left: 20rpx;">
  10. {{childInfo.semester.split('学年')[1].split('学期')[0]}}
  11. </view>
  12. <view class="content_title" style="margin-left: 20rpx;font-size: 40rpx;">学期</view>
  13. </view>
  14. <view class="flex_baseline">
  15. <view class="tag" style="margin-left: 0;">
  16. <view class="tag-text">{{childInfo.school}}</view>
  17. </view>
  18. <view class="tag">
  19. <view class="tag-text">{{childInfo.class}}</view>
  20. </view>
  21. <view class="tag">
  22. <view class="tag-text">{{childInfo.name}}同学</view>
  23. </view>
  24. </view>
  25. </view>
  26. <!-- <image class="avatar" :src="childInfo.avatar"></image> -->
  27. </view>
  28. </view>
  29. </template>
  30. <script>
  31. import {
  32. mapState,
  33. mapMutations
  34. } from 'vuex'
  35. export default {
  36. name: "top-semester",
  37. computed: {
  38. ...mapState('m_children', ['childInfo']),
  39. },
  40. data() {
  41. return {
  42. };
  43. },
  44. onLoad() {},
  45. methods: {
  46. }
  47. }
  48. </script>
  49. <style lang="scss">
  50. .flex_cloumn {
  51. height: 170rpx;
  52. justify-content: space-around;
  53. .content_title {
  54. font-size: 70rpx;
  55. font-family: YSfont;
  56. color: #FFF;
  57. z-index: 2;
  58. text-shadow: 1px -1px 0px #c0c0c0, 2px -2px 0px #b0b0b0, 1px -1px 0px #a0a0a0, 2px -2px 0px #909090;
  59. }
  60. }
  61. .tag {
  62. margin-left: 20rpx;
  63. border-radius: 6rpx;
  64. border: 2px solid #FFF;
  65. padding: 0 6rpx;
  66. z-index: 9;
  67. .tag-text {
  68. font-size: 32rpx;
  69. font-family: YSfont;
  70. color: #FFF;
  71. z-index: 9;
  72. }
  73. }
  74. </style>