fengCai.vue 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <template>
  2. <view class="box">
  3. <u-navbar :autoBack="true" title="志愿风采" bgColor="rgba(255,255,255,0)" :placeholder="true" titleStyle="font-weight:bold;color:#000000"></u-navbar>
  4. <view class="kc_box" @click="volunteerDetails(item.id)" v-for="item in list" :key="item.id">
  5. <view class="b-cover">
  6. <image style="width: 100%; height: 100%" :src="item.image" mode="aspectFill"></image>
  7. </view>
  8. <view class="b-main">
  9. <view class="text_23">
  10. <view class="">{{ item.title }}</view>
  11. <!-- <view class="text_25">2024-3-18</view> -->
  12. </view>
  13. </view>
  14. </view>
  15. </view>
  16. </template>
  17. <script>
  18. let that;
  19. export default {
  20. data() {
  21. return {
  22. list: []
  23. };
  24. },
  25. onLoad() {
  26. that = this;
  27. this.getMainBodyColumnContentList();
  28. },
  29. methods: {
  30. getMainBodyColumnContentList() {
  31. this.$api.getMainBodyColumnContentList({ main_body_id: 1, model_id: 12 }, function (res) {
  32. console.log(res, '志愿风采');
  33. that.list = res.data[1].content_list;
  34. });
  35. },
  36. volunteerDetails(id) {
  37. uni.navigateTo({
  38. url: '/index_fenbao/fuWu/fengCai/xiangQing?id=' + id
  39. });
  40. }
  41. }
  42. };
  43. </script>
  44. <style>
  45. .box {
  46. height: auto;
  47. width: 100%;
  48. padding-bottom: 50rpx;
  49. background-image: url('https://huli-app.wenlvti.net/app_static/WenWuGuanJia/image/xy_bgt.png');
  50. background-attachment: fixed;
  51. background-repeat: repeat-y;
  52. background-size: 100% 100%;
  53. min-height: 100%;
  54. height: auto;
  55. }
  56. .kc_box {
  57. width: 92%;
  58. margin: auto;
  59. padding: 30upx;
  60. display: flex;
  61. align-items: center;
  62. margin-top: 30rpx;
  63. }
  64. .b-cover {
  65. width: 225rpx;
  66. height: 125rpx;
  67. }
  68. .b-main {
  69. flex: 1;
  70. margin-left: 20upx;
  71. }
  72. .text_23 {
  73. color: #272727;
  74. font-size: 28rpx;
  75. margin-top: 10rpx;
  76. font-weight: 600;
  77. }
  78. .text_25 {
  79. font-size: 26rpx;
  80. color: #727070;
  81. margin-top: 10rpx;
  82. font-weight: 400;
  83. }
  84. </style>