1.vue 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <template>
  2. <div>
  3. <div :class="'mainTopBg' + skinId"></div>
  4. <div :class="'mainBox' + skinId">
  5. <div class="mainTitle">{{newsDetail.con_title}} <em></em></div>
  6. <div v-html="newsDetail.content" class="mainContent"></div>
  7. </div>
  8. <div :class="'mainBottomBg' + skinId"></div>
  9. </div>
  10. </template>
  11. <script setup>
  12. const props = defineProps({
  13. newsDetail: Object,//新闻详情
  14. skinId: Number,//皮肤id
  15. });
  16. </script>
  17. <style lang="less" scoped>
  18. //基本样式 start ---------------------------------------->
  19. .mainBox1 {
  20. box-sizing: border-box;
  21. padding:27px 80px;
  22. min-height: 600px;
  23. .mainTitle {
  24. font-size: 26px;
  25. color:#333;
  26. height: 65px;
  27. font-weight: bold;
  28. text-align: center;
  29. border-bottom: 1px solid #D9D9D9;
  30. margin-bottom: 40px;
  31. }
  32. div {
  33. text-indent: 2em;
  34. font-size: 20px;
  35. line-height: 36px;
  36. color:#333;
  37. }
  38. background:url('http://img.bjzxtw.org.cn/pre/image/png/20250624/1750754885628516.png') repeat-y;
  39. }
  40. .mainTopBg1 {
  41. width: 1200px;
  42. height: 7px;
  43. background: url('http://img.bjzxtw.org.cn/pre/image/png/20250624/1750754872561241.png') no-repeat;
  44. margin-top: 28px;
  45. }
  46. .mainBottomBg1 {
  47. width: 1200px;
  48. height: 7px;
  49. background: url('http://img.bjzxtw.org.cn/pre/image/png/20250624/1750754893326585.png') no-repeat center center;
  50. }
  51. .mainContent {
  52. min-height: 600px;
  53. }
  54. //基本样式 end ---------------------------------------->
  55. // 样式7 start ---------------------------------------->
  56. .mainTitle {
  57. font-size: 20px;
  58. color:#A72213;
  59. height: 47px;
  60. line-height: 47px;
  61. font-weight: bold;
  62. border-bottom: 1px solid #DCDDDF;
  63. border-top: 2px solid #A72213;
  64. margin-bottom: 30px;
  65. }
  66. // 样式7 end ---------------------------------------->
  67. </style>