chanPin.vue 3.5 KB

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