吉光研途前端代码仓库
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.

86 lines
1.7 KiB

3 months ago
  1. <template>
  2. <view class="info">
  3. <view class="title" v-if="data.title">{{ data.title }}</view>
  4. <view class="process" v-if="data.process">
  5. <uv-parse :content="data.process"></uv-parse>
  6. </view>
  7. <view class="content" v-if="data.shortTitle">
  8. {{ data.shortTitle || '' }}
  9. </view>
  10. <view class="flex tag" v-if="data.tags">
  11. <view class="tag-item" v-for="(item, index) in data.tags" :key="index">
  12. {{ item }}
  13. </view>
  14. </view>
  15. <view class="btn">
  16. <image class="btn-img" src="@/static/image/icon-detail.png" mode="widthFix"></image>
  17. </view>
  18. </view>
  19. </template>
  20. <script>
  21. export default {
  22. props: {
  23. data: {
  24. type: Object,
  25. default() {
  26. return {}
  27. }
  28. }
  29. }
  30. }
  31. </script>
  32. <style scoped lang="scss">
  33. .info {
  34. padding: 30rpx 24rpx 24rpx 24rpx;
  35. .title {
  36. font-size: 32rpx;
  37. font-weight: 700;
  38. color: #6851A7;
  39. }
  40. .process {
  41. margin-top: 7rpx;
  42. display: inline-block;
  43. font-size: 0;
  44. color: #FFFFFF;
  45. padding: 3rpx 16rpx;
  46. background: #6851A7;
  47. border-radius: 13rpx;
  48. }
  49. .content {
  50. margin-top: 24rpx;
  51. font-size: 18rpx;
  52. font-weight: 500;
  53. color: #3E3A39;
  54. }
  55. .tag {
  56. margin-top: 16rpx;
  57. justify-content: flex-start;
  58. flex-wrap: wrap;
  59. column-gap: 12rpx;
  60. row-gap: 8rpx;
  61. &-item {
  62. padding: 4rpx 8rpx;
  63. font-size: 16rpx;
  64. font-weight: 700;
  65. color: #FFFFFF;
  66. background: rgba($color: #6851A7, $alpha: 0.59);
  67. border-radius: 10rpx;
  68. }
  69. }
  70. .btn {
  71. margin-top: 16rpx;
  72. width: 190rpx;
  73. height: auto;
  74. &-img {
  75. width: 100%;
  76. height: auto;
  77. }
  78. }
  79. }
  80. </style>