workdata.vue 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <template>
  2. <view class="page-view">
  3. <top-return color="#FFF"></top-return>
  4. <view class="flex-row">
  5. <view class="flex-column" style="margin: 120rpx 0 0 50rpx;">
  6. <view class="report-title">作业</view>
  7. <view class="report-title">分析报告</view>
  8. <view class="report-subtitle">{{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. @import 'data_pages.scss';
  41. .page-view {
  42. background-color: $color-yellow;
  43. }
  44. .bg1 {
  45. position: absolute;
  46. top: 200rpx;
  47. left: 450rpx;
  48. width: 430rpx;
  49. height: 430rpx;
  50. border-radius: 50%;
  51. background-color: #f9da7a;
  52. }
  53. .detail-image {
  54. position: absolute;
  55. top: 170rpx;
  56. left: 430rpx;
  57. width: 330rpx;
  58. height: 360rpx;
  59. background-size: 100%; //背景图片自适应
  60. background-repeat: no-repeat;
  61. z-index: 50;
  62. }
  63. </style>