|
|
|
@ -1,77 +1,84 @@ |
|
|
|
<template> |
|
|
|
<view class="page__view"> |
|
|
|
<view :class="['page__view', hasPoster ? 'with-bottom' : '']"> |
|
|
|
|
|
|
|
<!-- 导航栏 --> |
|
|
|
<navbar :title="details.title" leftClick @leftClick="$utils.navigateBack" bgColor="#4883F9" color="#FFFFFF" /> |
|
|
|
|
|
|
|
<!-- 轮播图 --> |
|
|
|
<view class="swiper"> |
|
|
|
<uv-swiper :list="bannerList" keyName="image" :autoplay="bannerList.length > 1" :indicator="bannerList.length > 1" indicatorMode="dot" indicatorActiveColor="#4883F9" indicatorInactiveColor="#FFFFFF" height="424rpx"></uv-swiper> |
|
|
|
<view class="cover-image" :style="{ height: coverImageHeight }"> |
|
|
|
<image class="img" :src="details.image" mode="aspectFill" ></image> |
|
|
|
<view class="shadow"></view> |
|
|
|
</view> |
|
|
|
<view class="page-title"> |
|
|
|
<view v-if="details.process || (details.educationProcessList && details.educationProcessList.length)">{{ details.processTitle || '发表全流程辅导' }}</view> |
|
|
|
<view v-else>{{ details.title }}</view> |
|
|
|
<view class="page-title-line"></view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- 发表全流程辅导 --> |
|
|
|
<view class="section"> |
|
|
|
<view class="section-header">发表全流程辅导</view> |
|
|
|
<view class="section-content paragraph process"> |
|
|
|
<view class="paragraph"> |
|
|
|
<uv-parse :content="details.process"></uv-parse> |
|
|
|
</view> |
|
|
|
<view class="process" v-if="details.process || (details.educationProcessList && details.educationProcessList.length)"> |
|
|
|
<view class="process-custom" v-if="details.process"> |
|
|
|
<uv-parse :content="details.process"></uv-parse> |
|
|
|
</view> |
|
|
|
<view class="process-item" v-for="item in details.educationProcessList" :key="item.id"> |
|
|
|
<view class="process-item-title">{{ item.title }}</view> |
|
|
|
<view class="process-item-content">{{ item.content }}</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- 可发表方向 --> |
|
|
|
<view class="section"> |
|
|
|
<view class="section" v-if="details.educationTargetList && details.educationTargetList.length"> |
|
|
|
<view class="section-header"> |
|
|
|
<view class="section-header-line"></view> |
|
|
|
<view>可发表方向</view> |
|
|
|
<view>{{ details.targetTitle || '可发表方向' }}</view> |
|
|
|
</view> |
|
|
|
<view class="section-content direction"> |
|
|
|
<view class="table"> |
|
|
|
<view class="table-row" v-for="row in details.educationTargetList" :key="row.id"> |
|
|
|
<view class="table-cell">{{ row.title }}</view> |
|
|
|
<view class="table-cell">{{ row.description }}</view> |
|
|
|
<uv-read-more show-height="300rpx" :toggle="true" textIndent="0" closeText="展开" :shadowStyle="{ backgroundImage: 'linear-gradient(-180deg, rgba(255, 255, 255, 0) 0%, #fff 80%)', paddingTop: '100rpx', marginTop: '-100rpx' }"> |
|
|
|
<view class="table"> |
|
|
|
<view class="table-row" v-for="row in details.educationTargetList" :key="row.id"> |
|
|
|
<view class="table-cell">{{ row.title }}</view> |
|
|
|
<view class="table-cell">{{ row.description }}</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</uv-read-more> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- 师资介绍 --> |
|
|
|
<view class="section"> |
|
|
|
<view class="section" v-if="details.educationTeacherList && details.educationTeacherList.length"> |
|
|
|
<view class="section-header"> |
|
|
|
<view class="section-header-line"></view> |
|
|
|
<view>师资介绍</view> |
|
|
|
<view>{{ details.teacherTitle || '师资介绍' }}</view> |
|
|
|
</view> |
|
|
|
<view class="section-content teachers"> |
|
|
|
<view class="card" v-for="item in details.educationTeacherList" :key="item.id"> |
|
|
|
<view class="info"> |
|
|
|
<view class="pic"> |
|
|
|
<image class="img" :src="item.image" mode="aspectFill" ></image> |
|
|
|
</view> |
|
|
|
<view class="title"> |
|
|
|
<view class="name">{{ item.title }}</view> |
|
|
|
<view class="label"> |
|
|
|
<view class="label" v-if="item.career"> |
|
|
|
<view class="label-text">{{ item.career }}</view> |
|
|
|
<view class="label-line"></view> |
|
|
|
<view class="label-text display">{{ item.career }}</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="tag"> |
|
|
|
<image class="tag-icon" src="@/static/image/icon-degree.png" mode="widthFix"></image> |
|
|
|
<vie>{{ item.qualification }}</vie> |
|
|
|
<view>{{ item.qualification }}</view> |
|
|
|
</view> |
|
|
|
<view class="desc"> |
|
|
|
<view>专业经历:</view> |
|
|
|
<view>{{ item.experience }}</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="pic"> |
|
|
|
<image class="img" :src="item.image" mode="aspectFill"></image> |
|
|
|
<view class="desc desc-top">专业经历:</view> |
|
|
|
<view class="desc desc-bottom">{{ item.experience }}</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- 课程安排 --> |
|
|
|
<view class="section"> |
|
|
|
<view class="section" v-if="details.educationCourseList && details.educationCourseList.length"> |
|
|
|
<view class="section-header"> |
|
|
|
<view class="section-header-line"></view> |
|
|
|
<view>课程安排</view> |
|
|
|
<view>{{ details.courseTitle || '课程安排' }}</view> |
|
|
|
</view> |
|
|
|
<view class="section-content"> |
|
|
|
<view class="table"> |
|
|
|
@ -84,10 +91,10 @@ |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- 适用人群 --> |
|
|
|
<view class="section"> |
|
|
|
<view class="section" v-if="details.suit"> |
|
|
|
<view class="section-header"> |
|
|
|
<view class="section-header-line"></view> |
|
|
|
<view>适用人群</view> |
|
|
|
<view>{{ details.suitTitle || '适用人群' }}</view> |
|
|
|
</view> |
|
|
|
<view class="section-content target-audience"> |
|
|
|
<view class="paragraph"> |
|
|
|
@ -97,10 +104,10 @@ |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- 期刊推荐 --> |
|
|
|
<view class="section"> |
|
|
|
<view class="section" v-if="details.educationPeriodicalList && details.educationPeriodicalList.length"> |
|
|
|
<view class="section-header"> |
|
|
|
<view class="section-header-line"></view> |
|
|
|
<view>期刊推荐</view> |
|
|
|
<view>{{ details.periodicalTitle || '期刊推荐' }}</view> |
|
|
|
</view> |
|
|
|
<view class="section-content journal"> |
|
|
|
<view class="box" v-for="item in details.educationPeriodicalList" :key="item.id"> |
|
|
|
@ -123,10 +130,10 @@ |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- 附加材料 --> |
|
|
|
<view class="section"> |
|
|
|
<view class="section" v-if="details.educationDocumentList && details.educationDocumentList.length"> |
|
|
|
<view class="section-header"> |
|
|
|
<view class="section-header-line"></view> |
|
|
|
<view>附加材料</view> |
|
|
|
<view>{{ details.documentTitle || '附加材料' }}</view> |
|
|
|
</view> |
|
|
|
<view class="section-content attachment"> |
|
|
|
<view class="flex file" v-for="item in details.educationDocumentList" :key="item.id"> |
|
|
|
@ -139,7 +146,7 @@ |
|
|
|
</template> |
|
|
|
<view class="file-detail"> |
|
|
|
<view class="title">{{ item.title }}</view> |
|
|
|
<view class="desc">{{ `${getFileType(item.document)} ${item.size || '-'}MB` }}</view> |
|
|
|
<!-- <view class="desc">{{ `${getFileType(item.document)} ${item.size || '-'}MB` }}</view> --> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<button class="btn" @click="downloadFile(item.document)">下载</button> |
|
|
|
@ -147,7 +154,7 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="flex bottom"> |
|
|
|
<view class="flex bottom" v-if="hasPoster"> |
|
|
|
<view class="flex btns"> |
|
|
|
<button class="btn" @click="jumpToPoster">保存海报</button> |
|
|
|
<button class="btn btn-share" open-type="share">分享文章</button> |
|
|
|
@ -161,10 +168,15 @@ |
|
|
|
data() { |
|
|
|
return { |
|
|
|
details: {}, |
|
|
|
coverImageHeight: '848rpx', |
|
|
|
} |
|
|
|
}, |
|
|
|
onLoad({ thesisId }) { |
|
|
|
const windowWidth = uni.getSystemInfoSync().windowWidth |
|
|
|
this.coverImageHeight = `${(windowWidth) * 848 / 714}px` |
|
|
|
|
|
|
|
this.getData(thesisId) |
|
|
|
// this.getData('1949729528544800770') |
|
|
|
}, |
|
|
|
onShareAppMessage(res) { |
|
|
|
return { |
|
|
|
@ -174,19 +186,20 @@ |
|
|
|
} |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
bannerList() { |
|
|
|
const { image } = this.details || {} |
|
|
|
return (image || '').split(',').map(url => ({ image: url })) |
|
|
|
}, |
|
|
|
posterData() { |
|
|
|
const { id, title, paperDesc, paperImage } = this.details || {} |
|
|
|
const { id, title, image, paperDesc, paperImage } = this.details || {} |
|
|
|
|
|
|
|
return { |
|
|
|
paperDesc: paperDesc || title, |
|
|
|
paperImage: paperImage || this.bannerList?.[0]?.image || '', |
|
|
|
paperImage: paperImage || image || '', |
|
|
|
path: `pages_order/thesis/index?thesisId=${id}` |
|
|
|
} |
|
|
|
}, |
|
|
|
hasPoster() { |
|
|
|
const { paperImage } = this.details || {} |
|
|
|
|
|
|
|
return !!paperImage |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
async getData(thesisId) { |
|
|
|
@ -221,6 +234,7 @@ |
|
|
|
} |
|
|
|
}, |
|
|
|
fail: (err) => { |
|
|
|
console.log('downloadFile fail', err) |
|
|
|
uni.showToast({ title: '网络异常', icon: 'none' }); |
|
|
|
} |
|
|
|
}); |
|
|
|
@ -229,7 +243,7 @@ |
|
|
|
uni.setStorageSync('posterData', this.posterData) |
|
|
|
|
|
|
|
uni.navigateTo({ |
|
|
|
url: `/pages_order/poster/index` |
|
|
|
url: `/pages_order/thesis/poster` |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
@ -240,32 +254,93 @@ |
|
|
|
|
|
|
|
.page__view { |
|
|
|
background: #FFFFFF; |
|
|
|
padding-bottom: calc(62rpx + 110rpx + env(safe-area-inset-bottom)); |
|
|
|
padding-bottom: 62rpx; |
|
|
|
|
|
|
|
&.with-bottom { |
|
|
|
padding-bottom: calc(62rpx + 110rpx + env(safe-area-inset-bottom)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.swiper { |
|
|
|
margin: 20rpx 18rpx 32rpx 18rpx; |
|
|
|
border-radius: 25rpx; |
|
|
|
overflow: hidden; |
|
|
|
.cover-image { |
|
|
|
position: relative; |
|
|
|
width: 100%; |
|
|
|
background: #FFFFFF; |
|
|
|
|
|
|
|
/deep/ .uv-swiper-indicator__wrapper__dot { |
|
|
|
width: 15rpx; |
|
|
|
height: 15rpx; |
|
|
|
.img { |
|
|
|
width: 100%; |
|
|
|
height: 100%; |
|
|
|
} |
|
|
|
|
|
|
|
.shadow { |
|
|
|
position: absolute; |
|
|
|
top: 0; |
|
|
|
left: 0; |
|
|
|
width: 100%; |
|
|
|
height: 100%; |
|
|
|
// background: linear-gradient(transparent, #FFFFFF); |
|
|
|
background: linear-gradient(transparent, #FFFFFF 90%, #FFFFFF); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.page-title { |
|
|
|
position: absolute; |
|
|
|
padding: 0 36rpx; |
|
|
|
transform: translateY(-100%); |
|
|
|
font-size: 60rpx; |
|
|
|
font-weight: 700; |
|
|
|
color: #4783F9; |
|
|
|
|
|
|
|
&-line { |
|
|
|
margin: 12rpx 0 24rpx 0; |
|
|
|
width: 120rpx; |
|
|
|
height: 8rpx; |
|
|
|
background: #4783F9; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.process { |
|
|
|
position: relative; |
|
|
|
width: 100%; |
|
|
|
padding: 0 36rpx; |
|
|
|
box-sizing: border-box; |
|
|
|
|
|
|
|
&-custom { |
|
|
|
padding: 6rpx 18rpx; |
|
|
|
background: #E6EEFD; |
|
|
|
border-top-right-radius: 32rpx; |
|
|
|
border-bottom-right-radius: 32rpx; |
|
|
|
} |
|
|
|
|
|
|
|
&-item { |
|
|
|
margin-top: 24rpx; |
|
|
|
padding: 10rpx 18rpx; |
|
|
|
background: #E6EEFD; |
|
|
|
border-radius: 25rpx; |
|
|
|
|
|
|
|
&-title { |
|
|
|
font-size: 30rpx; |
|
|
|
font-weight: 600; |
|
|
|
color: #3378EA; |
|
|
|
} |
|
|
|
|
|
|
|
&-content { |
|
|
|
font-size: 28rpx; |
|
|
|
white-space: pre-wrap; |
|
|
|
color: #000000; |
|
|
|
} |
|
|
|
|
|
|
|
/deep/ .uv-swiper-indicator__wrapper__dot--active { |
|
|
|
width: 15rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.section { |
|
|
|
margin-top: 40rpx; |
|
|
|
width: 100%; |
|
|
|
padding: 0 18rpx; |
|
|
|
box-sizing: border-box; |
|
|
|
|
|
|
|
& + & { |
|
|
|
margin-top: 40rpx; |
|
|
|
} |
|
|
|
// & + & { |
|
|
|
// margin-top: 40rpx; |
|
|
|
// } |
|
|
|
|
|
|
|
&-header { |
|
|
|
display: flex; |
|
|
|
@ -324,6 +399,7 @@ |
|
|
|
font-family: PingFang SC; |
|
|
|
font-weight: 400; |
|
|
|
font-size: 28rpx; |
|
|
|
white-space: pre-wrap; |
|
|
|
color: #080808; |
|
|
|
|
|
|
|
&:first-child { |
|
|
|
@ -333,11 +409,13 @@ |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
&.process { |
|
|
|
margin-top: 24rpx; |
|
|
|
|
|
|
|
.difficulty { |
|
|
|
justify-content: flex-start; |
|
|
|
&.direction { |
|
|
|
/deep/ .uv-read-more__toggle { |
|
|
|
justify-content: flex-end; |
|
|
|
} |
|
|
|
/deep/ .uv-read-more__toggle__text .uv-text__value { |
|
|
|
color: $uni-color !important; |
|
|
|
font-size: 22rpx !important; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -353,7 +431,7 @@ |
|
|
|
|
|
|
|
.info { |
|
|
|
flex: 1; |
|
|
|
padding: 19rpx 0 28rpx 17rpx; |
|
|
|
padding: 19rpx 17rpx 28rpx 17rpx; |
|
|
|
|
|
|
|
.title { |
|
|
|
display: flex; |
|
|
|
@ -369,22 +447,32 @@ |
|
|
|
.label { |
|
|
|
margin-left: 12rpx; |
|
|
|
position: relative; |
|
|
|
height: 30rpx; |
|
|
|
// height: 30rpx; |
|
|
|
|
|
|
|
&-line { |
|
|
|
margin: 24rpx 0 0 25rpx; |
|
|
|
width: 195rpx; |
|
|
|
position: absolute; |
|
|
|
left: 0; |
|
|
|
bottom: 0; |
|
|
|
transform: translate(30rpx, -2rpx); |
|
|
|
// margin: 24rpx 0 0 25rpx; |
|
|
|
// width: 195rpx; |
|
|
|
width: calc(100% - 20rpx); |
|
|
|
height: 4rpx; |
|
|
|
background-image: linear-gradient(#4883F9, #FFFFFF); |
|
|
|
border-radius: 2rpx; |
|
|
|
} |
|
|
|
|
|
|
|
&-text { |
|
|
|
position: absolute; |
|
|
|
top: 0; |
|
|
|
left: 0; |
|
|
|
font-size: 22rpx; |
|
|
|
font-weight: 400; |
|
|
|
opacity: 0; |
|
|
|
|
|
|
|
&.display { |
|
|
|
opacity: 1; |
|
|
|
position: absolute; |
|
|
|
left: 0; |
|
|
|
top: 0; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
@ -407,21 +495,35 @@ |
|
|
|
} |
|
|
|
|
|
|
|
.desc { |
|
|
|
padding: 12rpx 15rpx; |
|
|
|
// padding: 12rpx 15rpx; |
|
|
|
font-size: 28rpx; |
|
|
|
font-weight: 500; |
|
|
|
white-space: pre-wrap; |
|
|
|
color: #000000; |
|
|
|
background: #f8f8f8; |
|
|
|
border-radius: 16rpx; |
|
|
|
// border-radius: 16rpx; |
|
|
|
|
|
|
|
&-top { |
|
|
|
padding: 12rpx 15rpx 0 15rpx; |
|
|
|
border-top-left-radius: 16rpx; |
|
|
|
border-top-right-radius: 16rpx; |
|
|
|
} |
|
|
|
&-bottom { |
|
|
|
padding: 0 15rpx 12rpx 15rpx; |
|
|
|
border-bottom-left-radius: 16rpx; |
|
|
|
border-bottom-right-radius: 16rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.pic { |
|
|
|
margin: 48rpx 9rpx 48rpx 0; |
|
|
|
// margin: 48rpx 9rpx 48rpx 0; |
|
|
|
margin: 44rpx 0 0 14rpx; |
|
|
|
width: 253rpx; |
|
|
|
height: 345rpx; |
|
|
|
border-radius: 127rpx; |
|
|
|
overflow: hidden; |
|
|
|
float: right; |
|
|
|
|
|
|
|
.img { |
|
|
|
width: 100%; |
|
|
|
@ -433,11 +535,13 @@ |
|
|
|
flex-direction: row-reverse; |
|
|
|
|
|
|
|
.info { |
|
|
|
padding: 19rpx 17rpx 28rpx 0; |
|
|
|
padding: 19rpx 17rpx 28rpx 17rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.pic { |
|
|
|
margin: 48rpx 0 48rpx 9rpx; |
|
|
|
// margin: 48rpx 0 48rpx 9rpx; |
|
|
|
margin: 44rpx 14rpx 0 0; |
|
|
|
float: left; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
@ -475,7 +579,7 @@ |
|
|
|
} |
|
|
|
|
|
|
|
.info { |
|
|
|
height: 181rpx; |
|
|
|
// height: 181rpx; |
|
|
|
padding: 0 14rpx 0 266rpx; |
|
|
|
|
|
|
|
.name { |
|
|
|
@ -487,14 +591,16 @@ |
|
|
|
|
|
|
|
.desc { |
|
|
|
margin-top: 24rpx; |
|
|
|
font-size: 28rpx; |
|
|
|
// font-size: 28rpx; |
|
|
|
font-size: 24rpx; |
|
|
|
white-space: pre-wrap; |
|
|
|
font-weight: 700; |
|
|
|
color: #707070; |
|
|
|
overflow: hidden; |
|
|
|
text-overflow: ellipsis; |
|
|
|
display:-webkit-box; //作为弹性伸缩盒子模型显示。 |
|
|
|
-webkit-box-orient:vertical; //设置伸缩盒子的子元素排列方式--从上到下垂直排列 |
|
|
|
-webkit-line-clamp:3; //显示的行 |
|
|
|
// overflow: hidden; |
|
|
|
// text-overflow: ellipsis; |
|
|
|
// display:-webkit-box; //作为弹性伸缩盒子模型显示。 |
|
|
|
// -webkit-box-orient:vertical; //设置伸缩盒子的子元素排列方式--从上到下垂直排列 |
|
|
|
// -webkit-line-clamp:3; //显示的行 |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -504,6 +610,7 @@ |
|
|
|
margin-top: 18rpx; |
|
|
|
padding: 14rpx; |
|
|
|
font-size: 28rpx; |
|
|
|
white-space: pre-wrap; |
|
|
|
color: #000000; |
|
|
|
background: #ebebeb; |
|
|
|
border-radius: 30rpx 0rpx 30rpx 0rpx; |
|
|
|
@ -545,7 +652,8 @@ |
|
|
|
|
|
|
|
&-info { |
|
|
|
display: flex; |
|
|
|
align-items: flex-end; |
|
|
|
// align-items: flex-end; |
|
|
|
align-items: center; |
|
|
|
} |
|
|
|
|
|
|
|
&-icon { |
|
|
|
|