chengGuo.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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 style="width: 90%; margin: auto; margin-bottom: 30rpx">
  6. <u-swiper
  7. @click="clickImg"
  8. :list="swiperList"
  9. imgMode="aspectFill"
  10. :height="160"
  11. :indicator="true"
  12. radius="5"
  13. :autoplay="true"
  14. :circular="true"
  15. indicatorStyle="bottom: 10px"
  16. indicatorMode="dot"
  17. indicatorActiveColor="#fff"
  18. indicatorInactiveColor="rgba(255, 255, 255, 0.35)"
  19. ></u-swiper>
  20. </view>
  21. <text lines="1" class="text_4">详情介绍</text>
  22. <view class="text-wrapper_1">
  23. <view class="text_5"><u-parse :content="list.content"></u-parse></view>
  24. </view>
  25. </view>
  26. </view>
  27. </template>
  28. <script>
  29. let that;
  30. export default {
  31. data() {
  32. return {
  33. swiperList: [],
  34. list: {}
  35. };
  36. },
  37. onLoad(o) {
  38. that = this;
  39. this.getContentDetail(o.id);
  40. },
  41. methods: {
  42. getContentDetail(id) {
  43. this.$api.getContentDetail({ main_body_id: 1, id: id }, function (res) {
  44. // console.log(res, '成果详情');
  45. that.list = res.data;
  46. that.swiperList = res.data.images;
  47. });
  48. },
  49. // 图片预览
  50. clickImg(index) {
  51. // console.log(index, 555);
  52. var imgs = this.list.images;
  53. let temp = [imgs[index]];
  54. // console.log('temp', temp);
  55. uni.previewImage({
  56. urls: imgs,
  57. current: index,
  58. success: function (data) {
  59. console.log(data);
  60. },
  61. fail: function (err) {
  62. console.log(err.errMsg);
  63. }
  64. });
  65. }
  66. }
  67. };
  68. </script>
  69. <style>
  70. .box {
  71. height: auto;
  72. width: 100%;
  73. padding-bottom: 50rpx;
  74. background-image: url('https://huli-app.wenlvti.net/app_static/wuyuan/static/shouhu/wyj-feiyi3-001.png');
  75. background-attachment: fixed;
  76. background-repeat: repeat-y;
  77. background-size: 100% 100%;
  78. min-height: 100%;
  79. height: auto;
  80. /* background-color: #fff9e9; */
  81. }
  82. /deep/.u-swiper-indicator__wrapper__dot--active {
  83. width: 5px !important;
  84. }
  85. .group_13 {
  86. width: 100%;
  87. height: 420rpx;
  88. }
  89. .box_2 {
  90. box-shadow: 0px 30px 60px 0px rgba(19, 104, 158, 0.1);
  91. background-color: rgba(255, 255, 255, 1);
  92. border-radius: 20rpx;
  93. position: relative;
  94. width: 690rpx;
  95. height: 322rpx;
  96. display: flex;
  97. flex-direction: column;
  98. margin: 0 0 40rpx 30rpx;
  99. box-shadow: rgba(0, 0, 0, 0.1) 0px 20rpx 15px -6rpx, rgba(0, 0, 0, 0.05) 0px 8rpx 12rpx -4rpx;
  100. }
  101. .text_4 {
  102. width: 112rpx;
  103. height: 28rpx;
  104. overflow-wrap: break-word;
  105. color: rgba(49, 37, 32, 1);
  106. font-size: 32rpx;
  107. font-family: SourceHanSansCN-Bold;
  108. font-weight: 700;
  109. text-align: left;
  110. white-space: nowrap;
  111. line-height: 28rpx;
  112. margin: 60rpx 0 0 47rpx;
  113. }
  114. .text-wrapper_1 {
  115. /* background-color: rgba(255, 255, 255, 1); */
  116. border-radius: 20rpx;
  117. /* height: 500rpx; */
  118. display: flex;
  119. flex-direction: column;
  120. width: 686rpx;
  121. margin: 0 0 0 32rpx;
  122. }
  123. .text_5 {
  124. width: 652rpx;
  125. /* height: 279rpx; */
  126. overflow-wrap: break-word;
  127. font-size: 28rpx;
  128. font-family: SourceHanSansCN-Regular;
  129. font-weight: normal;
  130. text-align: justifyLeft;
  131. line-height: 48rpx;
  132. margin: 44rpx 0 0 16rpx;
  133. overflow: scroll;
  134. text-indent: 2rem;
  135. }
  136. </style>