GouJian.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <template>
  2. <view class="body">
  3. <u-navbar :title="item.title + '介绍'" bgColor="rgba(255,255,255,0.3)" :placeholder="true" :autoBack="true" titleStyle="font-weight:bold;color:#000000"></u-navbar>
  4. <u-swiper :list="list" keyName="image" :height="300" :indicator="true"></u-swiper>
  5. <view class="box">
  6. <!-- <view style="color: #940000; font-size: 24rpx; margin-left: 24rpx; display: flex; align-items: center; margin-top: 40rpx">
  7. <view style="font-weight: 700; font-size: 18px">构件介绍</view>
  8. </view> -->
  9. <!-- <view class="info">
  10. <view style="width: 40%">创建年代: {{ item.age }}</view>
  11. <view style="width: 40%">文物类型:{{ item.type }}</view>
  12. <view style="width: 40%">文物等级:{{ item.level }}</view>
  13. <view style="width: 40%">所属区域:{{ item.area }}</view>
  14. </view> -->
  15. <view style="color: #940000; font-size: 24rpx; margin-left: 24rpx; margin-top: 40rpx; margin-bottom: 30rpx">
  16. <view style="font-weight: 700; font-size: 18px">构件介绍</view>
  17. </view>
  18. <view style="width: 92% margin: auto;">
  19. <image style="margin-left: 50rpx; border-radius: 10rpx" :src="item.image"></image>
  20. </view>
  21. <view style="width: 92%; margin: auto; margin-top: 10rpx">
  22. <u-parse :content="item.content"></u-parse>
  23. </view>
  24. </view>
  25. </view>
  26. </template>
  27. <script>
  28. let that = this;
  29. export default {
  30. data() {
  31. return {
  32. item: {},
  33. list: []
  34. };
  35. },
  36. onLoad(e) {
  37. that = this;
  38. this.getContentDetail(e.id);
  39. },
  40. methods: {
  41. // 详情
  42. getContentDetail(id) {
  43. this.$api.getContentDetail(
  44. {
  45. main_body_id: 1,
  46. id: id
  47. },
  48. function (res) {
  49. // console.log(res, 666666666);
  50. that.item = res.data;
  51. that.list = Object.values(res.data.association_me_list);
  52. }
  53. );
  54. }
  55. }
  56. };
  57. </script>
  58. <style>
  59. .box .info {
  60. display: flex;
  61. justify-content: space-between;
  62. flex-wrap: wrap;
  63. margin: 20rpx;
  64. margin-top: 8px;
  65. }
  66. .box .info > view {
  67. margin-top: 10px;
  68. font-size: 14px;
  69. margin-left: 4px;
  70. color: #940000;
  71. }
  72. .box .u-info {
  73. margin: 20rpx;
  74. }
  75. .box .text {
  76. margin: 20rpx;
  77. }
  78. .box {
  79. height: auto;
  80. width: 100%;
  81. background-image: url('https://huli-app.wenlvti.net/app_static/wuyuan/static/shouhu/wyj-feiyi3-001.png');
  82. background-size: 100% 100%;
  83. background-attachment: fixed;
  84. border-radius: 16px 16px 0 0;
  85. position: relative;
  86. top: -20px;
  87. padding-top: 10rpx;
  88. }
  89. .body {
  90. background-image: url('https://huli-app.wenlvti.net/app_static/wuyuan/static/wenwu/wyj-jiemian1-BJ.png');
  91. background-size: 100% 100%;
  92. background-attachment: fixed;
  93. height: auto;
  94. }
  95. .boxs > view {
  96. overflow: hidden;
  97. width: 355px;
  98. height: 160px;
  99. border-radius: 5px;
  100. margin-bottom: 30px;
  101. }
  102. .text-img-img {
  103. display: flex;
  104. overflow: none;
  105. overflow-x: scroll;
  106. margin-top: 5rpx;
  107. }
  108. .text-img-img > view {
  109. color: #940000;
  110. margin-right: 10px;
  111. }
  112. .text-img-info {
  113. color: #940000;
  114. display: flex;
  115. justify-content: space-between;
  116. }
  117. </style>