swapdata.vue 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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;">{{swapData[index].survey.name||swapData[index].vote.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', ['swapData'])
  25. },
  26. data() {
  27. return {
  28. index: '',
  29. image: 'https://ouch-cdn2.icons8.com/09Q_OTq1lYT1dr5CbEAtnG8KH-WNnh3fIkoN8Ehg8D8/rs:fit:256:277/czM6Ly9pY29uczgu/b3VjaC1wcm9kLmFz/c2V0cy9wbmcvODc3/LzUyODcyMGM0LTI0/MTEtNGU5MS04ZWM0/LTQ0ODVhOGQzMDcw/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-orange;
  42. }
  43. .page_title {
  44. font-size: 55rpx;
  45. font-weight: bold;
  46. transform: skew(-15deg);
  47. color: #FFF;
  48. }
  49. .page_subtitle {
  50. font-size: 34rpx;
  51. font-weight: bold;
  52. transform: skew(-15deg);
  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: #ff9c5a;
  63. }
  64. .detail_image {
  65. position: absolute;
  66. top: 140rpx;
  67. left: 430rpx;
  68. width: 370rpx;
  69. height: 350rpx;
  70. background-size: 100%;
  71. background-repeat: no-repeat;
  72. z-index: 50;
  73. }
  74. </style>