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

91 lines
1.8 KiB

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. <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="tags.length">
  11. <view class="tag-item" v-for="(item, index) in 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. computed: {
  31. tags() {
  32. return this.data?.tag?.split?.('、') || []
  33. }
  34. },
  35. }
  36. </script>
  37. <style scoped lang="scss">
  38. .info {
  39. padding: 30rpx 24rpx 24rpx 24rpx;
  40. .title {
  41. font-size: 32rpx;
  42. font-weight: 700;
  43. color: #6851A7;
  44. }
  45. .process {
  46. margin-top: 7rpx;
  47. display: inline-block;
  48. font-size: 0;
  49. color: #FFFFFF;
  50. padding: 3rpx 16rpx;
  51. background: #6851A7;
  52. border-radius: 13rpx;
  53. }
  54. .content {
  55. margin-top: 24rpx;
  56. font-size: 18rpx;
  57. font-weight: 500;
  58. color: #3E3A39;
  59. }
  60. .tag {
  61. margin-top: 16rpx;
  62. justify-content: flex-start;
  63. flex-wrap: wrap;
  64. column-gap: 12rpx;
  65. row-gap: 8rpx;
  66. &-item {
  67. padding: 4rpx 10rpx;
  68. font-size: 16rpx;
  69. font-weight: 700;
  70. color: #FFFFFF;
  71. background: rgba($color: #6851A7, $alpha: 0.59);
  72. border-radius: 4rpx;
  73. }
  74. }
  75. .btn {
  76. margin-top: 16rpx;
  77. width: 190rpx;
  78. height: auto;
  79. &-img {
  80. width: 100%;
  81. height: auto;
  82. }
  83. }
  84. }
  85. </style>