fundIdeasDetailsOne.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <template>
  2. <view class="rf-category">
  3. <u-navbar :back-text-style="backStyle"
  4. back-icon-color="#fff" title-color="#fff"
  5. :title="i18n('FundIdeasDetails')"
  6. :background="background">
  7. </u-navbar>
  8. <view style="padding: 0 40upx;color: #666666;">
  9. <view style="text-align: center;font-size: 32upx;font-weight: 600;margin-top: 40upx;">{{FundList.title}}</view>
  10. <view style="font-size: 26upx;margin-top: 40upx;font-weight: 600;">{{FundList.subtitle}}</view>
  11. <view v-for="(item,index) in mark" class="detailBox">
  12. <image :src="'../../../static/img/finance/index'+(index+1)+'.png'" mode="" style="width: 100%;height: 480upx;border-radius: 20px;"></image>
  13. <view style="font-size: 28upx;font-weight: 600;margin-top: 16upx;">{{$t(item.name)}}</view>
  14. <text class="detailLabel">{{$t(item.label)}}</text>
  15. </view>
  16. </view>
  17. </view>
  18. </template>
  19. <script>
  20. import {getBaseFundIdeasInfos} from '@/api/financialService/baseFundIdeasInfo'
  21. export default {
  22. data() {
  23. return {
  24. background:{
  25. backgroundImage: 'linear-gradient(270deg, #4BC0E2 0%, #538BE7 100%)',
  26. },
  27. backStyle:{
  28. color:'#fff'
  29. },
  30. FundList:{},
  31. mark:[
  32. {
  33. id:1,
  34. name:"common.GreenEnergy",
  35. label:'common.IncludingWind'
  36. },
  37. {
  38. id:2,
  39. name:"common.GridInterconnection",
  40. label:'common.CorrespondingKey'
  41. },
  42. {
  43. id:3,
  44. name:"common.SmartGrid",
  45. label:'common.ComprehensiveEnergy'
  46. },
  47. ]
  48. }
  49. },
  50. onLoad(data) {
  51. console.log(data);
  52. this.baseEntityId = data.key
  53. },
  54. onShow() {
  55. this.getData()
  56. },
  57. methods: {
  58. i18n (data) {
  59. return this.$t('common.'+data);
  60. },
  61. async getData(){
  62. let params = {
  63. pageSize:"5",
  64. pageNo:"1",
  65. language:this.$i18n.locale.toUpperCase(),
  66. baseEntityId:this.baseEntityId,
  67. statusDict:'2'
  68. }
  69. const res = await this.$myRequest({
  70. url: '/project/baseFundIdeasInfos/',
  71. data: {
  72. ...params
  73. }
  74. });
  75. console.log(res,'-----------------res')
  76. // let res = await getBaseFundIdeasInfos(params);
  77. if(res.data){
  78. this.FundList = res.data.baseFundIdeasInfos[0];
  79. }
  80. },
  81. i18n (data) {
  82. return this.$t('common.'+data);
  83. },
  84. }
  85. }
  86. </script>
  87. <style lang="scss" scoped>
  88. .rf-category {
  89. background-color: $color-white;
  90. /* #ifdef APP-PLUS */
  91. // margin-top: calc(20upx + var(--status-bar-height));
  92. /* #endif */
  93. .detailBox{
  94. margin-top: 20upx;
  95. }
  96. .detailLabel{
  97. font-size: 24upx;
  98. margin-top: 36upx;
  99. }
  100. }
  101. // .barBox{
  102. // background-image: linear-gradient(270deg, rgb(75, 192, 226) 0%, rgb(83, 139, 231) 100%);
  103. // }
  104. </style>