top-semester.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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" style="font-size: 60rpx;">{{childInfo.semester.split('学年')[0]}}</view>
  8. <view class="content_title" style="margin-left: 20rpx;font-size: 38rpx;">学年</view>
  9. <view class="content_title" style="font-size: 60rpx;margin-left: 20rpx;">
  10. {{childInfo.semester.split('学年')[1].split('学期')[0]}}
  11. </view>
  12. <view class="content_title" style="margin-left: 20rpx;font-size: 38rpx;">学期</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. .content_subtitle {
  61. font-size: 50rpx;
  62. font-family: YSfont;
  63. color: #FFF;
  64. z-index: 2;
  65. }
  66. }
  67. .tag {
  68. margin-left: 20rpx;
  69. border-radius: 6rpx;
  70. border: 2px solid #FFF;
  71. padding: 4rpx 10rpx;
  72. z-index: 9;
  73. .tag_text {
  74. font-size: 30rpx;
  75. font-family: YSfont;
  76. color: #FFF;
  77. z-index: 9;
  78. }
  79. }
  80. </style>