吉光研途前端代码仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

812 lines
23 KiB

3 months ago
3 months ago
3 months ago
3 months ago
1 month ago
1 month ago
1 month ago
3 months ago
3 months ago
3 months ago
1 month ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
1 month ago
1 month ago
3 months ago
1 month ago
3 months ago
3 months ago
1 month ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
1 month ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
3 months ago
3 months ago
1 month ago
3 months ago
3 months ago
1 month ago
3 months ago
1 month ago
3 months ago
1 month ago
3 months ago
1 month ago
3 months ago
1 month ago
3 months ago
1 month ago
3 months ago
1 month ago
3 months ago
1 month ago
3 months ago
1 month ago
1 month ago
3 months ago
1 month ago
3 months ago
1 month ago
1 month ago
3 months ago
1 month ago
3 months ago
1 month ago
3 months ago
1 month ago
3 months ago
1 month ago
3 months ago
1 month ago
3 months ago
1 month ago
3 months ago
1 month ago
3 months ago
1 month ago
3 months ago
1 month ago
3 months ago
1 month ago
3 months ago
1 month ago
3 months ago
3 months ago
1 month ago
1 month ago
1 month ago
1 month ago
3 months ago
1 month ago
3 months ago
3 months ago
1 month ago
3 months ago
1 month ago
3 months ago
1 month ago
3 months ago
1 month ago
3 months ago
1 month ago
3 months ago
1 month ago
3 months ago
1 month ago
3 months ago
1 month ago
3 months ago
1 month ago
3 months ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
3 months ago
1 month ago
1 month ago
3 months ago
1 month ago
3 months ago
1 month ago
3 months ago
1 month ago
3 months ago
1 month ago
3 months ago
3 months ago
1 month ago
3 months ago
1 month ago
1 month ago
1 month ago
1 month ago
3 months ago
  1. <template>
  2. <view :class="['page__view', hasPoster ? 'with-bottom' : '']">
  3. <!-- 导航栏 -->
  4. <navbar :title="details.title" leftClick @leftClick="$utils.navigateBack" />
  5. <view class="cover-image" :style="{ height: coverImageHeight }">
  6. <image class="img" :src="details.image" mode="scaleToFill" ></image>
  7. <view class="shadow" :style="{ height: coverImageShadowHeight }"></view>
  8. </view>
  9. <view class="page-title">
  10. <view v-if="details.process || (details.educationProcessList && details.educationProcessList.length)">{{ details.processTitle || '发表全流程辅导' }}</view>
  11. <view v-else>{{ details.title }}</view>
  12. <view class="page-title-line"></view>
  13. </view>
  14. <!-- 发表全流程辅导 -->
  15. <view class="process" v-if="details.process || (details.educationProcessList && details.educationProcessList.length)">
  16. <view class="flex process-custom" v-if="difficulty">
  17. <view class="process-custom-title">难度</view>
  18. <view class="flex star">
  19. <uv-icon v-for="(item, index) in new Array(difficulty).fill(1)" :key="index" name="star-fill" color="#FFFFFF" size="20rpx"></uv-icon>
  20. </view>
  21. </view>
  22. <view class="process-item" v-for="item in details.educationProcessList" :key="item.id">
  23. <view class="process-item-title">{{ item.title }}</view>
  24. <view class="process-item-content">{{ item.content }}</view>
  25. </view>
  26. </view>
  27. <!-- 可发表方向 -->
  28. <view class="section" v-if="details.educationTargetList && details.educationTargetList.length">
  29. <view class="section-header">
  30. <view class="section-header-line"></view>
  31. <view>{{ details.targetTitle || '可发表方向' }}</view>
  32. </view>
  33. <view class="section-content direction">
  34. <uv-read-more show-height="300rpx" :toggle="true" textIndent="0" :shadowStyle="{ backgroundImage: 'linear-gradient(-180deg, rgba(255, 255, 255, 0) 0%, #fff 80%)', paddingTop: '100rpx', marginTop: '-100rpx' }">
  35. <view class="table">
  36. <view class="table-row" v-for="row in details.educationTargetList" :key="row.id">
  37. <view class="table-cell">{{ row.title }}</view>
  38. <view class="table-cell">{{ row.description }}</view>
  39. </view>
  40. </view>
  41. </uv-read-more>
  42. </view>
  43. </view>
  44. <!-- 师资介绍 -->
  45. <view class="section" v-if="details.educationTeacherList && details.educationTeacherList.length">
  46. <view class="section-header">
  47. <view class="section-header-line"></view>
  48. <view>{{ details.teacherTitle || '师资介绍' }}</view>
  49. </view>
  50. <view class="section-content teachers">
  51. <view class="card" v-for="item in details.educationTeacherList" :key="item.id">
  52. <view class="info">
  53. <view class="pic">
  54. <image class="img" :src="item.image" mode="aspectFill" ></image>
  55. </view>
  56. <view class="flex flex-column title">
  57. <view class="name">{{ item.title }}</view>
  58. <view class="label" v-if="item.career">{{ item.career }}</view>
  59. </view>
  60. <view class="flex tag">
  61. <image class="tag-icon" src="@/static/image/icon-degree.png" mode="widthFix"></image>
  62. <view>{{ item.qualification }}</view>
  63. </view>
  64. <view class="desc desc-top">
  65. <view class="desc-title">专业经历</view>
  66. </view>
  67. <view class="desc desc-bottom">{{ item.experience }}</view>
  68. </view>
  69. </view>
  70. </view>
  71. </view>
  72. <!-- 课程安排 -->
  73. <view class="section" v-if="details.educationCourseList && details.educationCourseList.length">
  74. <view class="section-header">
  75. <view class="section-header-line"></view>
  76. <view>{{ details.courseTitle || '课程安排' }}</view>
  77. </view>
  78. <view class="section-content">
  79. <view class="table">
  80. <view class="table-row" v-for="row in details.educationCourseList" :key="row.id">
  81. <view class="table-cell">{{ row.title }}</view>
  82. <view class="table-cell">{{ row.description }}</view>
  83. </view>
  84. </view>
  85. </view>
  86. </view>
  87. <!-- 适用人群 -->
  88. <view class="section" v-if="details.suit">
  89. <view class="section-header">
  90. <view class="section-header-line"></view>
  91. <view>{{ details.suitTitle || '适用人群' }}</view>
  92. </view>
  93. <view class="section-content target-audience">
  94. <view class="paragraph">
  95. <uv-parse :content="details.suit"></uv-parse>
  96. </view>
  97. </view>
  98. </view>
  99. <!-- 期刊推荐 -->
  100. <view class="section" v-if="details.educationPeriodicalList && details.educationPeriodicalList.length">
  101. <view class="section-header">
  102. <view class="section-header-line"></view>
  103. <view>{{ details.periodicalTitle || '期刊推荐' }}</view>
  104. </view>
  105. <view class="section-content journal">
  106. <view class="box" v-for="item in details.educationPeriodicalList" :key="item.id">
  107. <view class="card">
  108. <view class="top">
  109. <view class="pic">
  110. <image class="img" :src="item.image" mode="aspectFill"></image>
  111. </view>
  112. <view class="info">
  113. <view class="name">{{ item.title }}</view>
  114. <view class="desc">{{ item.shortTitle }}</view>
  115. </view>
  116. </view>
  117. <view class="main">
  118. {{ item.description }}
  119. </view>
  120. </view>
  121. </view>
  122. </view>
  123. </view>
  124. <!-- 附加材料 -->
  125. <view class="section" v-if="details.educationDocumentList && details.educationDocumentList.length">
  126. <view class="section-header">
  127. <view class="section-header-line"></view>
  128. <view>{{ details.documentTitle || '附加材料' }}</view>
  129. </view>
  130. <view class="section-content attachment">
  131. <view class="flex file" v-for="item in details.educationDocumentList" :key="item.id">
  132. <view class="file-info">
  133. <template v-if="item.type == 'pdf'">
  134. <image class="file-icon" src="@/static/image/icon-pdf.png" mode="widthFix"></image>
  135. </template>
  136. <template v-else>
  137. <image class="file-icon" src="@/static/image/icon-word.png" mode="widthFix"></image>
  138. </template>
  139. <view class="file-detail">
  140. <view class="title">{{ item.title }}</view>
  141. <!-- <view class="desc">{{ `${getFileType(item.document)} ${item.size || '-'}MB` }}</view> -->
  142. </view>
  143. </view>
  144. <button class="btn" @click="downloadFile(item.document)">下载</button>
  145. </view>
  146. </view>
  147. </view>
  148. <view class="flex bottom" v-if="hasPoster">
  149. <view class="flex btns">
  150. <button class="btn" @click="jumpToPoster">保存海报</button>
  151. <button class="btn btn-share" open-type="share">分享文章</button>
  152. </view>
  153. </view>
  154. </view>
  155. </template>
  156. <script>
  157. export default {
  158. data() {
  159. return {
  160. details: {},
  161. coverImageHeight: '566rpx',
  162. coverImageShadowHeight: '113rpx'
  163. }
  164. },
  165. onLoad({ thesisId }) {
  166. const windowWidth = uni.getSystemInfoSync().windowWidth
  167. const coverImageHeight = (windowWidth) * 566 / 714
  168. const coverImageShadowHeight = (windowWidth) * 113 / 714
  169. this.coverImageHeight = `${coverImageHeight}px`
  170. this.coverImageShadowHeight = `${coverImageShadowHeight}px`
  171. this.getData(thesisId)
  172. // this.getData('1949729528544800770')
  173. },
  174. onShareAppMessage(res) {
  175. return {
  176. title: this.posterData.paperDesc,
  177. imageUrl: this.posterData.paperImage,
  178. path: this.posterData.path,
  179. }
  180. },
  181. computed: {
  182. difficulty() {
  183. const num = parseInt(this.details?.process)
  184. return isNaN(num) ? 0 : num
  185. },
  186. posterData() {
  187. const { id, title, image, paperDesc, paperImage } = this.details || {}
  188. return {
  189. paperDesc: paperDesc || title,
  190. paperImage: paperImage || image || '',
  191. path: `pages_order/thesis/index?thesisId=${id}`
  192. }
  193. },
  194. hasPoster() {
  195. const { paperImage } = this.details || {}
  196. return !!paperImage
  197. }
  198. },
  199. methods: {
  200. async getData(thesisId) {
  201. try {
  202. this.details = await this.$fetch('queryThesisById', { thesisId })
  203. } catch (err) {
  204. }
  205. },
  206. getFileType(fileName) {
  207. const pdfReg = /(.pdf)$/g
  208. // const officeReg = /(doc|docx|ppt|pptx|xls|xlsx)$/g
  209. return pdfReg.test(fileName) ? 'pdf' : ''
  210. },
  211. downloadFile(url) {
  212. console.log('downloadFile', url)
  213. uni.downloadFile({
  214. url, // 文件地址
  215. success: (downloadRes) => {
  216. console.log('downloadRes', downloadRes)
  217. if (downloadRes.statusCode === 200) {
  218. uni.openDocument({
  219. showMenu: true,
  220. filePath: downloadRes.tempFilePath,
  221. success: () => console.log('打开成功')
  222. });
  223. } else {
  224. uni.showToast({ title: '下载失败', icon: 'none' });
  225. }
  226. },
  227. fail: (err) => {
  228. console.log('downloadFile fail', err)
  229. uni.showToast({ title: '网络异常', icon: 'none' });
  230. }
  231. });
  232. },
  233. jumpToPoster() {
  234. uni.setStorageSync('posterData', this.posterData)
  235. uni.navigateTo({
  236. url: `/pages_order/thesis/poster`
  237. })
  238. },
  239. },
  240. }
  241. </script>
  242. <style scoped lang="scss">
  243. .page__view {
  244. background: #FFFFFF;
  245. padding-bottom: 62rpx;
  246. &.with-bottom {
  247. padding-bottom: calc(62rpx + 110rpx + env(safe-area-inset-bottom));
  248. }
  249. }
  250. .cover-image {
  251. position: relative;
  252. width: 100%;
  253. background: #FFFFFF;
  254. .img {
  255. width: 100%;
  256. height: 100%;
  257. }
  258. .shadow {
  259. position: absolute;
  260. bottom: 0;
  261. left: 0;
  262. width: 100%;
  263. height: 100%;
  264. background: linear-gradient(transparent, #FFFFFF);
  265. }
  266. }
  267. .page-title {
  268. padding: 0 26rpx;
  269. font-size: 60rpx;
  270. font-weight: 700;
  271. color: $uni-color;
  272. &-line {
  273. margin: 12rpx 0 24rpx 0;
  274. width: 120rpx;
  275. height: 8rpx;
  276. background: $uni-color;
  277. }
  278. }
  279. .process {
  280. position: relative;
  281. width: 100%;
  282. padding: 0 26rpx;
  283. box-sizing: border-box;
  284. &-custom {
  285. display: inline-flex;
  286. column-gap: 8rpx;
  287. padding: 4rpx 16rpx;
  288. background: #9787C2;
  289. border-top-right-radius: 18rpx;
  290. border-bottom-right-radius: 18rpx;
  291. &-title {
  292. font-size: 24rpx;
  293. font-weight: 600;
  294. line-height: 1.2;
  295. color: #FFFFFF;
  296. }
  297. .star {
  298. column-gap: 10rpx;
  299. }
  300. }
  301. &-item {
  302. margin-top: 22rpx;
  303. font-size: 0;
  304. &-title {
  305. display: inline-block;
  306. padding: 4rpx 36rpx 4rpx 20rpx;
  307. box-sizing: border-box;
  308. font-size: 30rpx;
  309. font-weight: 600;
  310. line-height: 1.2;
  311. color: #FFFFFF;
  312. background: #9787C2;
  313. border-top-right-radius: 21rpx;
  314. border-bottom-right-radius: 21rpx;
  315. }
  316. &-content {
  317. padding: 28rpx 34rpx;
  318. box-sizing: border-box;
  319. font-size: 24rpx;
  320. line-height: 1.6;
  321. white-space: pre-wrap;
  322. color: #595757;
  323. background: #EDEAFF;
  324. border-radius: 15rpx;
  325. border-top-left-radius: 0;
  326. }
  327. }
  328. }
  329. .section {
  330. margin-top: 40rpx;
  331. width: 100%;
  332. padding: 0 26rpx;
  333. box-sizing: border-box;
  334. // & + & {
  335. // margin-top: 40rpx;
  336. // }
  337. &-header {
  338. display: flex;
  339. align-items: center;
  340. justify-content: flex-start;
  341. column-gap: 15rpx;
  342. font-size: 40rpx;
  343. font-weight: 700;
  344. color: $uni-color;
  345. &-line {
  346. width: 18rpx;
  347. height: 52rpx;
  348. border-radius: 9rpx;
  349. background-image: linear-gradient(#E2DDFF, #6851A7);
  350. }
  351. }
  352. &-content {
  353. margin-top: 37rpx;
  354. .paragraph {
  355. width: 100%;
  356. padding: 30rpx;
  357. box-sizing: border-box;
  358. white-space: pre-line;
  359. font-size: 24rpx;
  360. color: #595757;
  361. background: linear-gradient(to right, rgba($color: #E2DDFF, $alpha: 0.54), rgba($color: #C8C3FD, $alpha: 0.54));
  362. border-radius: 15rpx;
  363. }
  364. .table {
  365. width: 100%;
  366. border-radius: 10rpx;
  367. overflow: hidden;
  368. &-row {
  369. display: grid;
  370. grid-template-columns: 218rpx auto;
  371. background: rgba($color: #C8C3FD, $alpha: 0.63);
  372. &:nth-child(2n) {
  373. background: rgba($color: #C8C3FD, $alpha: 0.26);
  374. }
  375. }
  376. &-cell {
  377. display: inline-flex;
  378. flex-direction: column;
  379. align-items: flex-start;
  380. justify-content: center;
  381. padding: 17rpx;
  382. box-sizing: border-box;
  383. font-family: PingFang SC;
  384. font-weight: 400;
  385. line-height: 1.5;
  386. // font-size: 28rpx;
  387. white-space: pre-wrap;
  388. // color: #080808;
  389. font-size: 18rpx;
  390. color: #595757;
  391. &:first-child {
  392. align-items: center;
  393. text-align: center;
  394. font-size: 22rpx;
  395. line-height: 1.4;
  396. font-weight: 600;
  397. border-right: 1rpx solid #E5E5E5;
  398. }
  399. }
  400. }
  401. &.direction {
  402. /deep/ .uv-read-more__toggle {
  403. // justify-content: flex-end;
  404. padding: 10rpx 0;
  405. background: linear-gradient(to right, rgba($color: #E2DDFF, $alpha: 0.67), rgba($color: #C8C3FD, $alpha: 0.67), rgba($color: #E1DCFF, $alpha: 0.67));
  406. }
  407. /deep/ .uv-read-more__toggle__text .uv-text__value {
  408. color: #9D9DF9 !important;
  409. font-size: 20rpx !important;
  410. }
  411. }
  412. &.teachers {
  413. .card {
  414. display: flex;
  415. align-items: center;
  416. // column-gap: 12rpx;
  417. background: linear-gradient(to right, rgba($color: #E2DDFF, $alpha: 0.14), rgba($color: #C8C3FD, $alpha: 0.14));
  418. border-radius: 15rpx;
  419. box-shadow: 0rpx 3rpx 6rpx 0rpx rgba(0,0,0,0.16);
  420. .info {
  421. flex: 1;
  422. padding: 30rpx 30rpx 0 30rpx;
  423. font-size: 0;
  424. .title {
  425. align-items: flex-start;
  426. color: #000000;
  427. transform: translateX(-30rpx);
  428. .name {
  429. margin-bottom: 20rpx;
  430. display: inline-block;
  431. padding: 4rpx 60rpx 4rpx 28rpx;
  432. font-size: 30rpx;
  433. font-weight: 700;
  434. line-height: 1.2;
  435. color: #FFFFFF;
  436. background: rgba($color: #6851A7, $alpha: 0.69);
  437. border-top-right-radius: 21rpx;
  438. border-bottom-right-radius: 21rpx;
  439. }
  440. .label {
  441. margin-bottom: 14rpx;
  442. padding: 0 4rpx 4rpx 30rpx;
  443. box-sizing: border-box;
  444. font-size: 22rpx;
  445. font-weight: 500;
  446. color: rgba($color: #6851A7, $alpha: 0.68);
  447. border-bottom: 4rpx solid rgba($color: #6851A7, $alpha: 0.69);
  448. }
  449. }
  450. .tag {
  451. justify-content: flex-start;
  452. margin-bottom: 12rpx;
  453. column-gap: 12rpx;
  454. padding-left: 4rpx;
  455. font-size: 28rpx;
  456. font-weight: 600;
  457. color: #6851A7;
  458. &-icon {
  459. width: 42rpx;
  460. height: auto;
  461. }
  462. }
  463. .desc {
  464. font-size: 18rpx;
  465. font-weight: 500;
  466. white-space: pre-wrap;
  467. color: #000000;
  468. background: #ECEAFF;
  469. // border-radius: 16rpx;
  470. &-title {
  471. display: inline-block;
  472. padding: 4rpx 30rpx 4rpx 12rpx;
  473. font-size: 20rpx;
  474. font-weight: 600;
  475. color: #FFFFFF;
  476. background: #B7ACDC;
  477. border-top-right-radius: 15rpx;
  478. border-bottom-right-radius: 15rpx;
  479. }
  480. &-top {
  481. padding: 32rpx 24rpx 0 0;
  482. border-top-left-radius: 10rpx;
  483. border-top-right-radius: 10rpx;
  484. }
  485. &-bottom {
  486. margin-bottom: 30rpx;
  487. padding: 20rpx 24rpx 32rpx 24rpx;
  488. border-bottom-left-radius: 10rpx;
  489. border-bottom-right-radius: 10rpx;
  490. }
  491. }
  492. }
  493. .pic {
  494. // margin: 48rpx 9rpx 48rpx 0;
  495. margin: 0 0 30rpx 52rpx;
  496. width: 291rpx;
  497. height: 454rpx;
  498. // border-radius: 127rpx;
  499. border-radius: 10rpx;
  500. overflow: hidden;
  501. float: right;
  502. .img {
  503. width: 100%;
  504. height: 100%;
  505. }
  506. }
  507. &:nth-child(2n) {
  508. flex-direction: row-reverse;
  509. .info {
  510. .title {
  511. align-items: flex-end;
  512. transform: translateX(30rpx);
  513. .name {
  514. padding: 4rpx 28rpx 4rpx 60rpx;
  515. border-top-right-radius: 0;
  516. border-bottom-right-radius: 0;
  517. border-top-left-radius: 21rpx;
  518. border-bottom-left-radius: 21rpx;
  519. }
  520. .label {
  521. padding: 0 30rpx 4rpx 4rpx;
  522. }
  523. }
  524. .tag {
  525. justify-content: flex-end;
  526. padding-right: 24rpx;
  527. }
  528. .desc {
  529. &-title {
  530. padding: 4rpx 15rpx 4rpx 26rpx;
  531. border-top-right-radius: 0;
  532. border-bottom-right-radius: 0;
  533. border-top-left-radius: 15rpx;
  534. border-bottom-left-radius: 15rpx;
  535. }
  536. &-top {
  537. padding: 32rpx 0 0 24rpx;
  538. text-align: right;
  539. }
  540. }
  541. }
  542. .pic {
  543. // margin: 44rpx 14rpx 0 0;
  544. margin: 0 52rpx 30rpx 0;
  545. float: left;
  546. }
  547. }
  548. }
  549. .card + .card {
  550. margin-top: 24rpx;
  551. }
  552. }
  553. &.journal {
  554. .box {
  555. padding-top: 68rpx;
  556. .card {
  557. padding: 32rpx 26rpx 22rpx 26rpx;
  558. background: linear-gradient(to right, rgba($color: #E2DDFF, $alpha: 0.14), rgba($color: #C8C3FD, $alpha: 0.14));
  559. border-radius: 15rpx;
  560. box-shadow: 4rpx 4rpx 6rpx 0rpx rgba(0,0,0,0.105);
  561. .top {
  562. position: relative;
  563. min-height: 265rpx;
  564. .pic {
  565. position: absolute;
  566. left: 10rpx;
  567. bottom: 0;
  568. width: 236rpx;
  569. height: 356rpx;
  570. background: linear-gradient(rgba($color: #E2DDFF, $alpha: 0.54), rgba($color: #C8C3FD, $alpha: 0.54));
  571. border-radius: 6rpx;
  572. .img {
  573. width: 100%;
  574. height: 100%;
  575. border-radius: 6rpx;
  576. transform: translate(-10rpx, -10rpx);
  577. }
  578. }
  579. .info {
  580. min-height: 181rpx;
  581. padding: 0 0 0 278rpx;
  582. .name {
  583. padding-left: 6rpx;
  584. font-size: 32rpx;
  585. font-weight: 700;
  586. color: $uni-color;
  587. }
  588. .desc {
  589. margin-top: 24rpx;
  590. padding: 16rpx 20rpx;
  591. box-sizing: border-box;
  592. // font-size: 28rpx;
  593. font-size: 24rpx;
  594. line-height: 1.5;
  595. white-space: pre-wrap;
  596. font-weight: 700;
  597. color: #595757;
  598. background: rgba($color: #C8C3FD, $alpha: 0.26);
  599. border-radius: 6rpx;
  600. // overflow: hidden;
  601. // text-overflow: ellipsis;
  602. // display:-webkit-box; //作为弹性伸缩盒子模型显示。
  603. // -webkit-box-orient:vertical; //设置伸缩盒子的子元素排列方式--从上到下垂直排列
  604. // -webkit-line-clamp:3; //显示的行
  605. }
  606. }
  607. }
  608. .main {
  609. margin-top: 18rpx;
  610. padding: 20rpx;
  611. font-size: 18rpx;
  612. line-height: 1.5;
  613. white-space: pre-wrap;
  614. color: #595757;
  615. background: rgba($color: #C8C3FD, $alpha: 0.26);
  616. // border-radius: 30rpx 0rpx 30rpx 0rpx;
  617. border-radius: 6rpx;
  618. }
  619. }
  620. &:nth-child(2n + 1) {
  621. .card {
  622. .top {
  623. .info {
  624. padding: 0 278rpx 0 0;
  625. }
  626. .pic {
  627. left: unset;
  628. right: 0;
  629. }
  630. }
  631. }
  632. }
  633. }
  634. .box + .box {
  635. margin-top: 33rpx;
  636. }
  637. }
  638. &.attachment {
  639. .file {
  640. justify-content: space-between;
  641. padding: 32rpx 15rpx 32rpx 26rpx;
  642. background: #f8f8f8;
  643. border-radius: 15rpx;
  644. &-info {
  645. display: flex;
  646. // align-items: flex-end;
  647. align-items: center;
  648. }
  649. &-icon {
  650. width: 64rpx;
  651. height: auto;
  652. }
  653. &-detail {
  654. margin-left: 14rpx;
  655. .title {
  656. font-size: 30rpx;
  657. color: #000000;
  658. }
  659. .desc {
  660. font-size: 28rpx;
  661. color: #999999;
  662. }
  663. }
  664. .btn {
  665. padding: 7rpx 30rpx;
  666. font-size: 28rpx;
  667. color: #FFFFFF;
  668. background: $uni-color;
  669. border-radius: 27rpx;
  670. }
  671. }
  672. .file + .file {
  673. margin-top: 21rpx;
  674. }
  675. }
  676. }
  677. }
  678. .bottom {
  679. position: fixed;
  680. left: 0;
  681. bottom: 0;
  682. width: 100vw;
  683. height: 94rpx;
  684. padding-bottom: env(safe-area-inset-bottom);
  685. background: #FFFFFF;
  686. box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.16);
  687. .btns {
  688. column-gap: 34rpx;
  689. }
  690. .btn {
  691. padding: 12rpx 70rpx;
  692. font-size: 32rpx;
  693. font-weight: 600;
  694. line-height: 1.2;
  695. color: #FFFFFF;
  696. background: $uni-color;
  697. border-radius: 30rpx;
  698. &-share {
  699. background: #9E96CC;
  700. }
  701. }
  702. }
  703. </style>