agree_content.html
2.4 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
<title></title>
<!--<script src="../../assets/js/fontsize.js"></script>-->
<!--<link rel="stylesheet" href="../../assets/css/api.css"/>-->
<link rel="stylesheet" href="../../assets/icon/iconfont.css">
<style>
.agree_title {
text-align: center;
padding: 40px 0;
/*font-size: 15px;*/
color: #D8B25F;
}
/*.content {*/
/*font-size: 0.24rem;*/
/*color: #424242;*/
/*padding: 0 0.5rem;*/
/*}*/
</style>
</head>
<body>
<div id="loadStart"></div>
<div id="app" v-cloak>
<div class="agree_title">{{post_title}}</div>
<div class="content" v-html="agreement_data">
</div>
</div>
</body>
</html>
<script type="text/javascript" src="../../assets/js/api.js"></script>
<script type="text/javascript" src="../../assets/js/public.js"></script>
<script type="text/javascript" src="../../assets/js/fastclick.js"></script>
<script>
new FastClick(document.body);
</script>
<script type="text/javascript" src="../../assets/js/vue.min.js"></script>
<script type="text/javascript" src="../../assets/js/axios.min.js"></script>
<script type="text/javascript" src="../../assets/icon/iconfont.js"></script>
<script>
var app = new Vue({
el: '#app',
data: {
post_title: '',
id: '',
agreement_data: ''
},
created: function () {
this.id = localStorage.getItem('id');
this.getAgreement();
},
methods: {
getAgreement: function () {
var app = this;
var post = {
id: app.id
};
getRequest('post', 'portal/index/getAgreement', post, null).then(function (res) {
if (res.data.code == 1) {
app.post_title = res.data.data.post_title;
app.agreement_data = res.data.data.post_content;
} else {
toastMsg(res.data.msg)
}
loadEnd();
})
}
}
})
</script>