gengDuoChengGuo.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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 @click="$common.navigateTo('/index_fenbao/HuoHuaLiYong/chanPin/chengGuo?id=' + item.id)" v-for="item in achievement" :key="item.id" class="yx_box">
  5. <view style="position: absolute; left: 6rpx; top: 6rpx">
  6. <image style="width: 160rpx; height: 240rpx" :src="item.image"></image>
  7. </view>
  8. <view style="margin-left: 200rpx">
  9. <view class="wwd">{{ item.title }}</view>
  10. </view>
  11. <view class="baoming">
  12. <text>查看</text>
  13. <image style="margin-left: 10rpx; width: 32rpx; height: 32rpx" src="/static/img/arrow-right-line.png"></image>
  14. </view>
  15. </view>
  16. </view>
  17. </template>
  18. <script>
  19. let that;
  20. export default {
  21. data() {
  22. return {
  23. achievement: []
  24. };
  25. },
  26. onLoad(o) {
  27. that = this;
  28. this.travelPath();
  29. },
  30. methods: {
  31. travelPath() {
  32. this.$api.getMainBodyColumnContentList({ main_body_id: 1, model_id: 11 }, function (res) {
  33. res.data.forEach((item) => {
  34. if (item.name == '活化利用成果') {
  35. that.achievement = item.content_list;
  36. console.log(that.achievement, '活化利用成果');
  37. }
  38. });
  39. });
  40. }
  41. }
  42. };
  43. </script>
  44. <style>
  45. .box {
  46. width: 100%;
  47. padding-bottom: 50rpx;
  48. background-image: url('https://huli-app.wenlvti.net/app_static/WenWuGuanJia/image/xbg_2.png');
  49. background-size: 100% 100%;
  50. background-attachment: fixed;
  51. background-repeat: repeat-y;
  52. height: 100%;
  53. }
  54. .img {
  55. width: 100%;
  56. height: 100%;
  57. }
  58. .xq {
  59. width: 55rpx;
  60. height: 180rpx;
  61. text-align: center;
  62. line-height: 50rpx;
  63. font-size: 30rpx;
  64. margin-left: 50rpx;
  65. margin-top: 80rpx;
  66. color: #ffffff;
  67. background-image: url('/static/img/wc_tit_bg.png');
  68. background-size: 100% 100%;
  69. }
  70. .right_box {
  71. writing-mode: vertical-lr;
  72. writing-mode: tb-lr;
  73. letter-spacing: 6rpx;
  74. }
  75. .tit {
  76. font-size: 28rpx;
  77. font-weight: 600;
  78. background: linear-gradient(180deg, #af7e44 0%, #934b36 100%);
  79. -webkit-background-clip: text;
  80. -webkit-text-fill-color: transparent;
  81. }
  82. .fenge {
  83. width: 2rpx;
  84. height: 200rpx;
  85. background-color: #934b36;
  86. margin-top: 55rpx;
  87. margin-left: 10rpx;
  88. background-image: linear-gradient(to bottom right, #ecd9c3, #934b36);
  89. }
  90. .kc_box {
  91. width: 92%;
  92. margin: auto;
  93. padding: 30upx;
  94. display: flex;
  95. align-items: center;
  96. margin-top: 30rpx;
  97. }
  98. .b-cover {
  99. width: 225rpx;
  100. height: 125rpx;
  101. }
  102. .b-main {
  103. flex: 1;
  104. margin-left: 20upx;
  105. }
  106. .text_23 {
  107. color: #272727;
  108. font-size: 28rpx;
  109. margin-top: 10rpx;
  110. font-weight: 600;
  111. }
  112. .text_25 {
  113. font-size: 26rpx;
  114. color: #727070;
  115. margin-top: 10rpx;
  116. font-weight: 400;
  117. }
  118. .text_23 {
  119. color: #272727;
  120. font-size: 28rpx;
  121. margin-top: 10rpx;
  122. font-weight: 600;
  123. }
  124. .text_25 {
  125. font-size: 26rpx;
  126. color: #727070;
  127. margin-top: 10rpx;
  128. font-weight: 400;
  129. }
  130. .yx_box {
  131. position: relative;
  132. width: 670rpx;
  133. height: 252rpx;
  134. display: flex;
  135. align-items: center;
  136. margin: auto;
  137. margin-top: 34rpx;
  138. background-image: url('https://huli-app.wenlvti.net/app_static/WenWuGuanJia/image/hh_item_bg.png');
  139. background-size: 100% 100%;
  140. }
  141. .wwd {
  142. width: 300rpx;
  143. font-size: 36rpx;
  144. font-weight: 400;
  145. color: #444444;
  146. line-height: 52rpx;
  147. }
  148. .time {
  149. font-size: 28rpx;
  150. color: rgba(68, 68, 68, 0.6);
  151. line-height: 44rpx;
  152. margin-top: 12rpx;
  153. }
  154. .baoming {
  155. display: flex;
  156. width: 116rpx;
  157. height: 56rpx;
  158. line-height: 56rpx;
  159. justify-content: center;
  160. align-items: center;
  161. margin-left: 32rpx;
  162. font-size: 28rpx;
  163. color: #eba869;
  164. border: 2rpx solid #eba869;
  165. }
  166. </style>