phone_question.html 6.0 KB
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" type="text/css" href="http://at.alicdn.com/t/font_641470_ay7pye7aoqk.css"/>
    <link rel="stylesheet" type="text/css" href="css/base.css" />
    <link rel="stylesheet" type="text/css" href="css/style.css" />
    <link rel="stylesheet" type="text/css" href="css/font-awesome.css" />
    <link rel="stylesheet" type="text/css" href="css/modern-accordion.css">
    <script src="js/base.js" type="text/javascript" charset="utf-8"></script>
    <script src="js/modern-accordion.js"></script>

    <style>
        .question {
            width: 7.5rem;
            height: 0.88rem;
            background-color: #FFFFFF;
            line-height: 0.88rem;
            padding: 0 0.33rem;
            display: flex;
            position: relative;
            box-sizing: border-box;
        }

        .question .icon-wenhao1,.answer .icon-xiaoxi{
            font-size: 0.4rem;
            margin-right: 0.16rem;
        }
        .question .icon-wenhao1{
            color: #D8B25F;
        }
        .answer .icon-xiaoxi{
            color: #7A96E1;
        }
        .question_tit{
            font-size: 0.24rem;
            color: #D8B25F;
        }
        .question .icon-xiangyou{
            font-size: 0.3rem;
            color: #CCCCCC;
            position: absolute;
            right: 0.35rem;
        }
        .answer{
            width: 7.5rem;
            padding: 0.2rem 0.33rem 0.37rem;
            background-color: #FFFFFF;
            display: flex;
            position: relative;
            box-sizing: border-box;
            line-height: 0.5rem;
        }
        .answer_text{
            font-size: 0.22rem;
            color: #333333;
        }
        .qa_list{
            border-bottom: 1px solid #E4E4E4;
        }
    </style>
    <title>我的账户</title>
</head>

<body>
<div class="seheader center">
    <div class="left seback">
        <a href="#" onClick="javascript:history.back(-1);"><img src="images/care_03.jpg" /></a>
    </div>
    <div class="headertext">常见问题</div>
</div>
<div class="question_wrap">
    <div class="qa_list">
        <div class="question">
            <i class="iconfont icon-wenhao1"></i>
            <p class="question_tit">常见问题</p>
            <i class="iconfont icon-xiangyou"></i>
        </div>
        <div class="answer">
            <i class="iconfont icon-xiaoxi"></i>
            <p class="answer_text">您好,非常荣幸您能成为慈界医养的一员,让健康提升更简单是慈界医养的使命,在此离不开您的支持。根据您认购的权益类别,为更好为您服务,请您知晓持有的VIP权益。
            </p>
        </div>
    </div>
    <div class="qa_list">
        <div class="question">
            <i class="iconfont icon-wenhao1"></i>
            <p class="question_tit">常见问题</p>
            <i class="iconfont icon-xiangyou"></i>
        </div>
        <div class="answer">
            <i class="iconfont icon-xiaoxi"></i>
            <p class="answer_text">您好,非常荣幸您能成为慈界医养的一员,让健康提升更简单是慈界医养的使命,在此离不开您的支持。根据您认购的权益类别,为更好为您服务,请您知晓持有的VIP权益。
            </p>
        </div>
    </div>
    <div class="qa_list">
        <div class="question">
            <i class="iconfont icon-wenhao1"></i>
            <p class="question_tit">常见问题</p>
            <i class="iconfont icon-xiangyou"></i>
        </div>
        <div class="answer">
            <i class="iconfont icon-xiaoxi"></i>
            <p class="answer_text">您好,非常荣幸您能成为慈界医养的一员,让健康提升更简单是慈界医养的使命,在此离不开您的支持。根据您认购的权益类别,为更好为您服务,请您知晓持有的VIP权益。
            </p>
        </div>
    </div>
</div>

<script type="text/javascript" src="js/common.js"/>
<script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript">
    $(document).ready(function () {
        $('.question_wrap').on('click','.question',function () {
            $(this).siblings('.answer').slideToggle()
        })
        getQA()
    })
    function getQA() {
        $.ajax({
            type:"POST",
            url: baseUrl+"user/index/getQA",
            dataType:"json",
            data:{
                DeviceType:"1",
                token:"1",
            },
            success:function (res) {
                $('.question_wrap').html(``)
                var data = res.data
                console.log(res.data)
                for (key in data){
                    $('.question_wrap').append(`<div class="qa_list">
                                                    <div class="question">
                                                        <i class="iconfont icon-wenhao1"></i>
                                                        <p class="question_tit">${data[key].question}</p>
                                                        <i class="iconfont icon-xiangyou"></i>
                                                    </div>
                                                    <div class="answer">
                                                        <i class="iconfont icon-xiaoxi"></i>
                                                        <p class="answer_text">${data[key].question}
                                                        </p>
                                                    </div>
                                                </div>`)
                }
            }
        })
    }
</script>
</body>
<!--paypart2 end-->