<template>
|
<view class="box">
|
<view class="item" v-if="item">
|
<view class="item-tx">
|
<image :src="item.fullImgurl" mode="widthFix"></image>
|
</view>
|
<view class="item-info">
|
<view class="item-info-a">
|
<text>{{item.name}}</text>
|
<template v-if="item.levelName && item.positon">
|
<text>{{item.levelName}}|{{item.positon}}</text>
|
</template>
|
<template v-if="item.levelName && !item.positon">
|
<text>{{item.levelName}}</text>
|
</template>
|
<template v-if="!item.levelName && item.positon">
|
<text>{{item.positon}}</text>
|
</template>
|
</view>
|
<view class="item-info-b" v-if="item.typeList && item.typeList.length > 0">
|
<view class="item-info-b-row" v-for="(child, i) in item.typeList" :key="i">{{child.name}}</view>
|
</view>
|
<view class="item-info-c">
|
<view class="item-info-c-item">
|
<view class="item-info-c-item-label">从业年限:</view>
|
<view class="item-info-c-item-val">{{item.workYears}}年</view>
|
</view>
|
<view class="item-info-c-item">
|
<view class="item-info-c-item-label">近半年服务商场数:</view>
|
<view class="item-info-c-item-val">{{item.serveNum}}个</view>
|
</view>
|
</view>
|
<view class="item-info-d" v-if="item.isShow">
|
{{item.zhankai ? item.content : item.contentCopy}}<text @click.stop="zhankai(item)">{{item.zhankai ? '收起' : '更多'}}</text>
|
</view>
|
<view class="item-info-d" v-else>
|
{{item.content}}
|
</view>
|
<view class="item-info-price">
|
<text>标准收费</text>
|
<text>{{item.fee}}</text>
|
</view>
|
</view>
|
</view>
|
<view class="card">
|
<view class="card-title">
|
<view class="card-title-xian"></view>
|
<text>擅长领域</text>
|
</view>
|
<view class="card-list">
|
<view class="card-list-item" v-for="(child, index) in item.fieldList" :key="index">
|
<view class="card-list-item-title">{{child.name}}:</view>
|
<view class="card-list-item-text">{{child.remark}}</view>
|
</view>
|
</view>
|
</view>
|
<view class="card">
|
<view class="card-title">
|
<view class="card-title-xian"></view>
|
<text>优秀项目案例 (40)</text>
|
</view>
|
<view class="work">
|
<view class="work-item" v-for="(child, index) in item.casesList" :key="index">
|
<view class="left">
|
<view class="left-title">{{child.name}}</view>
|
<view class="left-time">
|
<image src="/static/ic_time@2x.png" mode="widthFix"></image>
|
<text>{{child.startDate}} ~ {{child.endDate}}</text>
|
</view>
|
<view class="left-info">{{child.detail}}</view>
|
</view>
|
<view class="right">
|
<image src="/static/logo.png" mode="widthFix"></image>
|
</view>
|
</view>
|
</view>
|
</view>
|
</view>
|
</template>
|
|
<script>
|
export default {
|
data() {
|
return {
|
id: null,
|
item: null,
|
};
|
},
|
onLoad(option) {
|
this.id = option.id
|
this.getDetails()
|
},
|
methods: {
|
getDetails() {
|
this.$u.api.memberDetail({
|
id: this.id
|
}).then(res => {
|
if (res.code === 200) {
|
console.log(res)
|
res.data.isShow = false
|
if (res.data.content && res.data.content.length > 30) {
|
res.data.isShow = true
|
res.data.zhankai = false
|
res.data.contentCopy = res.data.content.substring(0, 30) + '...'
|
}
|
this.item = res.data
|
}
|
})
|
}
|
}
|
}
|
</script>
|
|
<style>
|
page {
|
background-color: #f7f7f7;
|
}
|
</style>
|
<style lang="scss" scoped>
|
.box {
|
width: 100%;
|
.item {
|
width: 100%;
|
background: #FFFFFF;
|
border-radius: 8rpx;
|
padding: 24rpx;
|
box-sizing: border-box;
|
display: flex;
|
align-items: flex-start;
|
justify-content: space-between;
|
margin-bottom: 20rpx;
|
&:last-child {
|
margin: 0 !important;
|
}
|
.item-tx {
|
flex-shrink: 0;
|
width: 128rpx;
|
height: 168rpx;
|
border-radius: 8rpx;
|
overflow: hidden;
|
margin-right: 20rpx;
|
image {
|
width: 100%;
|
}
|
}
|
.item-info {
|
flex: 1;
|
display: flex;
|
flex-direction: column;
|
position: relative;
|
.item-info-price {
|
position: absolute;
|
right: 0;
|
top: 0;
|
display: flex;
|
align-items: flex-end;
|
flex-direction: column;
|
text {
|
&:nth-child(1) {
|
font-weight: 400;
|
font-size: 22rpx;
|
color: #FF7000;
|
}
|
&:nth-child(2) {
|
font-weight: 600;
|
font-size: 30rpx;
|
color: #FF7000;
|
&::after {
|
content: "元/周";
|
font-weight: 600;
|
font-size: 20rpx;
|
color: #FF7000;
|
}
|
}
|
}
|
}
|
.item-info-a {
|
display: flex;
|
align-items: center;
|
text {
|
&:nth-child(1) {
|
font-weight: 600;
|
font-size: 30rpx;
|
color: #222222;
|
}
|
&:nth-child(2) {
|
font-weight: 400;
|
font-size: 24rpx;
|
color: #777777;
|
margin-left: 10rpx;
|
}
|
}
|
}
|
.item-info-b {
|
display: flex;
|
flex-wrap: wrap;
|
align-items: center;
|
margin-top: 8rpx;
|
.item-info-b-row {
|
padding: 0 8rpx;
|
box-sizing: border-box;
|
height: 40rpx;
|
line-height: 40rpx;
|
border-radius: 8rpx;
|
border: 1rpx solid #2E68C4;
|
font-weight: 400;
|
font-size: 22rpx;
|
color: #2E68C4;
|
margin-right: 8rpx;
|
&:last-child {
|
margin: 0;
|
}
|
}
|
}
|
.item-info-c {
|
width: 100%;
|
display: flex;
|
align-items: center;
|
justify-content: space-between;
|
margin-top: 20rpx;
|
.item-info-c-item {
|
display: flex;
|
align-items: center;
|
.item-info-c-item-label {
|
font-weight: 400;
|
font-size: 24rpx;
|
color: #777777;
|
}
|
.item-info-c-item-val {
|
font-weight: 400;
|
font-size: 24rpx;
|
color: #333333;
|
}
|
}
|
}
|
.item-info-d {
|
width: 100%;
|
font-weight: 400;
|
font-size: 24rpx;
|
color: #333333;
|
margin-top: 20rpx;
|
text {
|
color: #2E68C4;
|
}
|
}
|
}
|
}
|
.card {
|
width: 100%;
|
padding: 30rpx;
|
box-sizing: border-box;
|
background-color: #ffffff;
|
margin-top: 20rpx;
|
.card-title {
|
display: flex;
|
align-items: center;
|
margin-bottom: 22rpx;
|
.card-title-xian {
|
width: 6rpx;
|
height: 32rpx;
|
background: #2E68C4;
|
border-radius: 6rpx;
|
margin-right: 12rpx;
|
}
|
text {
|
font-weight: 600;
|
font-size: 32rpx;
|
color: #222222;
|
}
|
}
|
.work {
|
width: 100%;
|
.work-item {
|
width: 100%;
|
padding: 30rpx 0;
|
box-sizing: border-box;
|
display: flex;
|
align-items: flex-start;
|
border-bottom: 1rpx solid #E5E5E5;
|
.left {
|
flex: 1;
|
display: flex;
|
flex-direction: column;
|
.left-title {
|
font-weight: 600;
|
font-size: 30rpx;
|
color: #333333;
|
}
|
.left-time {
|
display: flex;
|
align-items: center;
|
margin: 20rpx 0;
|
image {
|
flex-shrink: 0;
|
width: 26rpx;
|
height: 26rpx;
|
margin-right: 10rpx;
|
}
|
text {
|
font-weight: 400;
|
font-size: 26rpx;
|
color: #666666;
|
}
|
}
|
.left-info {
|
font-weight: 400;
|
font-size: 26rpx;
|
color: #666666;
|
}
|
}
|
.right {
|
flex-shrink: 0;
|
width: 200rpx;
|
height: 150rpx;
|
overflow: hidden;
|
border-radius: 8rpx;
|
margin-left: 20rpx;
|
image {
|
width: 100%;
|
}
|
}
|
}
|
}
|
.card-list {
|
width: 100%;
|
.card-list-item {
|
display: flex;
|
flex-direction: column;
|
margin-bottom: 20rpx;
|
&:last-child {
|
margin: 0 !important;
|
}
|
.card-list-item-title {
|
font-weight: 500;
|
font-size: 28rpx;
|
color: #333333;
|
}
|
.card-list-item-text {
|
font-weight: 500;
|
font-size: 26rpx;
|
color: #666666;
|
}
|
}
|
}
|
}
|
}
|
</style>
|