| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212 |
- <!doctype html>
- <html lang="en" class="feedback">
- <head>
- <meta charset="UTF-8" />
- <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
- <title>结案</title>
- <link rel="stylesheet" type="text/css" href="../css/mui.min.css" />
- <link rel="stylesheet" type="text/css" href="../css/feedback.css" />
- <link rel="stylesheet" type="text/css" href="../css/mui.picker.min.css" />
- <style>
- p {
- font-size: 16px;
- color: #fe6604;
- }
-
- .mui-bar-nav {
- background-color: #00a1cb;
- color: #fff!important;
- }
-
- .mui-bar-popover {
- width: 30%;
- }
-
- .mui-popover.mui-bar-popover .mui-table-view {
- width: 100%;
- }
-
- .mui-table-view .mui-table-view-cell>a:not(.mui-btn) {
- text-align: center;
- }
-
- .mui-table-view-cell {
- padding: 1px 15px!important;
- }
-
- .san {
- font-size: 14px;
- margin-right: 5px
- }
-
- .nav_a {
- border-right: 1px solid #ccc;
- }
-
- .radio_box {
- display: inline-block;
- }
-
- .mui-radio input[type=radio]:before {
- font-size: 20px;
- vertical-align: middle;
- }
-
- .mui-radio.mui-left input[type=radio] {
- line-height: 24px!important;
- }
-
- .mui-radio.mui-left label {
- padding-right: 1px!important;
- padding-left: 51px!important;
- }
-
- .ztext {
- width: 100%;
- margin: 0;
- border: 0;
- }
-
- .action {
- padding: 5px 15px;
- }
-
- .type_down {
- float: right!important;
- display: inline-block!important;
- vertical-align: middle!important;
- line-height: 42px;
- }
-
- .type_con {
- width: 55%!important;
- float: left!important;
- vertical-align: middle!important;
- display: inline-block!important;
- padding: 10px 0!important;
- }
-
- .label {
- width: 30%!important;
- padding: 11px 0px!important;
- }
-
- .get_yzm {
- padding: 5px!important;
- width: auto!important;
- }
-
- .yzm_con {
- float: left!important;
- width: 40%!important;
- }
-
- .mui-bar-nav {
- background-color: #00a1cb;
- }
-
- .mui-input-row label {
- text-align: -webkit-right;
- }
-
- .mui-btn-block {
- padding: 10px;
- width: 100%;
- }
-
- .labels {
- color: #fe6604;
- }
- </style>
- </head>
- <body>
- <header class="mui-bar mui-bar-nav" style="">
- <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" style="color: #fff;"></a>
- <h1 class="mui-title" style="color: #fff;">结案</h1>
- </header>
- <div class="mui-content">
- <ul class="mui-table-view">
- <li class="mui-table-view-cell">
- <div class="mui-input-row">
- <label class="label labels">满意度:</label>
- <div class="mui-input-row mui-radio mui-left radio_box">
- <label>不满意</label>
- <input type="radio" type="radio" name="secret" value="0" />
- </div>
- <div class="mui-input-row mui-radio mui-left radio_box">
- <label>满意</label>
- <input type="radio" type="radio" name="secret" checked="checked" value="1" />
- </div>
- </div>
- </li>
- <li class="mui-table-view-cell">
- <div class="mui-input-row">
- <label class="label labels">结案意见:</label>
- <textarea class="ztext content" name="" id="finalopinion" rows="3" cols="" placeholder="请详细描述您的问题和建议..."></textarea>
- </div>
- </li>
- </ul>
- <div class="" style="padding: 10px;">
- <br />
- <button id="submit" type="button" class="mui-btn mui-btn-block mui-btn-primary submit">保存</button>
- </div>
- </div>
- <script src="../js/huayi.config.js"></script>
- <script src="../js/zepto.js"></script>
- <script src="../js/mui.min.js"></script>
- <script src="../js/mui.picker.min.js"></script>
- <script type="text/javascript">
- mui.init();
- mui.plusReady(function() {
- var wv = plus.webview.currentWebview();
- var vText = wv.name;
- var token = wv.token;
- document.getElementById("submit").addEventListener('tap', function() {
- if(!$("#finalopinion").val()) {
- plus.nativeUI.toast('输入结案意见');
- } else {
- mui.ajax(huayi.config.callcenter_url + 'WorkOrder/FinishWorkOrder', {
- data: {
- workorderid: vText,
- finalopinion: $("#finalopinion").val(),
- result: $("#result").val(), //处理结果
- issatisfie: $('input[name="secret"]:checked').val(),
- token: token
- },
- dataType: 'json', //服务器返回json格式数据
- type: 'post', //HTTP请求类型
- timeout: 10000, //超时时间设置为10秒;
- success: function(data) {
- if(data.state == "success") {
- plus.nativeUI.toast('结案成功');
- $("#finalopinion").val('');
- $("#result").val('');
- var wobj = plus.webview.getWebviewById("Work-listDCL");
- wobj.reload(true);
- } else {
- mui.alert(data.message);
- }
- },
- error: function(xhr, type, errorThrown) {
- plus.nativeUI.toast('失败');
- }
- });
- }
- })
- })
- </script>
- </body>
- </html>
|