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
| <template>
| <view>
| <uni-card class="view-title" :title="title">
| <text class="uni-body view-content">{{ content }}</text>
| </uni-card>
| </view>
| </template>
|
| <script>
| export default {
| data() {
| return {
| title: '',
| content: ''
| }
| },
| onLoad(options) {
| this.title = options.title
| this.content = options.content
| uni.setNavigationBarTitle({
| title: options.title
| })
| }
| }
| </script>
|
| <style scoped>
| page {
| background-color: #ffffff;
| }
|
| .view-title {
| font-weight: bold;
| }
|
| .view-content {
| font-size: 26rpx;
| padding: 12px 5px 0;
| color: #333;
| line-height: 24px;
| font-weight: normal;
| }
| </style>
|
|