crowdfundingDetails copy.vue 26 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099
  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. onShow() {
  483. this.getDetail();
  484. },
  485. }
  486. </script>
  487. <style lang="scss" scoped>
  488. .crowdfunding-details {
  489. /* 自定义导航栏样式 */
  490. .custom-navbar {
  491. display: flex;
  492. flex-direction: row;
  493. align-items: center;
  494. justify-content: space-between;
  495. width: 100%;
  496. height: calc(90rpx + var(--status-bar-height));
  497. padding: 0 20rpx;
  498. position: fixed;
  499. top: 0;
  500. z-index: 100;
  501. padding: 12rpx 24rpx;
  502. padding-top: calc(var(--status-bar-height) + 12rpx);
  503. background: transparent;
  504. transition: background 0.3s;
  505. image {
  506. width: 64rpx;
  507. height: 64rpx;
  508. }
  509. }
  510. .swiper-container {
  511. position: relative;
  512. width: 100vw;
  513. height: 100vw;
  514. background: #000;
  515. .top-swiper {
  516. width: 100%;
  517. height: 100%;
  518. .swiper-item {
  519. width: 100%;
  520. height: 100%;
  521. display: flex;
  522. align-items: center;
  523. justify-content: center;
  524. }
  525. .media-wrapper {
  526. width: 100%;
  527. height: 100%;
  528. display: flex;
  529. align-items: center;
  530. justify-content: center;
  531. background: #000;
  532. }
  533. .swiper-video {
  534. width: 100%;
  535. height: 100%;
  536. }
  537. .swiper-img {
  538. width: 100%;
  539. height: 100%;
  540. object-fit: cover;
  541. }
  542. }
  543. .custom-dots {
  544. position: absolute;
  545. bottom: 20rpx;
  546. left: 50%;
  547. transform: translateX(-50%);
  548. display: flex;
  549. gap: 16rpx;
  550. .dot {
  551. width: 12rpx;
  552. height: 12rpx;
  553. border-radius: 50%;
  554. background: rgba(255, 255, 255, 0.5);
  555. transition: all 0.3s;
  556. &.active {
  557. width: 24rpx;
  558. border-radius: 6rpx;
  559. background: #fff;
  560. }
  561. }
  562. }
  563. }
  564. .content {
  565. background: #f2f6f2;
  566. padding: 20rpx;
  567. .section {
  568. background: #fff;
  569. border-radius: 12rpx;
  570. padding: 16rpx;
  571. padding-bottom: 20rpx;
  572. margin: 12rpx 0;
  573. .section-title {
  574. font-size: 28rpx;
  575. font-family: 'PingFang SC-Medium';
  576. margin-bottom: 6rpx;
  577. }
  578. .section-content {
  579. color: #333;
  580. font-size: 24rpx;
  581. line-height: 1.8;
  582. }
  583. .intro-img {
  584. width: 100%;
  585. margin: 0;
  586. padding: 0;
  587. margin-bottom: -10rpx;
  588. }
  589. }
  590. .project-card {
  591. padding-bottom: 15rpx;
  592. .project-title {
  593. font-size: 36rpx;
  594. color: 1f1f1f;
  595. font-family: "PingFang SC-Bold";
  596. font-weight: 400;
  597. }
  598. .progress-bar-wrap {
  599. display: flex;
  600. align-items: center;
  601. font-size: 20rpx;
  602. color: #1F1F1F;
  603. padding-top: 30rpx;
  604. padding-bottom: 14rpx;
  605. .progress-percent {
  606. padding-left: 12rpx;
  607. }
  608. }
  609. .project-stats {
  610. display: flex;
  611. justify-content: space-between;
  612. padding-top: 0;
  613. .stat-block {
  614. display: flex;
  615. flex-direction: column;
  616. align-items: center;
  617. text-align: center;
  618. justify-content: center;
  619. color: #1F1F1F;
  620. &:first-child {
  621. align-items: flex-start;
  622. }
  623. &:last-child {
  624. display: flex;
  625. flex-direction: column;
  626. align-items: center;
  627. text-align: center;
  628. justify-content: center;
  629. color: #1F1F1F;
  630. &:first-child {
  631. align-items: flex-start;
  632. }
  633. &:last-child {
  634. align-items: flex-end;
  635. }
  636. .stat-main {
  637. font-size: 28rpx;
  638. &.amountOfMoney {
  639. font-size: 32rpx;
  640. font-family: "PingFang SC-Bold";
  641. }
  642. }
  643. .stat-sub {
  644. font-size: 20rpx;
  645. }
  646. }
  647. }
  648. }
  649. }
  650. .project-update {
  651. background: transparent;
  652. height: 166rpx;
  653. display: flex;
  654. width: 100%;
  655. justify-content: space-between;
  656. padding: 0;
  657. >view {
  658. border-radius: 12rpx;
  659. background: #fff;
  660. flex-shrink: 0;
  661. }
  662. .project-update-left {
  663. width: 590rpx;
  664. height: 100%;
  665. padding: 16rpx;
  666. .project-update-left-title {
  667. display: flex;
  668. justify-content: space-between;
  669. align-items: center;
  670. font-size: 22rpx;
  671. }
  672. .project-update-left-content {
  673. display: flex;
  674. align-items: center;
  675. margin-top: 8rpx;
  676. >view {
  677. font-size: 24rpx;
  678. font-weight: 400;
  679. font-family: "PingFang SC-Bold";
  680. }
  681. .image {
  682. width: 180rpx;
  683. height: 78rpx;
  684. overflow: hidden;
  685. margin-left: 26rpx;
  686. border-radius: 8rpx;
  687. image {
  688. overflow: hidden;
  689. width: 100%;
  690. }
  691. }
  692. }
  693. }
  694. .project-update-right {
  695. width: 108rpx;
  696. height: 100%;
  697. font-size: 22rpx;
  698. display: flex;
  699. align-items: center;
  700. justify-content: center;
  701. flex-direction: column;
  702. image {
  703. margin-top: 12rpx;
  704. width: 28rpx;
  705. height: 28rpx;
  706. }
  707. }
  708. }
  709. .poster {
  710. padding: 0;
  711. padding-top: 16rpx;
  712. }
  713. }
  714. .comment {
  715. border-radius: 12rpx;
  716. background: #fff;
  717. margin-top: 24rpx;
  718. padding: 0 0 16rpx 0;
  719. .comment-title {
  720. display: flex;
  721. justify-content: space-between;
  722. align-items: center;
  723. font-size: 26rpx;
  724. color: #333;
  725. padding: 18rpx 20rpx 0 20rpx;
  726. .comment-more {
  727. color: #999;
  728. font-size: 22rpx;
  729. display: flex;
  730. align-items: center;
  731. image {
  732. width: 20rpx;
  733. height: 20rpx;
  734. margin-left: 4rpx;
  735. }
  736. }
  737. }
  738. .comment-content {
  739. padding: 0 20rpx;
  740. .comment-item {
  741. display: flex;
  742. //align-items: flex-start;
  743. align-items: center;
  744. padding: 18rpx 0 0 0;
  745. border-bottom: 1rpx solid #f5f5f5;
  746. &:last-child {
  747. border-bottom: none;
  748. }
  749. .comment-avatar {
  750. width: 48rpx;
  751. height: 48rpx;
  752. border-radius: 50%;
  753. margin-right: 16rpx;
  754. flex-shrink: 0;
  755. }
  756. .comment-item-main {
  757. flex: 1;
  758. display: flex;
  759. flex-direction: column;
  760. .comment-item-content {
  761. color: #1f1f1f;
  762. font-size: 24rpx;
  763. line-height: 1.7;
  764. margin-bottom: 8rpx;
  765. display: -webkit-box;
  766. -webkit-line-clamp: 2;
  767. -webkit-box-orient: vertical;
  768. overflow: hidden;
  769. text-overflow: ellipsis;
  770. word-break: break-all;
  771. }
  772. }
  773. .comment-item-like {
  774. display: flex;
  775. align-items: center;
  776. margin-left: 36rpx;
  777. .like-icon {
  778. width: 28rpx;
  779. height: 28rpx;
  780. margin-right: 4rpx;
  781. }
  782. .like-num {
  783. font-size: 22rpx;
  784. color: #888;
  785. }
  786. }
  787. }
  788. }
  789. }
  790. .bottom-bar-reserveASeat {
  791. width: 100%;
  792. height: calc(12rpx + 88rpx + var(--window-bottom) + 30rpx);
  793. }
  794. .bottom-bar {
  795. position: fixed;
  796. left: 0;
  797. right: 0;
  798. bottom: 0;
  799. z-index: 999;
  800. display: flex;
  801. align-items: center;
  802. justify-content: space-between;
  803. background: #fff;
  804. padding: 14rpx 40rpx;
  805. padding-bottom: calc(14rpx + var(--window-bottom));
  806. box-sizing: border-box;
  807. .bottom-bar-left {
  808. display: flex;
  809. align-items: center;
  810. gap: 32rpx;
  811. .bar-btn {
  812. display: flex;
  813. flex-direction: column;
  814. align-items: center;
  815. justify-content: center;
  816. width: 80rpx;
  817. height: 80rpx;
  818. border-radius: 12rpx;
  819. .bar-icon {
  820. width: 48rpx;
  821. height: 48rpx;
  822. margin-bottom: 4rpx;
  823. }
  824. .bar-text {
  825. font-size: 20rpx;
  826. color: #1f1f1f;
  827. font-family: "PingFang SC";
  828. }
  829. }
  830. }
  831. .buy-btn {
  832. width: 588rpx;
  833. height: 88rpx;
  834. background: #1f1f1f;
  835. color: #ACF934;
  836. font-size: 32rpx;
  837. border-radius: 80rpx;
  838. border: none;
  839. font-weight: bold;
  840. text-align: center;
  841. line-height: 80rpx;
  842. margin-left: 24rpx;
  843. }
  844. }
  845. }
  846. .back-top {
  847. position: fixed;
  848. bottom: calc(126rpx + var(--window-bottom));
  849. right: 16rpx;
  850. width: 82rpx;
  851. height: 82rpx;
  852. }
  853. .initiator-bar {
  854. display: flex;
  855. align-items: center;
  856. justify-content: space-between;
  857. background: #fff;
  858. border-radius: 10rpx;
  859. padding: 18rpx 24rpx 18rpx 18rpx;
  860. margin: 0;
  861. .initiator-avatar {
  862. width: 64rpx;
  863. height: 64rpx;
  864. border-radius: 50%;
  865. margin-right: 18rpx;
  866. flex-shrink: 0;
  867. }
  868. .initiator-info {
  869. display: flex;
  870. align-items: center;
  871. flex: 1;
  872. min-width: 0;
  873. }
  874. .initiator-name {
  875. font-size: 30rpx;
  876. color: #222;
  877. font-weight: bold;
  878. margin-right: 12rpx;
  879. max-width: 260rpx;
  880. overflow: hidden;
  881. text-overflow: ellipsis;
  882. white-space: nowrap;
  883. }
  884. .initiator-tag {
  885. background: #1a1a1a;
  886. color: #b6ff4b;
  887. font-size: 20rpx;
  888. border-radius: 8rpx;
  889. padding: 2rpx 12rpx;
  890. margin-left: 2rpx;
  891. display: inline-flex;
  892. align-items: center;
  893. image{
  894. width: 28rpx;
  895. height: 28rpx;
  896. }
  897. }
  898. .initiator-service-btn {
  899. display: flex;
  900. align-items: center;
  901. background: #1a1a1a;
  902. color: #b6ff4b;
  903. font-size: 28rpx;
  904. border-radius: 128rpx;
  905. padding: 0 24rpx 0 12rpx;
  906. height: 56rpx;
  907. margin-left: 18rpx;
  908. font-weight: bold;
  909. }
  910. .service-icon {
  911. width: 32rpx;
  912. height: 32rpx;
  913. margin-right: 8rpx;
  914. }
  915. }
  916. .scale-tap {
  917. transition: transform 0.15s;
  918. }
  919. .scale-tap:active {
  920. transform: scale(0.92);
  921. }
  922. .risk-section {
  923. background: #fff;
  924. border-radius: 12rpx;
  925. margin: 24rpx 0 0 0;
  926. padding: 0 0 18rpx 0;
  927. position: relative;
  928. overflow: hidden;
  929. .risk-row {
  930. display: flex;
  931. align-items: center;
  932. justify-content: space-between;
  933. padding: 18rpx 24rpx 0 0rpx;
  934. font-size: 28rpx;
  935. color: #1f1f1f;
  936. background: #fff;
  937. &.risk-row-border {
  938. border-top: 1rpx solid #f2f2f2;
  939. margin-top: 18rpx;
  940. padding-top: 18rpx;
  941. }
  942. }
  943. .risk-title {
  944. font-size: 28rpx;
  945. color: #1f1f1f;
  946. font-family: 'PingFang SC-Bold';
  947. font-weight: 400;
  948. }
  949. .risk-more {
  950. color: #1f1f1f;
  951. font-size: 24rpx;
  952. display: flex;
  953. align-items: center;
  954. font-weight: 400;
  955. font-family: 'PingFang SC-Bold';
  956. .risk-more-icon {
  957. width: 24rpx;
  958. height: 24rpx;
  959. margin-left: 4rpx;
  960. margin-top: 4rpx;
  961. }
  962. }
  963. .risk-desc {
  964. font-size: 24rpx;
  965. color: #999;
  966. padding: 8rpx 24rpx 0 0;
  967. font-family: 'PingFang SC-Regular';
  968. }
  969. .risk-content {
  970. font-size: 24rpx;
  971. color: #999;
  972. padding: 12rpx 24rpx 0 0;
  973. font-family: 'PingFang SC-Regular';
  974. line-height: 1.7;
  975. >view {
  976. margin-bottom: 6rpx;
  977. }
  978. }
  979. }
  980. </style>