crowdfundingDetails.vue 21 KB

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