activityDetail.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420
  1. <template>
  2. <view class="common_page adffc" :style="{'min-height':h+'px', 'padding-top':mt+'px'}">
  3. <cus-header title="公益活动详情" bgColor="transparent"></cus-header>
  4. <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/09/19/54b75bc8-d926-449b-95a5-1126f700b481.png" class="top_bg_img" mode="widthFix"></image>
  5. <div class="lunbo">
  6. <up-swiper
  7. :list="imgList"
  8. @change="e => current = e.current"
  9. :autoplay="false"
  10. height="440rpx"
  11. >
  12. <template #indicator>
  13. <view class="indicator adf">
  14. <view class="indicator__dot" v-for="(item, index) in imgList" :key="index"
  15. :class="[index === current && 'indicator__dot--active']">
  16. </view>
  17. </view>
  18. </template>
  19. </up-swiper>
  20. </div>
  21. <div class="box box1">
  22. <div class="box1-top">
  23. <text class="box1-top-status">{{'进行中'}}</text>
  24. <text class="box1-top-title">{{'《环保知识知多少》让孩子成为大自然的守护者!'}}</text>
  25. </div>
  26. <div class="box1-line" style="margin-top: 36rpx;"></div>
  27. <div class="box1-place adfacjb">
  28. <div class="box1-place-left adffcjb">
  29. <text>活动地点</text>
  30. <div class="addr">{{'深圳市南山区南山街道丰潭路'}}</div>
  31. </div>
  32. <div class="box1-place-right">
  33. <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/10/10/239a8c29-499b-407b-a9b5-90447248d9ab.png"></image>
  34. </div>
  35. </div>
  36. <div class="box1-line" style="margin-top: 24rpx;"></div>
  37. <div class="box1-member adfacjb">
  38. <div class="box1-member-left adffc">
  39. <text>招募人数</text>
  40. <div class="num"><text>{{35}}</text> /{{50}}</div>
  41. </div>
  42. <div class="box1-member-right adffc">
  43. <div class="review adfac">
  44. <text>查看报名人员</text>
  45. <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/10/10/b7b7531b-33fa-4ec3-841b-796be9035191.png"></image>
  46. </div>
  47. <div class="avatars">
  48. <up-avatar-group :urls="avatars" size="30" gap="0.4" :maxCount="3"></up-avatar-group>
  49. </div>
  50. </div>
  51. </div>
  52. <div class="box1-line" style="margin-top: 33rpx;"></div>
  53. <div class="box1-time adffc">
  54. <text>活动时间</text>
  55. <div class="text">{{'2025年06月01日 12:00'}} - {{'2025年06月15日12:00'}}</div>
  56. </div>
  57. <div class="box1-line" style="margin-top: 30rpx;"></div>
  58. <div class="box1-need adffc">
  59. <text>报名要求</text>
  60. <div class="text"><text>{{200}}</text>爱心值</div>
  61. <div class="tip">每{{200}}爱心值守护一条河流,让河流恢复往日的清澈模样</div>
  62. </div>
  63. <div class="box1-line" style="margin-top: 30rpx;"></div>
  64. <div class="box1-info adfacjb">
  65. <div class="box1-info-pre">
  66. <text>年龄限制</text>
  67. <div class="text">{{10}}岁以上</div>
  68. </div>
  69. <div class="box1-info-pre line">
  70. <text>可获得义工时长</text>
  71. <div class="hour"><text>{{2}}</text> 小时</div>
  72. </div>
  73. </div>
  74. <div class="box1-line" style="margin-top: 30rpx;"></div>
  75. <div class="box1-info adfacjb">
  76. <div class="box1-info-pre">
  77. <text>联系人</text>
  78. <div class="text">{{'周小瑾'}}/{{'13111987668'}}</div>
  79. </div>
  80. <div class="box1-info-pre line">
  81. <text>公益合作</text>
  82. <div class="text">{{'深圳善行少年基金会'}}</div>
  83. </div>
  84. </div>
  85. </div>
  86. <div class="box box2">
  87. <div class="box-title">活动详情</div>
  88. <div class="box2-detail">
  89. <up-read-more :toggle="true" showHeight="374rpx" color="#989998" fontSize="24rpx" openText="收起更多信息" closeText="展开更多信息">
  90. <rich-text :nodes="detail"></rich-text>
  91. </up-read-more>
  92. </div>
  93. </div>
  94. <div class="bottom">
  95. <div class="time">
  96. 报名时间:{{'2025年06月01日 12:00'}} - {{'2025年06月15日12:00'}}
  97. </div>
  98. <div class="btns adfacjb">
  99. <div class="left adffcacjc" @tap="handleShare">
  100. <up-icon name="share-square" color="#252525" size="48rpx"></up-icon>
  101. <text>分享</text>
  102. </div>
  103. <div class="right">立即报名</div>
  104. </div>
  105. </div>
  106. </view>
  107. </template>
  108. <script setup name="">
  109. import CusHeader from '@/components/CusHeader/index.vue'
  110. import { onShareAppMessage, onLoad } from '@dcloudio/uni-app';
  111. import { ref } from 'vue'
  112. const id = ref('')
  113. const imgList = ref(['https://transcend.ringzle.com/xiaozhi-app/profile/2025/10/10/5378bfeb-32f5-4325-aaef-5270e4a55a3a.png'])
  114. const detail = ref(`山不在高,有仙则名。水不在深,有龙则灵。斯是陋室,惟吾德馨。苔痕上阶绿,草色入帘青。谈笑有鸿儒,往来无白丁。可以调素琴,阅金经。无丝竹之乱耳,无案牍之劳形。南阳诸葛庐,西蜀子云亭。孔子云:何陋之有?<br>山不在高,有仙则名。水不在深,有龙则灵。斯是陋室,惟吾德馨。苔痕上阶绿,草色入帘青。谈笑有鸿儒,往来无白丁。可以调素琴,阅金经。无丝竹之乱耳,无案牍之劳形。南阳诸葛庐,西蜀子云亭。孔子云:何陋之有?`)
  115. const avatars = ref([
  116. 'https://transcend.ringzle.com/xiaozhi-app/profile/2025/10/10/565ca09a-88e2-4c2c-a89e-98bd51fbea7f.png',
  117. 'https://transcend.ringzle.com/xiaozhi-app/profile/2025/10/10/565ca09a-88e2-4c2c-a89e-98bd51fbea7f.png',
  118. 'https://transcend.ringzle.com/xiaozhi-app/profile/2025/10/10/565ca09a-88e2-4c2c-a89e-98bd51fbea7f.png',
  119. 'https://transcend.ringzle.com/xiaozhi-app/profile/2025/10/10/565ca09a-88e2-4c2c-a89e-98bd51fbea7f.png',
  120. 'https://transcend.ringzle.com/xiaozhi-app/profile/2025/10/10/565ca09a-88e2-4c2c-a89e-98bd51fbea7f.png'
  121. ])
  122. const handleShare = () => {
  123. };
  124. onLoad(options=>{
  125. id.value = options?.id;
  126. })
  127. onShareAppMessage(() => {
  128. return {
  129. title: '公益活动详情',
  130. path: '/pagesHome/activityDetail?id='+id.value
  131. };
  132. });
  133. </script>
  134. <style scoped lang="scss">
  135. .common_page{
  136. padding-bottom: 276rpx;
  137. .lunbo{
  138. width: 100%;
  139. height: 440rpx;
  140. margin-top: 20rpx;
  141. position: relative;
  142. }
  143. .box{
  144. background: linear-gradient(45deg,#FFFFFF 70%,#F2FFE8 100%);
  145. border-radius: 24rpx;
  146. padding: 36rpx 24rpx 30rpx;
  147. margin-top: 20rpx;
  148. position: relative;
  149. &-title{
  150. width: 170rpx;
  151. height: 44rpx;
  152. padding-left: 2rpx;
  153. font-family: PingFang-SC, PingFang-SC;
  154. font-weight: 800;
  155. font-size: 36rpx;
  156. color: #151B29;
  157. line-height: 36rpx;
  158. background-image: url('https://transcend.ringzle.com/xiaozhi-app/profile/2025/09/11/6ec1f999-fcbb-4a0b-a1a5-d0b5e1374bb1.png');
  159. background-size: 170rpx 31rpx;
  160. background-position: 0 20rpx;
  161. background-repeat: no-repeat;
  162. }
  163. }
  164. .box1{
  165. &-top{
  166. &-status{
  167. padding: 10rpx 20rpx;
  168. background: url('https://transcend.ringzle.com/xiaozhi-app/profile/2025/10/10/46184afd-e7cd-4ffa-b32f-7390f7a1decc.png') no-repeat;
  169. background-size: 100% 100%;
  170. font-family: PingFang-SC, PingFang-SC;
  171. font-weight: bold;
  172. font-size: 24rpx;
  173. color: #151B29;
  174. line-height: 33rpx;
  175. }
  176. &-title{
  177. font-family: PingFang-SC, PingFang-SC;
  178. font-weight: bold;
  179. font-size: 36rpx;
  180. color: #151B29;
  181. line-height: 54rpx;
  182. margin-left: 10rpx;
  183. }
  184. }
  185. &-line{
  186. width: 100%;
  187. height: 1rpx;
  188. background: #E7E7E7;
  189. }
  190. &-place{
  191. &-left{
  192. width: calc(100% - 228rpx);
  193. text{
  194. font-family: PingFangSC, PingFang SC;
  195. font-weight: 400;
  196. font-size: 24rpx;
  197. color: #989998;
  198. line-height: 26rpx;
  199. }
  200. .addr{
  201. width: 100%;
  202. font-family: PingFang-SC, PingFang-SC;
  203. font-weight: bold;
  204. font-size: 26rpx;
  205. color: #151B29;
  206. line-height: 26rpx;
  207. margin-top: 24rpx;
  208. }
  209. }
  210. &-right{
  211. width: 188rpx;
  212. height: 115rpx;
  213. image{
  214. width: 100%;
  215. height: 100%;
  216. }
  217. }
  218. }
  219. &-member{
  220. margin-top: 37rpx;
  221. &-left{
  222. &>text{
  223. font-family: PingFangSC, PingFang SC;
  224. font-weight: 400;
  225. font-size: 24rpx;
  226. color: #989998;
  227. line-height: 26rpx;
  228. }
  229. .num{
  230. font-family: PingFang-SC, PingFang-SC;
  231. font-weight: bold;
  232. font-size: 26rpx;
  233. color: #676775;
  234. line-height: 48rpx;
  235. margin-top: 25rpx;
  236. text{
  237. font-size: 36rpx;
  238. color: #151B29;
  239. }
  240. }
  241. }
  242. &-right{
  243. .review{
  244. text{
  245. font-family: PingFangSC, PingFang SC;
  246. font-weight: 400;
  247. font-size: 24rpx;
  248. color: #989998;
  249. line-height: 26rpx;
  250. }
  251. image{
  252. width: 28rpx;
  253. height: 28rpx;
  254. margin-left: 8rpx;
  255. }
  256. }
  257. .avatars{
  258. margin-top: 27rpx;
  259. display: flex;
  260. justify-content: flex-end;
  261. }
  262. }
  263. }
  264. &-time{
  265. margin-top: 30rpx;
  266. text{
  267. font-family: PingFangSC, PingFang SC;
  268. font-weight: 400;
  269. font-size: 24rpx;
  270. color: #989998;
  271. line-height: 26rpx;
  272. }
  273. .text{
  274. font-family: PingFang-SC, PingFang-SC;
  275. font-weight: bold;
  276. font-size: 26rpx;
  277. color: #151B29;
  278. line-height: 26rpx;
  279. margin-top: 24rpx;
  280. }
  281. }
  282. &-need{
  283. margin-top: 30rpx;
  284. &>text{
  285. font-family: PingFangSC, PingFang SC;
  286. font-weight: 400;
  287. font-size: 24rpx;
  288. color: #989998;
  289. line-height: 26rpx;
  290. }
  291. .text{
  292. margin-top: 30rpx;
  293. font-family: PingFangSC, PingFang SC;
  294. font-weight: 400;
  295. font-size: 24rpx;
  296. color: #676775;
  297. line-height: 26rpx;
  298. text{
  299. font-weight: bold;
  300. font-size: 36rpx;
  301. color: #151B29;
  302. }
  303. }
  304. .tip{
  305. font-family: PingFangSC, PingFang SC;
  306. font-weight: 400;
  307. font-size: 24rpx;
  308. color: #C9A771;
  309. line-height: 26rpx;
  310. margin-top: 20rpx;
  311. }
  312. }
  313. &-info{
  314. margin-top: 30rpx;
  315. &-pre{
  316. width: 50%;
  317. &.line{
  318. border-left: 1rpx solid #E7E7E7;
  319. padding-left: 24rpx;
  320. box-sizing: border-box;
  321. }
  322. &>text{
  323. font-family: PingFangSC, PingFang SC;
  324. font-weight: 400;
  325. font-size: 24rpx;
  326. color: #989998;
  327. line-height: 26rpx;
  328. }
  329. .text{
  330. font-family: PingFang-SC, PingFang-SC;
  331. font-weight: bold;
  332. font-size: 26rpx;
  333. color: #151B29;
  334. line-height: 26rpx;
  335. margin-top: 24rpx;
  336. }
  337. .hour{
  338. margin-top: 24rpx;
  339. font-family: PingFangSC, PingFang SC;
  340. font-weight: 400;
  341. font-size: 24rpx;
  342. color: #676775;
  343. line-height: 26rpx;
  344. text{
  345. font-weight: bold;
  346. font-size: 36rpx;
  347. color: #151B29;
  348. }
  349. }
  350. }
  351. }
  352. }
  353. .box2{
  354. &-detail{
  355. margin-top: 40rpx;
  356. }
  357. }
  358. .bottom{
  359. width: 100%;
  360. height: 256rpx;
  361. background: #FFFFFF;
  362. box-shadow: 0rpx -2rpx 8rpx 0rpx rgba(178,178,178,0.1);
  363. position: fixed;
  364. left: 0;
  365. right: 0;
  366. bottom: 0;
  367. padding: 30rpx 24rpx 0;
  368. box-sizing: border-box;
  369. .time{
  370. padding: 19rpx 24rpx 12rpx;
  371. background: #F8F8F9;
  372. border-radius: 32rpx;
  373. font-family: PingFangSC, PingFang SC;
  374. font-weight: 400;
  375. font-size: 24rpx;
  376. color: #4B545C;
  377. line-height: 33rpx;
  378. }
  379. .btns{
  380. margin-top: 24rpx;
  381. .left{
  382. margin-left: 30rpx;
  383. text{
  384. font-family: PingFangSC, PingFang SC;
  385. font-weight: 400;
  386. font-size: 26rpx;
  387. color: #151B29;
  388. line-height: 26rpx;
  389. margin-top: 17rpx;
  390. }
  391. }
  392. .right{
  393. width: 540rpx;
  394. height: 90rpx;
  395. background: #B7F358;
  396. border-radius: 45rpx;
  397. font-family: PingFang-SC, PingFang-SC;
  398. font-weight: bold;
  399. font-size: 32rpx;
  400. color: #151B29;
  401. line-height: 90rpx;
  402. text-align: center;
  403. letter-spacing: 2rpx;
  404. }
  405. }
  406. }
  407. }
  408. </style>