detail-content-card.vue 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <template>
  2. <view class="detail-content-card bg-white ss-m-x-20 ss-p-t-20">
  3. <view class="card-header ss-flex ss-col-center ss-m-b-30 ss-m-l-20">
  4. <view class="line"></view>
  5. <view class="title ss-m-l-20 ss-m-r-20">详情</view>
  6. </view>
  7. <view class="card-content">
  8. <mp-html :content="content"></mp-html>
  9. </view>
  10. </view>
  11. </template>
  12. <script setup>
  13. const props = defineProps({
  14. content: {
  15. type: String,
  16. default: '',
  17. },
  18. });
  19. </script>
  20. <style lang="scss" scoped>
  21. .detail-content-card {
  22. .card-header {
  23. .line {
  24. width: 6rpx;
  25. height: 30rpx;
  26. background: linear-gradient(180deg, var(--ui-BG-Main) 0%, var(--ui-BG-Main-gradient) 100%);
  27. border-radius: 3rpx;
  28. }
  29. .title {
  30. font-size: 30rpx;
  31. font-weight: bold;
  32. }
  33. .des {
  34. font-size: 24rpx;
  35. color: $dark-9;
  36. }
  37. .more-btn {
  38. font-size: 24rpx;
  39. color: var(--ui-BG-Main);
  40. }
  41. }
  42. }
  43. :deep() {
  44. image {
  45. display: block;
  46. }
  47. }
  48. </style>