| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>Hello MUI</title>
- <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
- <meta name="apple-mobile-web-app-capable" content="yes">
- <meta name="apple-mobile-web-app-status-bar-style" content="black">
- <!--标准mui.css-->
- <link rel="stylesheet" href="../css/mui.min.css">
- <!--App自定义的css-->
- <!--<link rel="stylesheet" type="text/css" href="css/app.css" />-->
- <style>
- .mui-table h4,
- .mui-table h5,
- .mui-table .mui-h5,
- .mui-table .mui-h6,
- .mui-table p {
- margin-top: 0;
- }
-
- .mui-table h4 {
- line-height: 21px;
- font-weight: 500;
- }
-
- .mui-table .oa-icon {
- position: absolute;
- right: 0;
- bottom: 0;
- }
-
- .mui-table .oa-icon-star-filled {
- color: #f14e41;
- }
-
- .mui-bar-nav {
- background-color: #00a1cb;
- }
- #title{
- color: #fff;
- }
- .mui-table-view-cell{
- padding: 5px 15px;
- }
- h4{
- color: inherit;
- font-weight: 500;
- }
- p {
- font-size: 14px;
- color: #000;
- padding: 10px;
- margin-bottom: 0px;
- }
- textarea{
- font-size: 14px;
- }
- #send{
- background-color: #00a1cb;
- color: #fff;
- font-size: 14px;
- }
- </style>
- </head>
- <body>
- <header class="mui-bar mui-bar-nav">
- <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" style="color: #fff;"></a>
- <h1 id="title" class="mui-title">常见问题</h1>
- </header>
- <div class="mui-content" id="pullrefresh">
- <div class="mui-navbar-inner mui-bar mui-bar-nav">
- <button type="button" class="mui-left mui-action-back mui-btn mui-btn-link mui-btn-nav mui-pull-left">
- <span class="mui-icon mui-icon-left-nav" style="color:#fff"></span>
- </button>
- <h1 class="mui-center mui-title" style="color:#fff">问题反馈</h1>
- </div>
- <div class="mui-page-content">
- <p>联系方式</p>
- <div class="row mui-input-row">
- <input type="number" id="mobile" />
- </div>
- <p>反馈标题</p>
- <div class="row mui-input-row">
- <input type="text" id="titles" />
- </div>
- <p>反馈内容</p>
- <div class="row mui-input-row">
- <textarea id='content' class="mui-input-clear question" placeholder="请详细描述你的问题和意见..."></textarea>
- </div>
- <ul class="mui-table-view">
- <li class="mui-table-view-cell" style="text-align: center;">
- <a id='send' style=" line-height:45px;padding: 11px 15px;">发送</a>
- </li>
- </ul>
- </div>
- </div>
- </body>
- <script src="../js/mui.min.js"></script>
- <script src="../js/zepto.js"></script>
- <script src="../js/huayi.config.js"></script>
- <script>
- mui.plusReady(function() {
- var token =localStorage.getItem("token"); //获取本地存储
- mui.init();
- //意见反馈
-
- document.getElementById("send").addEventListener('tap', function() {
- var myreg = /^[1][3,4,5,7,8][0-9]{9}$/;
- var str = $("#mobile").val();
- if(!$("#mobile").val()) {
- mui.toast("联系方式不能为空");
- } else if(!myreg.test(str)) {
- mui.toast("你输入的手机号有误");
- } else if(!$("#titles").val()) {
- mui.toast("反馈标题不能为空");
- } else if(!$("#content").val()) {
- mui.toast("反馈内容不能为空");
- } else{
- mui.ajax(huayi.config.callcenter_url + 'UserFeedback/AddInfo', {
- data: {
- id: 0,
- mobile: $("#mobile").val(),
- title: $("#titles").val(),
- content: $("#content").val(),
- token: token
- },
- dataType: 'json', //服务器返回json格式数据
- type: 'post', //HTTP请求类型
- timeout: 10000, //超时时间设置为10秒;
- headers: {
- 'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
- },
- success: function(data) {
- if(data.state == "success") {
- mui.toast("问题已提交");
- Clean();
- var wobj = plus.webview.getWebviewById("personal");
- wobj.reload(true);
- }
- },
- error: function(data) {
- //异常处理;
- }
- })
- }
- });
-
- function Clean() {
- $("#mobile").val('');
- $("#titles").val('');
- $("#content").val('');
- }
-
-
-
- });
- </script>
- </html><!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title></title>
- </head>
- <body>
- </body>
- </html>
|