examdata.vue 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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;">{{examData[index].examInfo.name}}</view>
  9. </view>
  10. <view class="bg1"></view>
  11. <view class="detail_image1" :style="{backgroundImage:`url(${image1})`}"></view>
  12. <view class="detail_image2" :style="{backgroundImage:`url(${image2})`}"></view>
  13. </view>
  14. <view class="card-view">
  15. <view class="card-item" style="width: 100%;height: 2300rpx;opacity: 0.9;"></view>
  16. </view>
  17. </view>
  18. </template>
  19. <script>
  20. import {
  21. mapState
  22. } from 'vuex'
  23. export default {
  24. computed: {
  25. ...mapState('m_children', ['examData'])
  26. },
  27. data() {
  28. return {
  29. index: '',
  30. image1: 'https://ouch-cdn2.icons8.com/PvGwCISfYx-NAQwl4UsdY2QXtMMiNDB6LllqLZ4jGoA/rs:fit:367:456/czM6Ly9pY29uczgu/b3VjaC1wcm9kLmFz/c2V0cy9wbmcvNzg1/LzhiM2MwZWU2LWFl/ODMtNDM2Mi05MGQy/LTBmMDk0N2M4N2E1/OC5wbmc.png',
  31. image2: 'https://ouch-cdn2.icons8.com/I-PEjM-V1LXrgVE1_yaPi7LY2XrgFXgKmEvBD3r1h_Y/rs:fit:484:456/czM6Ly9pY29uczgu/b3VjaC1wcm9kLmFz/c2V0cy9wbmcvMzcy/LzA0ZDY3Y2NlLTM3/YTUtNGE3OC1iZTVi/LTY4MzgyYTQ2YmUz/Zi5wbmc.png'
  32. };
  33. },
  34. onLoad(param) {
  35. this.index = param.index
  36. },
  37. methods: {
  38. },
  39. }
  40. </script>
  41. <style lang="scss">
  42. .page-view {
  43. background-color: $color-pink;
  44. }
  45. .page_title {
  46. font-size: 75rpx;
  47. font-family: YSfont;
  48. color: #FFF;
  49. }
  50. .page_subtitle {
  51. font-size: 40rpx;
  52. font-family: YSfont;
  53. color: #FFF;
  54. }
  55. .bg1 {
  56. position: absolute;
  57. top: 200rpx;
  58. left: 450rpx;
  59. width: 430rpx;
  60. height: 430rpx;
  61. border-radius: 50%;
  62. background-color: #ffb2c9;
  63. }
  64. .detail_image1 {
  65. position: absolute;
  66. top: 180rpx;
  67. left: 580rpx;
  68. width: 300rpx;
  69. height: 350rpx;
  70. background-size: 100%;
  71. background-repeat: no-repeat;
  72. z-index: 51;
  73. }
  74. .detail_image2 {
  75. position: absolute;
  76. top: 230rpx;
  77. left: 380rpx;
  78. width: 300rpx;
  79. height: 350rpx;
  80. background-size: 100%;
  81. background-repeat: no-repeat;
  82. z-index: 50;
  83. }
  84. </style>