crowdfundingDetails.vue 25 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057
  1. <template>
  2. <view class="crowdfunding-details">
  3. <view class="custom-navbar" :style="navBgStyle">
  4. <view class="navbar-left scale-tap" @click="goBack">
  5. <image src="@/static/crowdFunding/back.png" mode="widthFix"></image>
  6. </view>
  7. <view class="navbar-center one-omit" style="max-width: 70vw; " :style="{ opacity: navBgOpacity }">
  8. {{ detail.title }}
  9. </view>
  10. <view class="navbar-right scale-tap" @click="showShare = true">
  11. <image src="@/static/crowdFunding/share.png" mode="widthFix"></image>
  12. </view>
  13. </view>
  14. <!-- 顶部视频图片混合轮播 -->
  15. <view class="swiper-container">
  16. <swiper class="top-swiper" :indicator-dots="false" circular :current="currentMediaIndex"
  17. @change="handleSwiperChange" :duration="300">
  18. <swiper-item v-for="(item, idx) in mediaList" :key="idx" class="swiper-item">
  19. <view v-if="item.type === 'video'" class="media-wrapper">
  20. <video class="swiper-video" :src="item.src" :poster="item.poster" :id="'video-' + idx" controls
  21. object-fit="contain" enable-progress-gesture="false" :loop="false"
  22. :show-fullscreen-btn="false" :show-play-btn="true" :enable-play-gesture="false"
  23. @ended="onVideoEnded" @play="onVideoPlay(idx)" @pause="onVideoPause"></video>
  24. </view>
  25. <image v-else class="swiper-img" :src="item.src" mode="aspectFill" />
  26. </swiper-item>
  27. </swiper>
  28. <!-- 自定义指示点 -->
  29. <view class="custom-dots">
  30. <view v-for="(item, index) in mediaList" :key="index"
  31. :class="['dot', currentMediaIndex === index ? 'active' : '']" @click="switchMedia(index)"></view>
  32. </view>
  33. </view>
  34. <view class="content">
  35. <!-- 项目信息 -->
  36. <view class="section project-card">
  37. <view class="project-title">{{ detail.title }}</view>
  38. <view class="progress-bar-wrap">
  39. <uv-line-progress height="8rpx" :showText="false" :percentage="detail.progress"
  40. inactiveColor="#F0F0F0" activeColor="#ACF934"></uv-line-progress>
  41. <view class="progress-percent">{{ detail.progress + '%' }}</view>
  42. </view>
  43. <view class="project-stats">
  44. <view class="stat-block">
  45. <view class="stat-main amountOfMoney">¥{{ detail.current_amount }}</view>
  46. <view class="stat-sub">{{ detail.supporter_count }}人支持</view>
  47. </view>
  48. <view class="stat-block">
  49. <view class="stat-main">{{ detail.daysRemaining }}天</view>
  50. <view class="stat-sub">剩余时间</view>
  51. </view>
  52. <view class="stat-block">
  53. <view class="stat-main">¥{{ detail.goal_amount }}</view>
  54. <view class="stat-sub">众筹目标</view>
  55. </view>
  56. </view>
  57. </view>
  58. <!-- 项目更新 -->
  59. <view class="section project-update" v-if="projectUpdate && projectUpdate.numb">
  60. <view class="project-update-left scale-tap"
  61. @click="goPage('/pages/crowdFunding/projectUpdateDetails?id=' + projectUpdate.id)">
  62. <view class="project-update-left-title">
  63. <view>·第{{ projectUpdate.numb }}次更新</view>
  64. <view style="color: #999;">{{ projectUpdate.create_time }}</view>
  65. </view>
  66. <view class="project-update-left-content">
  67. <view class="two-omit">{{ projectUpdate.title }}</view>
  68. <view class="image">
  69. <image :src="projectUpdate.image" />
  70. </view>
  71. </view>
  72. </view>
  73. <view class="project-update-right scale-tap"
  74. @click="goPage('/pages/crowdFunding/discussionArea?tags=update&id=' + projectId)">
  75. <view>历史更新</view>
  76. <image src="@/static/crowdFunding/updateDetails.png"></image>
  77. </view>
  78. </view>
  79. <view class="section comment scale-tap" @click="goPage('/pages/crowdFunding/discussionArea?tags=comment&id=' + projectId)" >
  80. <view class="comment-title">
  81. <view>项目讨论({{ totalNumberOfComments }})</view>
  82. <view class="comment-more"">查看更多
  83. <image src="@/static/crowdFunding/right.png"></image>
  84. </view>
  85. </view>
  86. <view class="comment-content">
  87. <block v-for="(item, idx) in commentList" :key="idx">
  88. <view class="comment-item">
  89. <image class="comment-avatar" :src="item.avatar"></image>
  90. <view class="comment-item-main">
  91. <view class="comment-item-content">{{ item.content }}</view>
  92. </view>
  93. <view class="comment-item-like">
  94. <image class="like-icon"
  95. :src="item.liked ? '/static/icon/icon-18.png' : '/static/icon/icon-19.png'"></image>
  96. <text class="like-num">{{ item.likeNum }}</text>
  97. </view>
  98. </view>
  99. </block>
  100. </view>
  101. </view>
  102. <!-- 塔罗牌介绍 -->
  103. <view class="section poster">
  104. <view class="initiator-bar">
  105. <image class="initiator-avatar" :src="detail.creator_avatar" />
  106. <view class="initiator-info">
  107. <text class="initiator-name">{{ detail.creator_nickname }}</text>
  108. <text class="initiator-tag">发起人</text>
  109. </view>
  110. <view class="initiator-service-btn blick-btn-animation"
  111. @click="goPage('/pages/crowdFunding/customerService?id=' + detail.creator_id)">
  112. <image class="service-icon" src="@/static/crowdFunding/service.png" />
  113. <text>客服</text>
  114. </view>
  115. </view>
  116. <block v-for="(item, idx) in detail.content_images" :key="idx">
  117. <image class="intro-img" :src="item" mode="widthFix" />
  118. </block>
  119. </view>
  120. <!-- 风险说明 -->
  121. <view class="section risk-section">
  122. <view class="risk-row">
  123. <view class="risk-title">退款政策</view>
  124. <view class="risk-more ">查看更多
  125. <image src="@/static/crowdFunding/right.png" class="risk-more-icon" />
  126. </view>
  127. </view>
  128. <view class="risk-desc">众筹结束前最后1个小时无法申请退款</view>
  129. <view class="risk-row risk-row-border">
  130. <view class="risk-title">风险提示</view>
  131. </view>
  132. <view class="risk-content">
  133. <view>1. 您参与众筹是支持将创意变为现实的过程,而不是直接的商品交易,因此存在一定风险。请您根据自己的判断选择,支持众筹项目。</view>
  134. <view>2. 众筹存在于发起人与支持者之间,摩点作为第三方平台,提供网络空间、技术支持等服务。众筹的回报产品和承诺由发起人负责。</view>
  135. </view>
  136. </view>
  137. </view>
  138. <view class="bottom-bar-reserveASeat"></view>
  139. <view class="bottom-bar">
  140. <view class="bottom-bar-left">
  141. <view class="bar-btn" @click="toggleFavorite">
  142. <image v-if="isFavorite" src="@/static/crowdFunding/collect-active.png"
  143. class="scale-tap bar-icon" />
  144. <image v-else src="@/static/crowdFunding/collect.png" class="scale-tap bar-icon" />
  145. <view class="bar-text">{{ isFavorite ? '已收藏' : '收藏' }}</view>
  146. </view>
  147. <!-- <view class="bar-btn">
  148. <image v-if="true" src="@/static/crowdFunding/like.png" class=" scale-tap bar-icon" />
  149. <image v-else src="@/static/crowdFunding/like-active.png" class=" scale-tap bar-icon" />
  150. <view class="bar-text">看好</view>
  151. </view> -->
  152. </view>
  153. <button class="buy-btn blick-btn-animation" @click="specificationsOpen()">立即购买支持</button>
  154. </view>
  155. <image src="@/static/crowdFunding/backToTop.png" class="back-top scale-tap" v-show="navBgOpacity > 0.9"
  156. @click="scrollToTop"></image>
  157. <!-- 分享弹窗 -->
  158. <SharePopup :visible="showShare" :userId="0" :share-title="shareTitle" :share-desc="shareDesc"
  159. :share-img="shareImg" view="crowdfundingDetails" @close="showShare = false" :isReportContent="true" />
  160. <productSpecifications ref="specSheet" :rewards="rewards" :title="detail.title" @confirm="onSpecConfirm" />
  161. </view>
  162. </template>
  163. <script>
  164. import VideoPlayer from "@/components/VideoPlayer/VideoPlayer.vue";
  165. import SharePopup from "@/components/SharePopup/SharePopup.vue";
  166. import productSpecifications from "./components/productSpecifications/productSpecifications.vue";
  167. export default {
  168. components: {
  169. VideoPlayer,
  170. SharePopup,
  171. productSpecifications
  172. },
  173. data() {
  174. return {
  175. mediaList: [],
  176. videoPlaying: false,
  177. currentMediaIndex: 0,
  178. commentList: [
  179. ],
  180. navBgOpacity: 0,
  181. swiperHeight: 0,
  182. showShare: false,
  183. shareTitle: '【Woh】灯塔 塔罗牌 治愈风泛传特系',
  184. shareDesc: '快来支持这个有趣的众筹项目吧!',
  185. shareImg: require('@/static/crowdFunding/top-img.png'),
  186. userId: 0, // 可根据实际登录用户赋值
  187. isFavorite: false, // 是否已收藏
  188. projectId: null, // 当前项目id
  189. detail: {}, // 众筹详情
  190. projectUpdate: '',
  191. rewards: [],
  192. totalNumberOfComments:0
  193. }
  194. },
  195. computed: {
  196. navBgStyle() {
  197. return {
  198. background: `rgba(255,255,255,${this.navBgOpacity})`,
  199. transition: 'background 0.3s'
  200. }
  201. }
  202. },
  203. methods: {
  204. // 返回上一页
  205. goBack() {
  206. uni.navigateBack({
  207. delta: 1,
  208. });
  209. },
  210. scrollToTop() {
  211. uni.pageScrollTo({
  212. scrollTop: 0,
  213. duration: 300
  214. });
  215. },
  216. switchMedia(index) {
  217. if (this.currentMediaIndex === index) return;
  218. // 如果当前在播放视频,先暂停
  219. if (this.mediaList[this.currentMediaIndex]?.type === 'video') {
  220. const videoContext = uni.createVideoContext('video-' + this.currentMediaIndex, this);
  221. if (videoContext) {
  222. videoContext.pause();
  223. }
  224. }
  225. this.currentMediaIndex = index;
  226. },
  227. handleSwiperChange(e) {
  228. const lastIndex = this.currentMediaIndex;
  229. this.currentMediaIndex = e.detail.current;
  230. // 如果上一个是视频,暂停它
  231. if (this.mediaList[lastIndex]?.type === 'video') {
  232. const videoContext = uni.createVideoContext('video-' + lastIndex, this);
  233. if (videoContext) {
  234. videoContext.pause();
  235. this.videoPlaying = false;
  236. }
  237. }
  238. },
  239. onVideoPlay(idx) {
  240. // 更新当前播放的视频索引
  241. this.videoPlaying = true;
  242. if (this.currentMediaIndex !== idx) {
  243. this.currentMediaIndex = idx;
  244. }
  245. },
  246. onVideoPause() {
  247. this.videoPlaying = false;
  248. },
  249. onVideoEnded() {
  250. this.videoPlaying = false;
  251. },
  252. goPage(url) {
  253. uni.navigateTo({
  254. url: url
  255. });
  256. },
  257. onSpecConfirm(selectedSpec) {
  258. console.log('selectedSpec', selectedSpec);
  259. },
  260. specificationsOpen() {
  261. this.$refs.specSheet.show();
  262. },
  263. toggleFavorite() {
  264. if (!this.projectId) {
  265. return;
  266. }
  267. const action = this.isFavorite ? 'remove' : 'add';
  268. uni.request({
  269. url: this.$apiHost + '/crowdfund/favorite',
  270. method: 'POST',
  271. header: {
  272. "content-type": "application/x-www-form-urlencoded",
  273. },
  274. data: {
  275. uuid: getApp().globalData.uuid,
  276. skey: getApp().globalData.skey,
  277. crowdfund_id: this.projectId,
  278. action
  279. },
  280. success: (res) => {
  281. console.log(res.data, "收藏");
  282. if (res.data && res.data.success && res.data.success == 'yes') {
  283. this.isFavorite = !this.isFavorite;
  284. uni.showToast({ title: this.isFavorite ? '已收藏' : '已取消收藏', icon: 'none' });
  285. } else {
  286. uni.showToast({ title: res.data.msg || '操作失败', icon: 'none' });
  287. }
  288. },
  289. fail: () => {
  290. uni.showToast({ title: '网络错误', icon: 'none' });
  291. }
  292. });
  293. },
  294. getDetail() {
  295. if (!this.projectId) return;
  296. uni.request({
  297. url: this.$apiHost + '/crowdfund/detail',
  298. method: 'GET',
  299. data: {
  300. id: this.projectId,
  301. uuid: getApp().globalData.uuid,
  302. skey: getApp().globalData.skey
  303. },
  304. success: (res) => {
  305. if (res.data && res.data.success === 'yes' && res.data.data) {
  306. this.processingDataDetails(res.data.data);
  307. // 可根据接口返回字段设置isFavorite等
  308. }
  309. }
  310. });
  311. uni.request({
  312. url: this.$apiHost + '/crowdfund/favorite/status',
  313. method: 'GET',
  314. data: {
  315. crowdfund_id: this.projectId,
  316. uuid: getApp().globalData.uuid,
  317. skey: getApp().globalData.skey
  318. },
  319. success: (res) => {
  320. if (res.data && res.data.success === 'yes' && res.data.data) {
  321. console.log(res.data.data, "收藏");
  322. this.isFavorite = res.data.data.is_favorited;
  323. // 可根据接口返回字段设置isFavorite等
  324. }
  325. }
  326. });
  327. uni.request({
  328. url: this.$apiHost + '/crowdfund/articles',
  329. method: 'GET',
  330. data: {
  331. crowdfund_id: this.projectId,
  332. page: 1,
  333. pageSize: 1,
  334. uuid: getApp().globalData.uuid,
  335. skey: getApp().globalData.skey
  336. },
  337. success: (res) => {
  338. if (res.data && res.data.success === 'yes' && res.data.data) {
  339. if (Array.isArray(res.data.data.list)) {
  340. this.projectUpdate = res.data.data.list[0]
  341. this.projectUpdate.create_time = this.projectUpdate.create_time.replace(/-/g, '.').slice(0, 16)
  342. console.log(this.projectUpdate, 8888);
  343. }
  344. }
  345. }
  346. });
  347. uni.request({
  348. url: this.$apiHost + '/Article/getcomments',
  349. data: {
  350. uuid: getApp().globalData.uuid,
  351. type: 'crowdfund',
  352. id: this.projectId,
  353. page: 1,
  354. limit: 2,
  355. },
  356. header: {
  357. "content-type": "application/json",
  358. 'sign': getApp().globalData.headerSign
  359. },
  360. success: (res) => {
  361. console.log("评论列表:", res.data);
  362. if (res.data.success == "yes") {
  363. this.totalNumberOfComments = res.data.total
  364. // 确保数据存在且是数组,然后只取前两条
  365. this.commentList = (res.data.list || []).slice(0, 2).map(item => ({
  366. avatar: item.user_avatar || '',
  367. content: item.user_content || '',
  368. likeNum: item.like_count || 0,
  369. liked: item.is_like || false
  370. }));
  371. } else {
  372. // 如果请求失败,使用默认空数组
  373. this.commentList = [];
  374. uni.showToast({
  375. title: '获取评论列表失败',
  376. icon: 'none'
  377. });
  378. }
  379. },
  380. fail: (e) => {
  381. console.log("----e:", e);
  382. // 请求失败时使用默认空数组
  383. this.commentList = [];
  384. }
  385. });
  386. },
  387. processingDataDetails(data) {
  388. this.detail = data;
  389. // 确保 image_list 始终是一个数组
  390. data.image_list = data.image_list || [];
  391. const videoItem = data.video_url ? [{
  392. type: 'video',
  393. poster: data.main_image,
  394. src: data.video_url,
  395. }] : [];
  396. const imageItems = data.image_list.map(v => ({
  397. type: 'image',
  398. src: v
  399. }));
  400. // 计算剩余天数
  401. if (data.start_time && data.end_time) {
  402. const startDate = new Date(data.start_time.replace(/-/g, '/'));
  403. const endDate = new Date(data.end_time.replace(/-/g, '/'));
  404. const now = new Date();
  405. // 如果当前时间在开始时间之前,显示总天数
  406. if (now < startDate) {
  407. this.detail.daysRemaining = Math.ceil((endDate - startDate) / (1000 * 60 * 60 * 24));
  408. }
  409. // 如果当前时间在结束时间之后,显示0天
  410. else if (now > endDate) {
  411. this.detail.daysRemaining = 0;
  412. }
  413. // 如果当前时间在开始和结束时间之间,显示剩余天数
  414. else {
  415. this.detail.daysRemaining = Math.ceil((endDate - now) / (1000 * 60 * 60 * 24));
  416. }
  417. } else {
  418. this.detail.daysRemaining = 0;
  419. }
  420. // 计算进度
  421. this.detail.progress = data.current_amount / data.goal_amount
  422. if (Number.isNaN) this.detail.progress = 0
  423. this.mediaList = [...videoItem, ...imageItems];
  424. this.rewards = data.rewards
  425. console.log("回报数据", this.rewards);
  426. console.log("顶部轮播数据", this.mediaList, "mediaList");
  427. console.log("详情", this.detail, "detail");
  428. }
  429. },
  430. mounted() {
  431. this.$nextTick(() => {
  432. // 动态获取轮播图高度
  433. uni.createSelectorQuery().in(this).select('.top-swiper').boundingClientRect(rect => {
  434. if (rect) {
  435. this.swiperHeight = rect.height;
  436. }
  437. }).exec();
  438. });
  439. },
  440. onPageScroll(e) {
  441. const threshold = this.swiperHeight || uni.upx2px(400); // 优先用实际高度
  442. let opacity = 0;
  443. if (e.scrollTop > 0) {
  444. opacity = Math.min(e.scrollTop / threshold, 1);
  445. }
  446. this.navBgOpacity = opacity;
  447. },
  448. onLoad(options) {
  449. // 获取id
  450. this.projectId = options.id || null;
  451. this.getDetail();
  452. }
  453. }
  454. </script>
  455. <style lang="scss" scoped>
  456. .crowdfunding-details {
  457. /* 自定义导航栏样式 */
  458. .custom-navbar {
  459. display: flex;
  460. flex-direction: row;
  461. align-items: center;
  462. justify-content: space-between;
  463. width: 100%;
  464. height: calc(90rpx + var(--status-bar-height));
  465. padding: 0 20rpx;
  466. position: fixed;
  467. top: 0;
  468. z-index: 100;
  469. padding: 12rpx 24rpx;
  470. padding-top: calc(var(--status-bar-height) + 12rpx);
  471. background: transparent;
  472. transition: background 0.3s;
  473. image {
  474. width: 64rpx;
  475. height: 64rpx;
  476. }
  477. }
  478. .swiper-container {
  479. position: relative;
  480. width: 100vw;
  481. height: 100vw;
  482. background: #000;
  483. .top-swiper {
  484. width: 100%;
  485. height: 100%;
  486. .swiper-item {
  487. width: 100%;
  488. height: 100%;
  489. display: flex;
  490. align-items: center;
  491. justify-content: center;
  492. }
  493. .media-wrapper {
  494. width: 100%;
  495. height: 100%;
  496. display: flex;
  497. align-items: center;
  498. justify-content: center;
  499. background: #000;
  500. }
  501. .swiper-video {
  502. width: 100%;
  503. height: 100%;
  504. }
  505. .swiper-img {
  506. width: 100%;
  507. height: 100%;
  508. object-fit: cover;
  509. }
  510. }
  511. .custom-dots {
  512. position: absolute;
  513. bottom: 20rpx;
  514. left: 50%;
  515. transform: translateX(-50%);
  516. display: flex;
  517. gap: 16rpx;
  518. .dot {
  519. width: 12rpx;
  520. height: 12rpx;
  521. border-radius: 50%;
  522. background: rgba(255, 255, 255, 0.5);
  523. transition: all 0.3s;
  524. &.active {
  525. width: 24rpx;
  526. border-radius: 6rpx;
  527. background: #fff;
  528. }
  529. }
  530. }
  531. }
  532. .content {
  533. background: #f2f6f2;
  534. padding: 20rpx;
  535. .section {
  536. background: #fff;
  537. border-radius: 12rpx;
  538. padding: 16rpx;
  539. padding-bottom: 20rpx;
  540. margin: 12rpx 0;
  541. .section-title {
  542. font-size: 28rpx;
  543. font-family: 'PingFang SC-Medium';
  544. margin-bottom: 6rpx;
  545. }
  546. .section-content {
  547. color: #333;
  548. font-size: 24rpx;
  549. line-height: 1.8;
  550. }
  551. .intro-img {
  552. width: 100%;
  553. margin: 0;
  554. padding: 0;
  555. margin-bottom: -10rpx;
  556. }
  557. }
  558. .project-card {
  559. padding-bottom: 15rpx;
  560. .project-title {
  561. font-size: 36rpx;
  562. color: 1f1f1f;
  563. font-family: "PingFang SC-Bold";
  564. font-weight: 400;
  565. }
  566. .progress-bar-wrap {
  567. display: flex;
  568. align-items: center;
  569. font-size: 20rpx;
  570. color: #1F1F1F;
  571. padding-top: 30rpx;
  572. padding-bottom: 14rpx;
  573. .progress-percent {
  574. padding-left: 12rpx;
  575. }
  576. }
  577. .project-stats {
  578. display: flex;
  579. justify-content: space-between;
  580. padding-top: 0;
  581. .stat-block {
  582. display: flex;
  583. flex-direction: column;
  584. align-items: center;
  585. text-align: center;
  586. justify-content: center;
  587. color: #1F1F1F;
  588. &:first-child {
  589. align-items: flex-start;
  590. }
  591. &:last-child {
  592. display: flex;
  593. flex-direction: column;
  594. align-items: center;
  595. text-align: center;
  596. justify-content: center;
  597. color: #1F1F1F;
  598. &:first-child {
  599. align-items: flex-start;
  600. }
  601. &:last-child {
  602. align-items: flex-end;
  603. }
  604. .stat-main {
  605. font-size: 28rpx;
  606. &.amountOfMoney {
  607. font-size: 32rpx;
  608. font-family: "PingFang SC-Bold";
  609. }
  610. }
  611. .stat-sub {
  612. font-size: 20rpx;
  613. }
  614. }
  615. }
  616. }
  617. }
  618. .project-update {
  619. background: transparent;
  620. height: 166rpx;
  621. display: flex;
  622. width: 100%;
  623. justify-content: space-between;
  624. padding: 0;
  625. >view {
  626. border-radius: 12rpx;
  627. background: #fff;
  628. flex-shrink: 0;
  629. }
  630. .project-update-left {
  631. width: 590rpx;
  632. height: 100%;
  633. padding: 16rpx;
  634. .project-update-left-title {
  635. display: flex;
  636. justify-content: space-between;
  637. align-items: center;
  638. font-size: 22rpx;
  639. }
  640. .project-update-left-content {
  641. display: flex;
  642. align-items: center;
  643. margin-top: 8rpx;
  644. >view {
  645. font-size: 24rpx;
  646. font-weight: 400;
  647. font-family: "PingFang SC-Bold";
  648. }
  649. .image {
  650. width: 180rpx;
  651. height: 78rpx;
  652. overflow: hidden;
  653. margin-left: 26rpx;
  654. border-radius: 8rpx;
  655. image {
  656. overflow: hidden;
  657. width: 100%;
  658. }
  659. }
  660. }
  661. }
  662. .project-update-right {
  663. width: 108rpx;
  664. height: 100%;
  665. font-size: 22rpx;
  666. display: flex;
  667. align-items: center;
  668. justify-content: center;
  669. flex-direction: column;
  670. image {
  671. margin-top: 12rpx;
  672. width: 28rpx;
  673. height: 28rpx;
  674. }
  675. }
  676. }
  677. .poster {
  678. padding: 0;
  679. padding-top: 16rpx;
  680. }
  681. }
  682. .comment {
  683. border-radius: 12rpx;
  684. background: #fff;
  685. margin-top: 24rpx;
  686. padding: 0 0 16rpx 0;
  687. .comment-title {
  688. display: flex;
  689. justify-content: space-between;
  690. align-items: center;
  691. font-size: 26rpx;
  692. color: #333;
  693. padding: 18rpx 20rpx 0 20rpx;
  694. .comment-more {
  695. color: #999;
  696. font-size: 22rpx;
  697. display: flex;
  698. align-items: center;
  699. image {
  700. width: 20rpx;
  701. height: 20rpx;
  702. margin-left: 4rpx;
  703. }
  704. }
  705. }
  706. .comment-content {
  707. padding: 0 20rpx;
  708. .comment-item {
  709. display: flex;
  710. //align-items: flex-start;
  711. align-items: center;
  712. padding: 18rpx 0 0 0;
  713. border-bottom: 1rpx solid #f5f5f5;
  714. &:last-child {
  715. border-bottom: none;
  716. }
  717. .comment-avatar {
  718. width: 48rpx;
  719. height: 48rpx;
  720. border-radius: 50%;
  721. margin-right: 16rpx;
  722. flex-shrink: 0;
  723. }
  724. .comment-item-main {
  725. flex: 1;
  726. display: flex;
  727. flex-direction: column;
  728. .comment-item-content {
  729. color: #1f1f1f;
  730. font-size: 24rpx;
  731. line-height: 1.7;
  732. margin-bottom: 8rpx;
  733. display: -webkit-box;
  734. -webkit-line-clamp: 2;
  735. -webkit-box-orient: vertical;
  736. overflow: hidden;
  737. text-overflow: ellipsis;
  738. word-break: break-all;
  739. }
  740. }
  741. .comment-item-like {
  742. display: flex;
  743. align-items: center;
  744. margin-left: 36rpx;
  745. .like-icon {
  746. width: 28rpx;
  747. height: 28rpx;
  748. margin-right: 4rpx;
  749. }
  750. .like-num {
  751. font-size: 22rpx;
  752. color: #888;
  753. }
  754. }
  755. }
  756. }
  757. }
  758. .bottom-bar-reserveASeat {
  759. width: 100%;
  760. height: calc(12rpx + 88rpx + var(--window-bottom) + 30rpx);
  761. }
  762. .bottom-bar {
  763. position: fixed;
  764. left: 0;
  765. right: 0;
  766. bottom: 0;
  767. z-index: 999;
  768. display: flex;
  769. align-items: center;
  770. justify-content: space-between;
  771. background: #fff;
  772. padding: 14rpx 40rpx;
  773. padding-bottom: calc(14rpx + var(--window-bottom));
  774. box-sizing: border-box;
  775. .bottom-bar-left {
  776. display: flex;
  777. align-items: center;
  778. gap: 32rpx;
  779. .bar-btn {
  780. display: flex;
  781. flex-direction: column;
  782. align-items: center;
  783. justify-content: center;
  784. width: 80rpx;
  785. height: 80rpx;
  786. border-radius: 12rpx;
  787. .bar-icon {
  788. width: 48rpx;
  789. height: 48rpx;
  790. margin-bottom: 4rpx;
  791. }
  792. .bar-text {
  793. font-size: 20rpx;
  794. color: #1f1f1f;
  795. font-family: "PingFang SC";
  796. }
  797. }
  798. }
  799. .buy-btn {
  800. width: 588rpx;
  801. height: 88rpx;
  802. background: #1f1f1f;
  803. color: #ACF934;
  804. font-size: 32rpx;
  805. border-radius: 80rpx;
  806. border: none;
  807. font-weight: bold;
  808. text-align: center;
  809. line-height: 80rpx;
  810. margin-left: 24rpx;
  811. }
  812. }
  813. }
  814. .back-top {
  815. position: fixed;
  816. bottom: calc(126rpx + var(--window-bottom));
  817. right: 16rpx;
  818. width: 82rpx;
  819. height: 82rpx;
  820. }
  821. .initiator-bar {
  822. display: flex;
  823. align-items: center;
  824. justify-content: space-between;
  825. background: #fff;
  826. border-radius: 10rpx;
  827. padding: 18rpx 24rpx 18rpx 18rpx;
  828. margin: 0;
  829. .initiator-avatar {
  830. width: 64rpx;
  831. height: 64rpx;
  832. border-radius: 50%;
  833. margin-right: 18rpx;
  834. flex-shrink: 0;
  835. }
  836. .initiator-info {
  837. display: flex;
  838. align-items: center;
  839. flex: 1;
  840. min-width: 0;
  841. }
  842. .initiator-name {
  843. font-size: 30rpx;
  844. color: #222;
  845. font-weight: bold;
  846. margin-right: 12rpx;
  847. max-width: 260rpx;
  848. overflow: hidden;
  849. text-overflow: ellipsis;
  850. white-space: nowrap;
  851. }
  852. .initiator-tag {
  853. background: #1a1a1a;
  854. color: #b6ff4b;
  855. font-size: 20rpx;
  856. border-radius: 8rpx;
  857. padding: 2rpx 12rpx;
  858. margin-left: 2rpx;
  859. }
  860. .initiator-service-btn {
  861. display: flex;
  862. align-items: center;
  863. background: #1a1a1a;
  864. color: #b6ff4b;
  865. font-size: 28rpx;
  866. border-radius: 128rpx;
  867. padding: 0 24rpx 0 12rpx;
  868. height: 56rpx;
  869. margin-left: 18rpx;
  870. font-weight: bold;
  871. }
  872. .service-icon {
  873. width: 32rpx;
  874. height: 32rpx;
  875. margin-right: 8rpx;
  876. }
  877. }
  878. .scale-tap {
  879. transition: transform 0.15s;
  880. }
  881. .scale-tap:active {
  882. transform: scale(0.92);
  883. }
  884. .risk-section {
  885. background: #fff;
  886. border-radius: 12rpx;
  887. margin: 24rpx 0 0 0;
  888. padding: 0 0 18rpx 0;
  889. position: relative;
  890. overflow: hidden;
  891. .risk-row {
  892. display: flex;
  893. align-items: center;
  894. justify-content: space-between;
  895. padding: 18rpx 24rpx 0 0rpx;
  896. font-size: 28rpx;
  897. color: #1f1f1f;
  898. background: #fff;
  899. &.risk-row-border {
  900. border-top: 1rpx solid #f2f2f2;
  901. margin-top: 18rpx;
  902. padding-top: 18rpx;
  903. }
  904. }
  905. .risk-title {
  906. font-size: 28rpx;
  907. color: #1f1f1f;
  908. font-family: 'PingFang SC-Bold';
  909. font-weight: 400;
  910. }
  911. .risk-more {
  912. color: #1f1f1f;
  913. font-size: 24rpx;
  914. display: flex;
  915. align-items: center;
  916. font-weight: 400;
  917. font-family: 'PingFang SC-Bold';
  918. .risk-more-icon {
  919. width: 24rpx;
  920. height: 24rpx;
  921. margin-left: 4rpx;
  922. margin-top: 4rpx;
  923. }
  924. }
  925. .risk-desc {
  926. font-size: 24rpx;
  927. color: #999;
  928. padding: 8rpx 24rpx 0 0;
  929. font-family: 'PingFang SC-Regular';
  930. }
  931. .risk-content {
  932. font-size: 24rpx;
  933. color: #999;
  934. padding: 12rpx 24rpx 0 0;
  935. font-family: 'PingFang SC-Regular';
  936. line-height: 1.7;
  937. >view {
  938. margin-bottom: 6rpx;
  939. }
  940. }
  941. }
  942. </style>