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
| <template>
| <view class="content">
| <!-- 顶部标题 -->
| <view class="title">{{title}}</view>
| <view class="detail">
| <view v-for="item in propArr" :key="item.code" class="item">
| <view class="item_title">{{item.title}}</view>
| <view class="item_content">{{content[item.code]}}</view>
|
| </view>
| </view>
| </view>
| </template>
|
| <script>
| export default {
| props: {
| title: {type:String,required: true},
| content: {type: Object,required: true},
| propArr: {type: Array,required: true}
| },
| data() {
| return {
|
| }
| },
| methods: {
|
| }
| }
| </script>
|
| <style scoped lang="scss">
| .content {
| width: 96%;
| margin: 18rpx auto;
| .title {
| border-left: 6rpx solid #F18202;
| padding-left: 10rpx;
| box-sizing: border-box;
| font-size: 36rpx;
| margin-bottom: 10rpx;
| }
| .detail {
| box-sizing: border-box;
| .item {
| width: 100%;
| background: #fff;
| border-radius: 4rpx;
| display: flex;
| justify-content: center;
| align-items: center;
| padding: 15rpx;
| font-size: 32rpx;
| box-sizing: border-box;
| }
|
| .item_title {
| width: 30%;
| }
| .item_content {
| flex: 1;
| text-align: right;
| color: $color-common;
| }
| }
| }
| </style>
|
|