detail-content-card.vue 1.1 KB

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