<template>
|
<view class="agreement-content">
|
<text class="title">{{ content.title }}</text>
|
<text class="intro">{{ content.intro }}</text>
|
<view v-for="(clause, i) in content.clauses" :key="i" class="clause">
|
<text class="heading">{{ clause.number }}、</text>
|
<text class="text">{{ clause.text }}</text>
|
</view>
|
<text class="footer">{{ content.footer }}</text>
|
<text class="ending">{{ 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: 'AgreementContent',
|
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: 30rpx;
|
padding-bottom: 20rpx;
|
border-bottom: 1rpx solid #f0f0f0;
|
}
|
|
.intro {
|
display: block;
|
font-size: 28rpx;
|
color: #666;
|
margin-bottom: 20rpx;
|
}
|
|
.clause {
|
margin-bottom: 15rpx;
|
}
|
|
.heading {
|
font-size: 28rpx;
|
color: #333;
|
font-weight: 500;
|
}
|
|
.text {
|
font-size: 28rpx;
|
color: #666;
|
}
|
|
.footer,
|
.ending {
|
display: block;
|
font-size: 28rpx;
|
color: #666;
|
margin-top: 20rpx;
|
}
|
|
.signature {
|
margin-top: 40rpx;
|
}
|
|
.sign-line {
|
display: block;
|
font-size: 28rpx;
|
color: #666;
|
margin-top: 15rpx;
|
text-align: right;
|
padding-right: 30rpx;
|
}
|
</style>
|