gengDuo.vue 3.1 KB

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