agree_content.html 2.4 KB
<!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>