<template>
|
<view class="agreement-content">
|
<text class="title">{{ content.title }}</text>
|
<text class="paragraph">{{ content.intro }}</text>
|
|
<view v-for="(section, i) in content.sections" :key="i">
|
<text class="heading">{{ section.title }}</text>
|
<text v-for="(p, j) in section.paragraphs" :key="j" class="paragraph">{{ j + 1 }}. {{ p }}</text>
|
</view>
|
|
<text class="paragraph">{{ content.footer }}</text>
|
<text class="paragraph">{{ content.ending }}</text>
|
|
<view class="signature">
|
<text v-for="(line, i) in content.signature" :key="i" class="sign-line">{{ line }}</text>
|
</view>
|
</view>
|
</template>
|
|
<script>
|
export default {
|
name: 'HealthAgreementContent',
|
props: {
|
content: {
|
type: Object,
|
required: true
|
}
|
}
|
}
|
</script>
|
|
<style scoped>
|
.agreement-content {
|
line-height: 1.8;
|
}
|
|
.title {
|
display: block;
|
font-size: 32rpx;
|
color: #333;
|
font-weight: 600;
|
text-align: center;
|
margin-bottom: 40rpx;
|
}
|
|
.heading {
|
display: block;
|
font-size: 30rpx;
|
color: #333;
|
font-weight: 500;
|
margin: 30rpx 0 15rpx;
|
}
|
|
.paragraph {
|
display: block;
|
font-size: 28rpx;
|
color: #666;
|
margin-bottom: 15rpx;
|
text-indent: 56rpx;
|
}
|
|
.signature {
|
margin-top: 40rpx;
|
}
|
|
.sign-line {
|
display: block;
|
font-size: 28rpx;
|
color: #666;
|
margin-top: 20rpx;
|
text-align: right;
|
padding-right: 50rpx;
|
}
|
</style>
|