学术贡献样式更新
This commit is contained in:
@@ -5,15 +5,15 @@
|
||||
<z-nav-bar :title="prescriptDetail.title"></z-nav-bar>
|
||||
<view class="contentBox" v-if="prescriptDetail.content && prescriptDetail.contentType == 1">
|
||||
<view class="content">
|
||||
<uni-section class="mb-10" titleFontSize="18px" title="标题" type="line">
|
||||
<view class="item">
|
||||
<!-- <uni-section class="mb-10" titleFontSize="18px" title="标题" type="line"> -->
|
||||
<view class="item title-center">
|
||||
{{prescriptDetail.title}}
|
||||
</view>
|
||||
</uni-section>
|
||||
<uni-section class="mb-10" titleFontSize="18px" title="内容" type="line">
|
||||
<!-- </uni-section> -->
|
||||
<!-- <uni-section class="mb-10" titleFontSize="18px" title="内容" type="line"> -->
|
||||
<view class="item" v-html="prescriptDetail.content">
|
||||
</view>
|
||||
</uni-section>
|
||||
<!-- </uni-section> -->
|
||||
<!-- <view class="item" v-html="prescriptDetail.content">
|
||||
</view> -->
|
||||
</view>
|
||||
@@ -79,6 +79,9 @@
|
||||
console.log(res, '内容获取成功')
|
||||
if (res.code == 0) {
|
||||
this.prescriptDetail = res.result
|
||||
if(this.prescriptDetail.content && this.prescriptDetail.contentType == 1){
|
||||
this.prescriptDetail.content = res.result.content.replace(/<img/g, '"<img style="max-width: 100%;"')
|
||||
}
|
||||
// if (this.prescriptDetail.image) {
|
||||
// this.prescriptDetail.images = this.prescriptDetail.image.split(';');
|
||||
// }
|
||||
@@ -143,10 +146,16 @@
|
||||
|
||||
// background-color: #fff;
|
||||
.item {
|
||||
color: #666;
|
||||
// color: #666;
|
||||
padding: 10rpx 20rpx;
|
||||
padding-bottom: 20rpx;
|
||||
line-height: 46rpx;
|
||||
|
||||
}
|
||||
.title-center{
|
||||
text-align: center;
|
||||
font-size: 32rpx;
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user