gengDuo.vue 3.4 KB

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