workdata.vue 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <template>
  2. <view class="page_view">
  3. <top-return color="#FFF"></top-return>
  4. <view class="flex_row">
  5. <view class="flex_cloumn" style="margin: 120rpx 0 0 50rpx;">
  6. <view class="page_title">作业</view>
  7. <view class="page_title">分析报告</view>
  8. <view class="page_subtitle" style="margin-top: 30rpx;">{{workData[index].work.name}}</view>
  9. </view>
  10. <view class="bg1"></view>
  11. <view class="detail_image" :style="{backgroundImage:`url(${image})`}"></view>
  12. </view>
  13. <view class="card_view">
  14. <view class="card_item" style="width: 100%;height: 2300rpx;opacity: 0.9;"></view>
  15. </view>
  16. </view>
  17. </template>
  18. <script>
  19. import {
  20. mapState
  21. } from 'vuex'
  22. export default {
  23. computed: {
  24. ...mapState('m_children', ['workData'])
  25. },
  26. data() {
  27. return {
  28. index: '',
  29. image: 'https://ouch-cdn2.icons8.com/L7XZ0sgjVoRcfTOPCIQaYDAjSFWSuLHiH__hrCVy_CQ/rs:fit:439:456/czM6Ly9pY29uczgu/b3VjaC1wcm9kLmFz/c2V0cy9wbmcvNTM2/L2M3ZmQyOTdiLTgz/ODEtNGQzYy1hNzk1/LWY1MmY3ZWUyMjIw/YS5wbmc.png'
  30. };
  31. },
  32. onLoad(param) {
  33. this.index = param.index
  34. },
  35. methods: {
  36. },
  37. }
  38. </script>
  39. <style lang="scss">
  40. .page_view {
  41. background-color: $color-yellow;
  42. }
  43. .page_title {
  44. font-size: 75rpx;
  45. font-family: YSfont;
  46. color: #FFF;
  47. }
  48. .page_subtitle {
  49. font-size: 40rpx;
  50. font-family: YSfont;
  51. color: #FFF;
  52. }
  53. .bg1 {
  54. position: absolute;
  55. top: 200rpx;
  56. left: 450rpx;
  57. width: 430rpx;
  58. height: 430rpx;
  59. border-radius: 50%;
  60. background-color: #f9da7a;
  61. }
  62. .detail_image {
  63. position: absolute;
  64. top: 170rpx;
  65. left: 430rpx;
  66. width: 330rpx;
  67. height: 360rpx;
  68. background-size: 100%; //背景图片自适应
  69. background-repeat: no-repeat;
  70. z-index: 50;
  71. }
  72. </style>