sen
1 天以前 5abcde36961125cbf436f91b8c17610a6b5f8308
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<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>