| 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
75
76
77
78
79
80
81
82
83
 | | <template> |  |     <div class="container"> |  |         <scroll-view scroll-y class="content" v-html="content"></scroll-view> |  |         <div class="button" @click="toapply">确认了解</div> |  |     </div> |  | </template> |  |   |  | <script> |  |     export default { |  |         name: 'Index', |  |         data() { |  |             return { |  |                 content: '', |  |                 answer: '' |  |             } |  |         }, |  |         onLoad() { |  |             this.getInfo() |  |         }, |  |         methods: { |  |             getInfo() { |  |                 // 入场须知详情 |  |                 this.$u.api.getSystemDictData({ |  |                     dictCode: 'SYSTEM', |  |                     label: 'VISIT_NOTICE' |  |                 }).then(res => { |  |                     if (res.code === 200) { |  |                         this.content = res.data.code |  |                     } |  |                 }) |  |                 // 是否需要答题 |  |                 this.$u.api.getSystemDictData({ |  |                     dictCode: 'SYSTEM', |  |                     label: 'PROBLEM_VISIT_REQUIRED' |  |                 }).then(res => { |  |                     if (res.code === 200) { |  |                         this.answer = res.data.code |  |                     } |  |                 }) |  |             }, |  |             toapply() { |  |                 if (this.answer === '0') { |  |                     uni.navigateTo({ |  |                         url: '/pages/userinfo/userinfo' |  |                     }) |  |                 } else { |  |                     uni.navigateTo({ |  |                         url: '/pages/answer/answer' |  |                     }) |  |                 } |  |             } |  |         } |  |     } |  | </script> |  |   |  | <style lang="scss" scoped> |  |     .container { |  |         width: 100%; |  |         height: 100vh; |  |         padding: 30rpx; |  |         box-sizing: border-box; |  |         display: flex; |  |         flex-flow: column; |  |   |  |         .content { |  |             flex: 1; |  |             height: calc(100% - 88rpx - 60rpx - 40rpx); |  |         } |  |   |  |         .button { |  |             margin-top: 40rpx; |  |             width: 100%; |  |             height: 88rpx; |  |             line-height: 88rpx; |  |             text-align: center; |  |             background: #025EEF; |  |             border-radius: 44rpx; |  |             font-size: 32rpx; |  |             font-weight: 500; |  |             color: #FFFFFF; |  |         } |  |     } |  | </style> | 
 |