1.vue 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <template>
  2. <div>
  3. <div :class="'mainTopBg' + skinId"></div>
  4. <div :class="'mainBox' + skinId">
  5. <div class="mainTitle">{{newsDetail.con_title}}</div>
  6. <div v-html=" newsDetail.content"></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. //样式1
  19. .mainBox1 {
  20. box-sizing: border-box;
  21. padding:27px 80px;
  22. .mainTitle {
  23. font-size: 26px;
  24. color:#333;
  25. height: 65px;
  26. font-weight: bold;
  27. text-align: center;
  28. border-bottom: 1px solid #D9D9D9;
  29. margin-bottom: 40px;
  30. }
  31. div {
  32. text-indent: 2em;
  33. font-size: 20px;
  34. line-height: 36px;
  35. color:#333;
  36. }
  37. background:url('http://img.bjzxtw.org.cn/pre/image/png/20250624/1750754885628516.png') repeat-y;
  38. }
  39. .mainTopBg1 {
  40. width: 1200px;
  41. height: 7px;
  42. background: url('http://img.bjzxtw.org.cn/pre/image/png/20250624/1750754872561241.png') no-repeat;
  43. margin-top: 28px;
  44. }
  45. .mainBottomBg1 {
  46. width: 1200px;
  47. height: 7px;
  48. background: url('http://img.bjzxtw.org.cn/pre/image/png/20250624/1750754893326585.png') no-repeat center center;
  49. }
  50. //样式2
  51. .mainBox2 {
  52. box-sizing: border-box;
  53. padding:27px 80px;
  54. .mainTitle {
  55. font-size: 26px;
  56. color:#333;
  57. height: 65px;
  58. font-weight: bold;
  59. text-align: center;
  60. border-bottom: 1px solid #D9D9D9;
  61. margin-bottom: 40px;
  62. }
  63. div {
  64. text-indent: 2em;
  65. font-size: 20px;
  66. line-height: 36px;
  67. color:#333;
  68. }
  69. background:url('http://img.bjzxtw.org.cn/pre/image/png/20250723/1753239637376332.png') repeat-y;
  70. }
  71. .mainTopBg2 {
  72. width: 1200px;
  73. height: 7px;
  74. background: url('http://img.bjzxtw.org.cn/pre/image/png/20250723/1753239184498080.png') no-repeat;
  75. margin-top: 28px;
  76. }
  77. .mainBottomBg2 {
  78. width: 1200px;
  79. height: 7px;
  80. background: url('http://img.bjzxtw.org.cn/pre/image/png/20250723/1753239195441541.png') no-repeat center center;
  81. }
  82. </style>