feiyiXQ.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <template>
  2. <view class="body">
  3. <u-navbar :autoBack="true" :title="list.title" bgColor="rgba(255,255,255,0.3)" :placeholder="true" titleStyle="font-weight:bold;color:#121212"></u-navbar>
  4. <view>
  5. <u-swiper
  6. :list="imageList"
  7. imgMode="aspectFill"
  8. :height="240"
  9. :indicator="true"
  10. :autoplay="true"
  11. :circular="true"
  12. indicatorStyle="bottom: 25px"
  13. @click="bannerClick"
  14. indicatorMode="dot"
  15. indicatorActiveColor="#fff"
  16. indicatorInactiveColor="rgba(255, 255, 255, 0.35)"
  17. ></u-swiper>
  18. </view>
  19. <view class="box">
  20. <view class="" style="display: flex; align-items: center; color: #640000; font-size: 24rpx; margin-left: 28rpx; margin-top: 30rpx">
  21. <view style="margin-right: 20rpx; font-weight: 700; font-size: 36rpx">
  22. {{ list.title }}
  23. </view>
  24. <likeComponent @price="doChange" :list="list"></likeComponent>
  25. </view>
  26. <view class="info">
  27. <view>项目类型:{{ list.ich_type }}</view>
  28. <view style="width: 40%">项目等级:{{ list.level }}</view>
  29. </view>
  30. <view style="color: #940000; font-size: 24rpx; margin-left: 24rpx; display: flex; align-items: center; margin-top: 40rpx">
  31. <view style="font-weight: 700; font-size: 18px">详细介绍</view>
  32. </view>
  33. <view class="text">
  34. <u-parse :content="list.intro"></u-parse>
  35. </view>
  36. <view style="color: #940000; font-size: 24rpx; margin-left: 24rpx; display: flex; align-items: center; margin-top: 40rpx">
  37. <view style="font-weight: 700; font-size: 18px">传承人介绍</view>
  38. </view>
  39. <view class="text" style="letter-spacing: 0.2em">
  40. <u-parse :content="list.inheritor"></u-parse>
  41. </view>
  42. </view>
  43. </view>
  44. </template>
  45. <script>
  46. let that = this;
  47. export default {
  48. data() {
  49. return {
  50. main_body_id: '',
  51. time: null,
  52. timestamp: '1581170184',
  53. list: [],
  54. imageList: [
  55. 'https://huli-app.wenlvti.net/app_static/minnanhun/image/sy_lbt2.png',
  56. 'https://huli-app.wenlvti.net/app_static/minnanhun/image/sy_lbt1.png',
  57. 'https://huli-app.wenlvti.net/app_static/minnanhun/image/sy_lbt3.jpg',
  58. 'https://huli-app.wenlvti.net/app_static/minnanhun/image/sy_lbt4.jpg',
  59. 'https://huli-app.wenlvti.net/app_static/minnanhun/image/sy_lbt5.png'
  60. ]
  61. };
  62. },
  63. onLoad(e) {
  64. that = this;
  65. this.main_body_id = this.$db.get('main_body_id');
  66. this.getContentDetails(e.id);
  67. },
  68. methods: {
  69. // 详情
  70. getContentDetails(id) {
  71. this.$api.getContentDetails(
  72. {
  73. main_body_id: this.main_body_id,
  74. id: id
  75. },
  76. function (res) {
  77. that.list = res.data;
  78. console.log(that.list, 'list');
  79. }
  80. );
  81. },
  82. doChange(list) {
  83. this.list = list;
  84. }
  85. }
  86. };
  87. </script>
  88. <style>
  89. /deep/.u-swiper-indicator__wrapper__dot--active {
  90. width: 5px !important;
  91. }
  92. .box {
  93. height: auto;
  94. width: 100%;
  95. background-image: url('https://huli-app.wenlvti.net/app_static/wuyuan/static/shouhu/wyj-feiyi3-001.png');
  96. background-size: 100% 100%;
  97. background-attachment: fixed;
  98. border-radius: 32rpx 32rpx 0 0;
  99. position: relative;
  100. top: -40rpx;
  101. padding-top: 10rpx;
  102. }
  103. .u-info {
  104. margin: 20rpx;
  105. }
  106. .text {
  107. margin: 20rpx;
  108. }
  109. .info {
  110. /* display: flex;
  111. justify-content: space-between;
  112. flex-wrap: wrap; */
  113. margin: 20rpx;
  114. margin-top: 16rpx;
  115. }
  116. .info > view {
  117. margin-top: 20rpx;
  118. font-size: 28rpx;
  119. margin-left: 8rpx;
  120. color: #940000;
  121. }
  122. </style>