chanPinXQ.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <template>
  2. <view class="box">
  3. <u-navbar :autoBack="true" title="产品详情" bgColor="rgba(255,255,255,0)" :placeholder="true" titleStyle="font-weight:bold;color:#000000"></u-navbar>
  4. <view class="">
  5. <view class="box_2">
  6. <image style="width: 100%; height: 100%" :src="list.image" />
  7. </view>
  8. <text lines="1" class="text_4">详情介绍</text>
  9. <view class="text-wrapper_1">
  10. <view class="text_5"><u-parse :content="list.content"></u-parse></view>
  11. </view>
  12. </view>
  13. </view>
  14. </template>
  15. <script>
  16. let that;
  17. export default {
  18. data() {
  19. return {
  20. list: {}
  21. };
  22. },
  23. onLoad(o) {
  24. that = this;
  25. this.getContentDetail(o.id);
  26. },
  27. methods: {
  28. getContentDetail(id) {
  29. this.$api.getContentDetail({ main_body_id: 1, id: id }, function (res) {
  30. console.log(res, '产品详情');
  31. that.list = res.data;
  32. });
  33. }
  34. }
  35. };
  36. </script>
  37. <style>
  38. .box {
  39. height: auto;
  40. width: 100%;
  41. padding-bottom: 50rpx;
  42. background-image: url('https://huli-app.wenlvti.net/app_static/wuyuan/static/shouhu/wyj-feiyi3-001.png');
  43. background-attachment: fixed;
  44. background-size: 100% 100%;
  45. background-repeat: repeat-y;
  46. min-height: 100%;
  47. height: auto;
  48. /* background-color: #fff9e9; */
  49. }
  50. .box_2 {
  51. box-shadow: 0px 30px 60px 0px rgba(19, 104, 158, 0.1);
  52. background-color: rgba(255, 255, 255, 1);
  53. border-radius: 20rpx;
  54. position: relative;
  55. width: 690rpx;
  56. height: 322rpx;
  57. display: flex;
  58. flex-direction: column;
  59. margin: 0 0 40rpx 30rpx;
  60. box-shadow: rgba(0, 0, 0, 0.1) 0px 20rpx 15px -6rpx, rgba(0, 0, 0, 0.05) 0px 8rpx 12rpx -4rpx;
  61. }
  62. .text_4 {
  63. width: 112rpx;
  64. height: 28rpx;
  65. overflow-wrap: break-word;
  66. color: rgba(49, 37, 32, 1);
  67. font-size: 32rpx;
  68. font-family: SourceHanSansCN-Bold;
  69. font-weight: 700;
  70. text-align: left;
  71. white-space: nowrap;
  72. line-height: 28rpx;
  73. margin: 60rpx 0 0 47rpx;
  74. }
  75. .text-group_4 {
  76. width: 263rpx;
  77. height: 61rpx;
  78. display: flex;
  79. flex-direction: column;
  80. justify-content: space-between;
  81. margin: 163rpx 0 0 180rpx;
  82. }
  83. .text-wrapper_1 {
  84. /* background-color: rgba(255, 255, 255, 1); */
  85. border-radius: 20rpx;
  86. /* height: 500rpx; */
  87. display: flex;
  88. flex-direction: column;
  89. width: 686rpx;
  90. margin: 10rpx 0 0 32rpx;
  91. }
  92. .text_5 {
  93. width: 652rpx;
  94. /* height: 279rpx; */
  95. overflow-wrap: break-word;
  96. font-size: 28rpx;
  97. font-family: SourceHanSansCN-Regular;
  98. font-weight: normal;
  99. text-align: justifyLeft;
  100. line-height: 48rpx;
  101. margin: 44rpx 0 0 16rpx;
  102. overflow: scroll;
  103. text-indent: 2rem;
  104. }
  105. </style>