123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142 |
- <template>
- <view class="box">
- <u-navbar :autoBack="true" title="成果展示" bgColor="rgba(255,255,255,0)" :placeholder="true" titleStyle="font-weight:bold;color:#000000"></u-navbar>
- <view class="">
- <view style="width: 90%; margin: auto; margin-bottom: 30rpx">
- <u-swiper
- @click="clickImg"
- :list="swiperList"
- imgMode="aspectFill"
- :height="160"
- :indicator="true"
- radius="5"
- :autoplay="true"
- :circular="true"
- indicatorStyle="bottom: 10px"
- indicatorMode="dot"
- indicatorActiveColor="#fff"
- indicatorInactiveColor="rgba(255, 255, 255, 0.35)"
- ></u-swiper>
- </view>
- <text lines="1" class="text_4">详情介绍</text>
- <view class="text-wrapper_1">
- <view class="text_5"><u-parse :content="list.content"></u-parse></view>
- </view>
- </view>
- </view>
- </template>
- <script>
- let that;
- export default {
- data() {
- return {
- swiperList: [],
- list: {}
- };
- },
- onLoad(o) {
- that = this;
- this.getContentDetail(o.id);
- },
- methods: {
- getContentDetail(id) {
- this.$api.getContentDetail({ main_body_id: 1, id: id }, function (res) {
- // console.log(res, '成果详情');
- that.list = res.data;
- that.swiperList = res.data.images;
- });
- },
- // 图片预览
- clickImg(index) {
- // console.log(index, 555);
- var imgs = this.list.images;
- let temp = [imgs[index]];
- // console.log('temp', temp);
- uni.previewImage({
- urls: imgs,
- current: index,
- success: function (data) {
- console.log(data);
- },
- fail: function (err) {
- console.log(err.errMsg);
- }
- });
- }
- }
- };
- </script>
- <style>
- .box {
- height: auto;
- width: 100%;
- padding-bottom: 50rpx;
- background-image: url('https://huli-app.wenlvti.net/app_static/wuyuan/static/shouhu/wyj-feiyi3-001.png');
- background-attachment: fixed;
- background-repeat: repeat-y;
- background-size: 100% 100%;
- min-height: 100%;
- height: auto;
- /* background-color: #fff9e9; */
- }
- /deep/.u-swiper-indicator__wrapper__dot--active {
- width: 5px !important;
- }
- .group_13 {
- width: 100%;
- height: 420rpx;
- }
- .box_2 {
- box-shadow: 0px 30px 60px 0px rgba(19, 104, 158, 0.1);
- background-color: rgba(255, 255, 255, 1);
- border-radius: 20rpx;
- position: relative;
- width: 690rpx;
- height: 322rpx;
- display: flex;
- flex-direction: column;
- margin: 0 0 40rpx 30rpx;
- box-shadow: rgba(0, 0, 0, 0.1) 0px 20rpx 15px -6rpx, rgba(0, 0, 0, 0.05) 0px 8rpx 12rpx -4rpx;
- }
- .text_4 {
- width: 112rpx;
- height: 28rpx;
- overflow-wrap: break-word;
- color: rgba(49, 37, 32, 1);
- font-size: 32rpx;
- font-family: SourceHanSansCN-Bold;
- font-weight: 700;
- text-align: left;
- white-space: nowrap;
- line-height: 28rpx;
- margin: 60rpx 0 0 47rpx;
- }
- .text-wrapper_1 {
- /* background-color: rgba(255, 255, 255, 1); */
- border-radius: 20rpx;
- /* height: 500rpx; */
- display: flex;
- flex-direction: column;
- width: 686rpx;
- margin: 0 0 0 32rpx;
- }
- .text_5 {
- width: 652rpx;
- /* height: 279rpx; */
- overflow-wrap: break-word;
- font-size: 28rpx;
- font-family: SourceHanSansCN-Regular;
- font-weight: normal;
- text-align: justifyLeft;
- line-height: 48rpx;
- margin: 44rpx 0 0 16rpx;
- overflow: scroll;
- text-indent: 2rem;
- }
- </style>
|