12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <meta content="yes" name="apple-mobile-web-app-capable">
- <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0,minimum-scale=1.0,user-scalable=0" />
- <title>常见问题</title>
- <link rel="stylesheet" type="text/css" href="../common/reset.css"/>
- <style type="text/css">
- body{background: #F4F4F4;min-height:100vh ;}
- ul li{width: 100%;padding:0.2rem 0;background: #FFFFFF;display: flex;display: -webkit-box;display: -webkit-flex;display: -ms-flexbox;align-items: center;margin-bottom: 0.05rem;}
- ul li img{width: 0.35rem;margin: 0.27rem;}
- .con{color: #333333;}
- .con h3{font-size: 0.15rem;line-height: 0.21rem;font-weight: bold;padding-bottom: 0.05rem;}
- .con p{font-size: 0.15rem;line-height: 0.18rem;padding-top: 0.1rem;padding-right: 0.1rem;}
- .feedback{margin-bottom:0.04rem;width: 100%;height: 0.37rem;background: #FFFFFF;text-align: center;line-height: 0.37rem;color: #FC4C53;font-size: 0.15rem;}
- button{width: 1rem;height: 0.5rem;}
- </style>
- <script>
- document.documentElement.style.fontSize = 100 * (document.documentElement.clientWidth/375) + "px";
- window.onresize = function(){
- document.documentElement.style.fontSize = 100 * (document.documentElement.clientWidth/375) + "px";
- }
- </script>
- </head>
- <body>
- <ul>
- <li></li>
- </ul>
- <div class="feedback" onclick="feedback()">我要反馈</div>
- <!--<button onclick="ceshiToken()">啦啦啦</button>-->
- <div></div>
- </body>
- </html>
- <script type="text/javascript" src="problem.js?v=2"></script>
- <script type="text/javascript">
- var Ul = document.getElementsByTagName("ul")[0];
- var html = '';
- problem.forEach(function (item,index) {
- var pHtml = '';
- item.tip.forEach(function (item, index) {
- pHtml += "<p>" + item + "</p>"
- })
- html += "<li><img src=" + item.img + " /><div class='con' onclick='go_problem_detail(" + item.id + ")'><h3>" + item.title + "</h3>" + pHtml + "</div></li>"
- })
- Ul.innerHTML = html;
-
- function go_problem_detail(id){
- window.location.href="problem_detail.html?id=" + id;
- }
-
- function feedback () {
- if(navigator.userAgent.match(/(iPhone|iPod|iPad);?/i)){
- app_h5_question();
- window.webkit.messageHandlers.app_h5_question.postMessage({'name':1});
- }
- if(navigator.userAgent.match(/android/i)){
- obj4H5.app_h5_question();
- }
- }
-
- // function ceshiToken () {
- // var param = '{"js_callback" : "callBackMethodName"}';
- // if(navigator.userAgent.match(/(iPhone|iPod|iPad);?/i)){
- // window.webkit.messageHandlers.app_h5_get_token.postMessage(param);
- // }
- // if(navigator.userAgent.match(/android/i)){
- // console.log(typeof param)
- // obj4H5.app_h5_get_token(param);
- // }
- // }
- // function callBackMethodName (token) {
- // alert(token)
- // }
- function app_h5_question () {}
- </script>
|