crowdfundingDetails - 副本.vue 26 KB

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