| | |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="card"> |
| | | <view class="card" v-if="item.casesList"> |
| | | <view class="card-title"> |
| | | <view class="card-title-xian"></view> |
| | | <text>优秀项目案例 (40)</text> |
| | | <text>优秀项目案例 ({{item.casesList.length}})</text> |
| | | </view> |
| | | <view class="work"> |
| | | <view class="work-item" v-for="(child, index) in item.casesList" :key="index"> |
| | |
| | | </view> |
| | | <view class="left-info">{{child.detail}}</view> |
| | | </view> |
| | | <view class="right" v-if="child.fileList && child.fileList.length > 0" @click="yulan"> |
| | | <view class="right" v-if="child.fileList && child.fileList.length > 0" @click="yulan(index, child.fileList[0].url)"> |
| | | <image :src="child.fileList[0].url" mode="widthFix"></image> |
| | | <view class="right-num">共{{child.fileList.length}}张</view> |
| | | </view> |
| | |
| | | this.getDetails() |
| | | }, |
| | | methods: { |
| | | yulan(index, url) { |
| | | uni.previewImage({ |
| | | current: url, |
| | | urls: this.item.casesList[index].fileList.map(item => item.url) |
| | | }) |
| | | }, |
| | | zhankai() { |
| | | this.item.zhankai = !this.item.zhankai |
| | | }, |
| | |
| | | res.data.zhankai = false |
| | | res.data.contentCopy = res.data.content.substring(0, 30) + '...' |
| | | } |
| | | let arr = [] |
| | | res.data.fieldList.forEach(item => { |
| | | if (item.remark) { |
| | | arr.push(item) |
| | | } |
| | | }) |
| | | res.data.fieldList = arr; |
| | | this.item = res.data |
| | | } |
| | | }) |
| | |
| | | } |
| | | .item-info-a { |
| | | display: flex; |
| | | align-items: center; |
| | | align-items: flex-start; |
| | | text { |
| | | &:nth-child(1) { |
| | | flex-shrink: 0; |
| | | font-weight: 600; |
| | | font-size: 30rpx; |
| | | color: #222222; |
| | | } |
| | | &:nth-child(2) { |
| | | width: 300rpx; |
| | | font-weight: 400; |
| | | font-size: 24rpx; |
| | | color: #777777; |
| | | margin-left: 10rpx; |
| | | margin-top: 7rpx; |
| | | } |
| | | } |
| | | } |
| | |
| | | display: flex; |
| | | flex-wrap: wrap; |
| | | align-items: center; |
| | | margin-top: 8rpx; |
| | | margin-top: 16rpx; |
| | | .item-info-b-row { |
| | | padding: 0 8rpx; |
| | | box-sizing: border-box; |
| | |
| | | font-size: 22rpx; |
| | | color: #2E68C4; |
| | | margin-right: 8rpx; |
| | | margin-bottom: 8rpx; |
| | | &:last-child { |
| | | margin: 0; |
| | | margin-right: 0; |
| | | } |
| | | } |
| | | } |
| | |
| | | } |
| | | .item-info-d { |
| | | width: 100%; |
| | | line-height: 40rpx; |
| | | font-weight: 400; |
| | | font-size: 24rpx; |
| | | color: #333333; |
| | |
| | | .card-list-item { |
| | | display: flex; |
| | | flex-direction: column; |
| | | margin-bottom: 20rpx; |
| | | margin-bottom: 30rpx; |
| | | &:last-child { |
| | | margin: 0 !important; |
| | | } |
| | |
| | | font-weight: 500; |
| | | font-size: 28rpx; |
| | | color: #333333; |
| | | margin-bottom: 15rpx; |
| | | } |
| | | .card-list-item-text { |
| | | font-weight: 500; |
| | | font-weight: 400; |
| | | font-size: 26rpx; |
| | | color: #666666; |
| | | } |