home.vue 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <template>
  2. <view class="home-container">
  3. <view class="bg1"></view>
  4. <!-- 头部区域 -->
  5. <top-box></top-box>
  6. <!-- 滚动条 -->
  7. <view class="notice">
  8. <u-notice-bar :text="notification" mode="closable" bgColor="#6495ED" color="#FFFFFF"></u-notice-bar>
  9. </view>
  10. <!-- 孩子全方位展示 -->
  11. <view class="develop-box">
  12. <view class="develop-item" v-for="(item, index) in model" :key="index">
  13. <view class="desc">{{item}}</view>
  14. <view class="icon-item">
  15. <view class="t-icon t-icon-jiaoyan"></view>
  16. </view>
  17. </view>
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. import {mapState} from 'vuex'
  23. export default {
  24. data() {
  25. return {
  26. notification: '这里是滚动条的内容,显示重要通知等等消息',
  27. model: ['德','智','体','美','劳']
  28. }
  29. },
  30. computed:{
  31. ...mapState('m_children',['childreninfo'])
  32. },
  33. onShow() {
  34. },
  35. methods: {
  36. },
  37. }
  38. </script>
  39. <style lang="scss">
  40. .home-container {
  41. height: 100%;
  42. .notice{
  43. margin: -80rpx 20rpx 20rpx 20rpx;
  44. }
  45. .develop-box{
  46. display: flex;
  47. }
  48. }
  49. </style>