GoodDetail.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <template>
  2. <div class="timeline-container">
  3. <!-- <el-breadcrumb separator="/" style="margin-bottom: 13px">
  4. <el-breadcrumb-item :to="{ path: '/home/pointsMall' }">积分商城</el-breadcrumb-item>
  5. <el-breadcrumb-item>商品详情</el-breadcrumb-item>
  6. </el-breadcrumb> -->
  7. <div class="timeline-content">
  8. <div class="timeline-entry-list">
  9. <div class="article">
  10. <!-- <div class="article-title">
  11. {{ data.title }}
  12. </div>
  13. <div class="author-info-block">
  14. <div class="meta-box">
  15. {{ data.createTime }}
  16. </div>
  17. </div> -->
  18. <div class="markdown-body" v-html="data.skuDesc"></div>
  19. </div>
  20. </div>
  21. <SiderInfo></SiderInfo>
  22. </div>
  23. </div>
  24. </template>
  25. <script>
  26. import { integralInfo } from "@/api/allApi";
  27. import SiderInfo from '@/components/SiderInfo.vue'
  28. export default{
  29. components: {
  30. SiderInfo
  31. },
  32. data() {
  33. return {
  34. data:{},
  35. };
  36. },
  37. created(){
  38. this.getDataInfo(this.$route.query.id);
  39. },
  40. methods:{
  41. getDataInfo(id){
  42. integralInfo({skuId:id}).then(response => {
  43. this.data = response.data.data;
  44. }).catch(() => {})
  45. },
  46. },
  47. }
  48. </script>
  49. <style scoped>
  50. .userInfo{
  51. width: 65px;
  52. position: absolute;
  53. top: 37%;
  54. left: 46%;
  55. display: flex;
  56. flex-direction: column;
  57. justify-content: center;
  58. align-content: center;
  59. }
  60. .timeline-container{
  61. margin: 0 auto;
  62. }
  63. .timeline-entry-list{
  64. margin-right: 17.5rem;
  65. border-radius: 2px;
  66. width: 720px;
  67. position: relative;
  68. }
  69. .timeline-entry-list .article{
  70. border-radius: 4px 4px 0 0;
  71. position: relative;
  72. padding-top: 2.667rem;
  73. z-index: 1;
  74. overflow: hidden;
  75. background-color: #fff;
  76. padding-left: 2.67rem;
  77. padding-right: 2.67rem;
  78. margin-bottom: 2rem;
  79. box-sizing: border-box;
  80. }
  81. .article .article-title{
  82. margin: 0 0 1rem;
  83. font-size: 1.667rem;
  84. font-weight: 600;
  85. line-height: 1.31;
  86. color: #252933;
  87. }
  88. .article .author-info-block{
  89. display: flex;
  90. align-items: center;
  91. margin-bottom: 1.667rem
  92. }
  93. .article .markdown-body {
  94. overflow: hidden;
  95. line-height: 1.75;
  96. font-size: 15px;
  97. /* background-image: linear-gradient(90deg,rgba(72,42,10,.05) 5%,rgba(72,42,10,0) 0),linear-gradient(1turn,rgba(72,42,10,.05) 5%,rgba(72,42,10,0) 0); */
  98. background-size: 20px 20px;
  99. background-position: 50%;
  100. padding-top: 0!important;
  101. min-height: 280px;
  102. }
  103. .markdown-body img {
  104. max-width: 100%;
  105. }
  106. .markdown-body p {
  107. color: #412c0c;
  108. letter-spacing: 1px;
  109. font-weight: 400;
  110. }
  111. .author-info-block .meta-box{
  112. font-size: 1rem;
  113. color: #8a919f;
  114. margin-top: 2px;
  115. line-height: 22px;
  116. }
  117. </style>