jiJin.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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>
  5. <u-swiper
  6. :list="swiperList"
  7. :height="180"
  8. :indicator="true"
  9. radius="5"
  10. :autoplay="true"
  11. :circular="true"
  12. indicatorStyle="bottom: 10px"
  13. indicatorMode="dot"
  14. indicatorActiveColor="#fff"
  15. indicatorInactiveColor="rgba(255, 255, 255, 0.35)"
  16. ></u-swiper>
  17. </view>
  18. <view class="map_tit">
  19. <image style="width: 186rpx; height: 40rpx" src="/static/img/right_img.png"></image>
  20. <view class="">文保项目</view>
  21. <image style="width: 186rpx; height: 40rpx" src="/static/img/left_img.png"></image>
  22. </view>
  23. <view class="ban_box">
  24. <u-empty text="暂无项目" mode="data" icon="http://cdn.uviewui.com/uview/empty/data.png"></u-empty>
  25. <!-- <view class="item" v-for="(itemn, index) in 2" :key="item.index" :class="{ active: index % 2 === 1 }">
  26. <view class="" style="display: flex">
  27. <view style="position: absolute; top: -40rpx">
  28. <image style="width: 190rpx; height: 245rpx" src="https://huli-app.wenlvti.net/app_static/WenWuGuanJia/image/wb_img.png"></image>
  29. </view>
  30. <view class="item_tit" style="margin-left: 220rpx">
  31. <view class="">
  32. <view class="">文保名称:</view>
  33. <view class="">简介:</view>
  34. </view>
  35. <view style="margin-top: 30rpx">
  36. <view class="">进展情况:</view>
  37. <view class="">参与人员:</view>
  38. </view>
  39. </view>
  40. </view>
  41. <view class="tjxc">立即捐赠</view>
  42. </view> -->
  43. </view>
  44. <view class="map_tit">
  45. <image style="width: 186rpx; height: 40rpx" src="/static/img/right_img.png"></image>
  46. <view class="">联系我们</view>
  47. <image style="width: 186rpx; height: 40rpx" src="/static/img/left_img.png"></image>
  48. </view>
  49. <view class="lx_box">
  50. <view class="">厦门市文旅局</view>
  51. <view class="">地址:厦门市思明区体育路95-17号</view>
  52. <!-- <view class="">0592-5371993</view> -->
  53. </view>
  54. </view>
  55. </template>
  56. <script>
  57. export default {
  58. data() {
  59. return {
  60. swiperList: ['https://huli-app.wenlvti.net/app_static/WenWuGuanJia/image/gj_zyjz.jpg']
  61. };
  62. },
  63. onLoad() {
  64. this.getMainBodyColumnContentList();
  65. },
  66. methods: {
  67. getMainBodyColumnContentList() {
  68. this.$api.getMainBodyColumnContentList({ main_body_id: 1, model_id: 12 }, function (res) {
  69. console.log(res, '文保基金');
  70. });
  71. }
  72. }
  73. };
  74. </script>
  75. <style>
  76. .box {
  77. width: 100%;
  78. padding-bottom: 50rpx;
  79. background-image: url('https://huli-app.wenlvti.net/app_static/WenWuGuanJia/image/xy_bgt.png');
  80. background-repeat: repeat-y;
  81. background-attachment: fixed;
  82. background-size: 100% 100%;
  83. min-height: 100%;
  84. height: auto;
  85. /* background-color: #fff9e9; */
  86. }
  87. .active {
  88. order: 2;
  89. background-color: #a6c8ca !important;
  90. }
  91. .map_tit {
  92. display: flex;
  93. align-items: center;
  94. margin-left: 125rpx;
  95. margin-top: 50rpx;
  96. margin-bottom: 20rpx;
  97. font-size: 32rpx;
  98. font-family: Songti SC, Songti SC;
  99. font-weight: 900;
  100. line-height: 52rpx;
  101. color: #444444;
  102. }
  103. .ban_box {
  104. width: 90%;
  105. margin: auto;
  106. /* margin-top: 80rpx; */
  107. }
  108. .item {
  109. position: relative;
  110. display: flex;
  111. justify-content: space-between;
  112. width: 680rpx;
  113. height: 260rpx;
  114. margin-top: 85rpx;
  115. padding: 20rpx;
  116. border-radius: 10rpx;
  117. background-color: #b0c3a1;
  118. }
  119. .tjxc {
  120. width: 180rpx;
  121. height: 50rpx;
  122. margin-top: 150rpx;
  123. font-size: 30rpx;
  124. font-weight: 600;
  125. color: #8e470c;
  126. line-height: 50rpx;
  127. text-align: center;
  128. background-image: url('/static/img/search_bg1.png');
  129. background-size: 100% 100%;
  130. }
  131. .item_tit {
  132. font-size: 30rpx;
  133. font-weight: 600;
  134. }
  135. .lx_box {
  136. width: 90%;
  137. height: 200rpx;
  138. margin: auto;
  139. text-align: center;
  140. margin-top: 20rpx;
  141. padding-top: 55rpx;
  142. line-height: 50rpx;
  143. border-radius: 10rpx;
  144. background-color: #f8e8c3;
  145. }
  146. </style>