学术贡献样式更新

This commit is contained in:
yanwenlong
2024-03-18 14:10:28 +08:00
parent 4a1460eca7
commit e04dcf9b07

View File

@@ -5,15 +5,15 @@
<z-nav-bar :title="prescriptDetail.title"></z-nav-bar> <z-nav-bar :title="prescriptDetail.title"></z-nav-bar>
<view class="contentBox" v-if="prescriptDetail.content && prescriptDetail.contentType == 1"> <view class="contentBox" v-if="prescriptDetail.content && prescriptDetail.contentType == 1">
<view class="content"> <view class="content">
<uni-section class="mb-10" titleFontSize="18px" title="标题" type="line"> <!-- <uni-section class="mb-10" titleFontSize="18px" title="标题" type="line"> -->
<view class="item"> <view class="item title-center">
{{prescriptDetail.title}} {{prescriptDetail.title}}
</view> </view>
</uni-section> <!-- </uni-section> -->
<uni-section class="mb-10" titleFontSize="18px" title="内容" type="line"> <!-- <uni-section class="mb-10" titleFontSize="18px" title="内容" type="line"> -->
<view class="item" v-html="prescriptDetail.content"> <view class="item" v-html="prescriptDetail.content">
</view> </view>
</uni-section> <!-- </uni-section> -->
<!-- <view class="item" v-html="prescriptDetail.content"> <!-- <view class="item" v-html="prescriptDetail.content">
</view> --> </view> -->
</view> </view>
@@ -79,6 +79,9 @@
console.log(res, '内容获取成功') console.log(res, '内容获取成功')
if (res.code == 0) { if (res.code == 0) {
this.prescriptDetail = res.result 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) { // if (this.prescriptDetail.image) {
// this.prescriptDetail.images = this.prescriptDetail.image.split(';'); // this.prescriptDetail.images = this.prescriptDetail.image.split(';');
// } // }
@@ -143,10 +146,16 @@
// background-color: #fff; // background-color: #fff;
.item { .item {
color: #666; // color: #666;
padding: 10rpx 20rpx; padding: 10rpx 20rpx;
padding-bottom: 20rpx; padding-bottom: 20rpx;
line-height: 46rpx; line-height: 46rpx;
}
.title-center{
text-align: center;
font-size: 32rpx;
font-weight: 600;
} }
} }