<template>
    <!--<div style="height: 100vh">
        <el-scrollbar style="width: 100%;height: 100%;">
            <headerNav :title="title" :iccid="iccid" :openid="openid"></headerNav>
            <footerNav></footerNav>
            <div style="width: 95%;height: 100%;margin: 2% auto">
                <van-collapse
                        accordion
                        v-model="activeName"
                        >
                    <van-collapse-item
                            v-for="(item,index) in contents"
                            :key="index"
                            :title="item.title"
                            :name="index">
                        {{item.content}}
                    </van-collapse-item>
                </van-collapse>
            </div>
            <div style="height: 3rem"></div>
        </el-scrollbar>
        <rightBottom></rightBottom>
    </div>-->

</template>

<script>
    import headerNav from "../../../components/headerNav";
    import footerNav from "../../../components/footerNav";
    import rightBottom from "../../../components/rightBottom";

    export default {
        name: "problem",
        components:{
          "headerNav":headerNav,
          "footerNav":footerNav,
          "rightBottom":rightBottom
        },
        data() {
            return {
                title:'常见问题',
                activeName: ['index'],
                iccid:'',
                openid:'',
                /*contents:[{"title":"无信息"}],*/
                contents:{},
            };
        },
        mounted() {
            let _this=this
            _this.iccid=_this.$route.params.iccid
            if(_this.$check.checkIsNull(_this.iccid)){
                _this.iccid =_this.$store.state.iccid
            }
            _this.openid=_this.$route.params.openid
            if(_this.$check.checkIsNull(_this.openid)){
                _this.openid=_this.$store.state.openid
            }
            _this.appId =_this.$store.state.appid
            _this.list()
        },
        methods:{
            list(){
                let _this=this
                _this.$ajax.get(process.env.VUE_APP_SERVER+"/web/weixin/question/get-questions")
                    .then(res=>{
                        if(res.data.code==="0"){
                            _this.contents=res.data.data
                        }
                    })
            }
        }
    }
</script>

<style scoped>

</style>