xq_page.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. <template>
  2. <view class="box">
  3. <u-navbar :title="details.title" autoBack :placeholder="true" bgColor="#fee1b9"></u-navbar>
  4. <view class="ban">
  5. <view class="" style="margin-bottom: 30rpx">
  6. <u-swiper :list="bannerlist" imgMode="aspectFill" :height="180" :autoplay="true" :circular="true"></u-swiper>
  7. </view>
  8. <!-- -->
  9. <view class="xq_tit">{{details.title}}</view>
  10. <view class="xq_js">{{details.desc}}</view>
  11. <!-- 报名 -->
  12. <view @click="goRegister()" class="bm_btn">立即报名</view>
  13. <view class="ld">活动详情</view>
  14. <view class="hd_xq">
  15. <u-parse :content="details.content"></u-parse>
  16. <!-- <div>
  17. <text>活动时间:</text>
  18. <text>2024年12月18日</text>
  19. </div>
  20. <div>
  21. <text>活动起点:</text>
  22. <text>翔安区荻花洲</text>
  23. </div>
  24. <div>
  25. <text>报名费用:</text>
  26. <text>免费</text>
  27. </div>
  28. <div style="margin-bottom: 40rpx">
  29. <text>活动流程:</text>
  30. <text>...</text>
  31. </div> -->
  32. </view>
  33. <view class="ld" style="margin-top;: 40rpx">活动日程</view>
  34. <view class="rc_box">
  35. <view style="margin-top: 8rpx">
  36. <u-icon name="clock" color="#57bdc3" size="12"></u-icon>
  37. </view>
  38. <view style="margin-left: 30rpx; color: black">
  39. <view class="">起跑时间</view>
  40. <view class="star_time">8:00 AM</view>
  41. </view>
  42. </view>
  43. <!-- -->
  44. <view class="rc_box">
  45. <view class="yuan"></view>
  46. <view style="margin-left: 30rpx; color: black">
  47. <view class="">路线站点</view>
  48. <view class="star_time">沿途站点</view>
  49. </view>
  50. </view>
  51. <!-- -->
  52. <view class="rc_box">
  53. <view class="yuan"></view>
  54. <view style="margin-left: 30rpx; color: black">
  55. <view class="">文物讲解</view>
  56. <view class="star_time">每个站点的文物讲解</view>
  57. </view>
  58. </view>
  59. <!-- -->
  60. <view class="rc_box">
  61. <view style="margin-top: 8rpx">
  62. <u-icon name="clock" color="#57bdc3" size="12"></u-icon>
  63. </view>
  64. <view style="margin-left: 30rpx; color: black">
  65. <view class="">终点庆祝</view>
  66. <view class="star_time">8:00 AM</view>
  67. </view>
  68. </view>
  69. </view>
  70. </view>
  71. </template>
  72. <script>
  73. //全局定义
  74. let that;
  75. export default {
  76. data() {
  77. return {
  78. details: [],
  79. bannerlist: []
  80. };
  81. },
  82. onLoad(option) {
  83. //启动时赋值
  84. that = this;
  85. console.log(option);
  86. that.getActivityDetails(option.id);
  87. },
  88. methods: {
  89. getActivityDetails(id) {
  90. this.$api.activityDetails(
  91. {
  92. id: id
  93. },
  94. data => {
  95. if (data.code == 0) {
  96. that.$common.errorToShow(data.msg);
  97. return;
  98. } else {
  99. that.details = data.data;
  100. that.bannerlist = data.data.images;
  101. // console.log(that.details);
  102. }
  103. }
  104. );
  105. },
  106. goRegister() {
  107. let id = that.details.id;
  108. let title = that.details.title;
  109. let desc = that.details.desc;
  110. uni.navigateTo({
  111. url: '/index_fenbao/XuanJiangYuan/bm_page?id=' + id + '&title=' + title + '&desc=' + desc
  112. });
  113. }
  114. }
  115. };
  116. </script>
  117. <style>
  118. .box {
  119. height: auto;
  120. width: 100%;
  121. padding-bottom: 50rpx;
  122. background-image: url('https://huli-app.wenlvti.net/app_static/minnanhun/image/gj_bg.png');
  123. background-repeat: repeat-y;
  124. background-size: 100%;
  125. }
  126. .ban {
  127. width: 92%;
  128. margin: auto;
  129. }
  130. .xq_tit {
  131. color: black;
  132. font-size: 32rpx;
  133. font-weight: 700;
  134. }
  135. .xq_js {
  136. color: black;
  137. font-size: 28rpx;
  138. margin-top: 10rpx;
  139. line-height: 40rpx;
  140. height: 160rpx;
  141. overflow: scroll;
  142. }
  143. .bm_btn {
  144. width: 100%;
  145. height: 80rpx;
  146. font-size: 30rpx;
  147. line-height: 80rpx;
  148. text-align: center;
  149. color: #ffffff;
  150. border-radius: 10rpx;
  151. background-color: #fb5a02;
  152. margin-bottom: 60rpx;
  153. }
  154. .ld {
  155. font-size: 30rpx;
  156. font-weight: 700;
  157. margin-bottom: 20rpx;
  158. }
  159. .hd_xq {
  160. color: black;
  161. line-height: 40rpx;
  162. font-size: 26rpx;
  163. margin: 20rpx;
  164. }
  165. .rc_box {
  166. display: flex;
  167. margin-left: 10rpx;
  168. margin-top: 20rpx;
  169. }
  170. .star_time {
  171. color: #928f8f;
  172. font-size: 26rpx;
  173. line-height: 45rpx;
  174. }
  175. .yuan {
  176. width: 16rpx;
  177. height: 16rpx;
  178. border-radius: 50%;
  179. margin-top: 10rpx;
  180. border: 2rpx solid #57bdc3;
  181. }
  182. </style>