fund.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <template>
  2. <view class="center">
  3. <view class="top"><image src="../../static/img/fundtop.png" mode="" class="bg"></image></view>
  4. <view class="main-box">
  5. <view class="main-title">
  6. <view class="main-title-image"><image class="image" src="../../static/icon/title.png" mode=""></image></view>
  7. <view class="main-title-font">基金介绍</view>
  8. </view>
  9. <view class="main" v-html="content">
  10. </view>
  11. </view>
  12. <view class="index1"><image src="../../static/img/fundbottom.png" mode=""></image></view>
  13. </view>
  14. </template>
  15. <script>
  16. import { details } from '@/api/index.js';
  17. export default {
  18. data() {
  19. return {
  20. content:''
  21. };
  22. },
  23. onLoad() {
  24. uni.setNavigationBarTitle({
  25. title: this.$t('foo.xq')
  26. });
  27. details({},3).then(({data}) =>{
  28. console.log(data)
  29. this.content = data.content
  30. })
  31. }
  32. };
  33. </script>
  34. <style lang="scss">
  35. .top {
  36. position: relative;
  37. display: flex;
  38. flex-direction: column;
  39. z-index: 10;
  40. .bg {
  41. height: 900rpx;
  42. width: 100%;
  43. }
  44. }
  45. .index1 {
  46. margin-top: -400rpx;
  47. width: 100%;
  48. height: 713rpx;
  49. position: relative;
  50. image {
  51. width: 100%;
  52. height: 100%;
  53. }
  54. }
  55. .main-box {
  56. margin: 80rpx 30rpx 0;
  57. position: relative;
  58. z-index: 20;
  59. padding: 20rpx;
  60. background-color: #1f2020;
  61. border-radius: 10rpx;
  62. .main-title {
  63. width: 300rpx;
  64. height: 80rpx;
  65. margin: -60rpx auto 0;
  66. border-radius: 50rpx;
  67. position: relative;
  68. .main-title-image {
  69. position: absolute;
  70. left: 0;
  71. top: 0;
  72. width: 300rpx;
  73. height: 80rpx;
  74. .image {
  75. width: 100%;
  76. height: 100%;
  77. border-radius: 50rpx;
  78. }
  79. }
  80. .main-title-font {
  81. position: relative;
  82. z-index: 100;
  83. text-align: center;
  84. line-height: 80rpx;
  85. font-size: 46rpx;
  86. font-weight: bold;
  87. color: #54300f;
  88. }
  89. }
  90. .main {
  91. padding: 40rpx 0;
  92. color: #eecca7;
  93. .main-item {
  94. margin-top: 20rpx;
  95. width: 100%;
  96. padding: 14rpx;
  97. background: #e6c3a1;
  98. position: relative;
  99. border-radius: 20rpx;
  100. .main-image {
  101. position: absolute;
  102. top: -2rpx;
  103. left: -2rpx;
  104. width: 60rpx;
  105. height: 110rpx;
  106. image {
  107. width: 100%;
  108. height: 100%;
  109. }
  110. }
  111. .main-font {
  112. font-size: 28rpx;
  113. padding-left: 80rpx;
  114. }
  115. }
  116. }
  117. }
  118. </style>