detail-content-card.vue 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. import sheep from '@/sheep';
  14. const { safeAreaInsets } = sheep.$platform.device;
  15. const props = defineProps({
  16. content: {
  17. type: String,
  18. default: '',
  19. },
  20. });
  21. </script>
  22. <style lang="scss" scoped>
  23. .detail-content-card {
  24. .card-header {
  25. .line {
  26. width: 6rpx;
  27. height: 30rpx;
  28. background: linear-gradient(180deg, var(--ui-BG-Main) 0%, var(--ui-BG-Main-gradient) 100%);
  29. border-radius: 3rpx;
  30. }
  31. .title {
  32. font-size: 30rpx;
  33. font-weight: bold;
  34. }
  35. .des {
  36. font-size: 24rpx;
  37. color: $dark-9;
  38. }
  39. .more-btn {
  40. font-size: 24rpx;
  41. color: var(--ui-BG-Main);
  42. }
  43. }
  44. }
  45. </style>