|
|
@@ -1,356 +1,396 @@
|
|
1
|
1
|
<!doctype html>
|
|
2
|
2
|
<html>
|
|
|
3
|
+ <head>
|
|
|
4
|
+ <meta charset="UTF-8">
|
|
|
5
|
+ <title></title>
|
|
|
6
|
+ <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
|
|
|
7
|
+ <meta name="apple-mobile-web-app-capable" content="yes">
|
|
|
8
|
+ <meta name="apple-mobile-web-app-status-bar-style" content="black">
|
|
|
9
|
+ <link href="../css/mui.min.css" rel="stylesheet" />
|
|
|
10
|
+ <link rel="stylesheet" href="../css/app.css" />
|
|
|
11
|
+ <link rel="stylesheet" href="../layui/css/layui.mobile.css" />
|
|
|
12
|
+ <link href="../css/mui.picker.css" rel="stylesheet" />
|
|
|
13
|
+ <link href="../css/mui.poppicker.css" rel="stylesheet" />
|
|
|
14
|
+ <link href="../css/feedback-page.css" rel="stylesheet" />
|
|
|
15
|
+ <link rel="stylesheet" href="../css/iconfont.css" />
|
|
|
16
|
+ <link rel="stylesheet" href="../css/inits.css" />
|
|
|
17
|
+ <style>
|
|
|
18
|
+ .mui-bar-popover {
|
|
|
19
|
+ width: 30%;
|
|
|
20
|
+ }
|
|
|
21
|
+
|
|
|
22
|
+ .mui-popover.mui-bar-popover .mui-table-view {
|
|
|
23
|
+ width: 100%;
|
|
|
24
|
+ }
|
|
|
25
|
+
|
|
|
26
|
+ .mui-table-view .mui-table-view-cell>a:not(.mui-btn) {
|
|
|
27
|
+ text-align: center;
|
|
|
28
|
+ }
|
|
|
29
|
+
|
|
|
30
|
+ .mui-table-view-cell {
|
|
|
31
|
+ padding: 1px 15px!important;
|
|
|
32
|
+ }
|
|
|
33
|
+
|
|
|
34
|
+ .mui-table-view {
|
|
|
35
|
+ margin-top: 0!important;
|
|
|
36
|
+ }
|
|
|
37
|
+
|
|
|
38
|
+ .san {
|
|
|
39
|
+ font-size: 14px;
|
|
|
40
|
+ margin-right: 5px
|
|
|
41
|
+ }
|
|
|
42
|
+
|
|
|
43
|
+ .nav_a {
|
|
|
44
|
+ border-right: 1px solid #ccc;
|
|
|
45
|
+ }
|
|
|
46
|
+
|
|
|
47
|
+ .radio_box {
|
|
|
48
|
+ display: inline-block;
|
|
|
49
|
+ }
|
|
|
50
|
+
|
|
|
51
|
+ .mui-radio input[type=radio]:before {
|
|
|
52
|
+ font-size: 20px;
|
|
|
53
|
+ vertical-align: middle;
|
|
|
54
|
+ }
|
|
|
55
|
+
|
|
|
56
|
+ .mui-radio.mui-left input[type=radio] {
|
|
|
57
|
+ line-height: 24px!important;
|
|
|
58
|
+ }
|
|
|
59
|
+
|
|
|
60
|
+ .mui-radio.mui-left label {
|
|
|
61
|
+ padding-right: 1px!important;
|
|
|
62
|
+ padding-left: 51px!important;
|
|
|
63
|
+ }
|
|
|
64
|
+
|
|
|
65
|
+ .ztext {
|
|
|
66
|
+ width: 100%;
|
|
|
67
|
+ margin: 0;
|
|
|
68
|
+ border: 0;
|
|
|
69
|
+ }
|
|
|
70
|
+
|
|
|
71
|
+ .action {
|
|
|
72
|
+ padding: 11px 15px;
|
|
|
73
|
+ }
|
|
|
74
|
+
|
|
|
75
|
+ .type_down {
|
|
|
76
|
+ float: right!important;
|
|
|
77
|
+ display: inline-block!important;
|
|
|
78
|
+ vertical-align: middle!important;
|
|
|
79
|
+ line-height: 42px;
|
|
|
80
|
+ }
|
|
|
81
|
+
|
|
|
82
|
+ .type_con {
|
|
|
83
|
+ width: 55%!important;
|
|
|
84
|
+ float: left!important;
|
|
|
85
|
+ vertical-align: middle!important;
|
|
|
86
|
+ display: inline-block!important;
|
|
|
87
|
+ padding: 10px 0!important;
|
|
|
88
|
+ }
|
|
|
89
|
+
|
|
|
90
|
+ .label {
|
|
|
91
|
+ width: 30%!important;
|
|
|
92
|
+ padding: 11px 0px!important;
|
|
|
93
|
+ }
|
|
|
94
|
+
|
|
|
95
|
+ .get_yzm {
|
|
|
96
|
+ padding: 5px!important;
|
|
|
97
|
+ width: auto!important;
|
|
|
98
|
+ }
|
|
|
99
|
+
|
|
|
100
|
+ .yzm_con {
|
|
|
101
|
+ float: left!important;
|
|
|
102
|
+ width: 40%!important;
|
|
|
103
|
+ }
|
|
|
104
|
+ </style>
|
|
|
105
|
+ </head>
|
|
3
|
106
|
|
|
4
|
|
-<head>
|
|
5
|
|
- <meta charset="UTF-8">
|
|
6
|
|
- <title></title>
|
|
7
|
|
- <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
|
|
8
|
|
- <meta name="apple-mobile-web-app-capable" content="yes">
|
|
9
|
|
- <meta name="apple-mobile-web-app-status-bar-style" content="black">
|
|
10
|
|
- <link rel="stylesheet" href="../layui/css/layui.mobile.css" />
|
|
11
|
|
- <link href="../css/mui.min.css" rel="stylesheet" />
|
|
12
|
|
- <link rel="stylesheet" href="../css/app.css" />
|
|
13
|
|
- <link href="../css/mui.picker.css" rel="stylesheet" />
|
|
14
|
|
- <link href="../css/mui.poppicker.css" rel="stylesheet" />
|
|
15
|
|
- <link href="../css/feedback-page.css" rel="stylesheet" />
|
|
16
|
|
- <link rel="stylesheet" href="../css/iconfont.css" />
|
|
17
|
|
- <link rel="stylesheet" href="../css/inits.css" />
|
|
18
|
|
- <style>
|
|
19
|
|
- .mui-bar-popover {
|
|
20
|
|
- width: 30%;
|
|
21
|
|
- }
|
|
|
107
|
+ <body>
|
|
|
108
|
+ <div class="mui-content">
|
|
|
109
|
+ <ul class="mui-table-view">
|
|
|
110
|
+ <li class="mui-table-view-cell" id="showUserPicker">
|
|
|
111
|
+ <div class="mui-input-row">
|
|
|
112
|
+ <label class="label">诉求类型:</label>
|
|
|
113
|
+ <input type="text" id='userResult' class="ui-alert" data-index="" readonly="readonly" />
|
|
|
114
|
+ <!--<a href=""><span class="type_down mui-icon mui-icon-arrowdown mui-pull-right"></span></a>-->
|
|
|
115
|
+ </div>
|
|
|
116
|
+ </li>
|
|
|
117
|
+ <li class="mui-table-view-cell" id="showZhuTiPicker">
|
|
|
118
|
+ <div class="mui-input-row">
|
|
|
119
|
+ <label class="label">主题词:</label>
|
|
|
120
|
+ <input type="text" id='zhuTiResult' class="ui-alert type_con" data-index="" readonly="readonly" />
|
|
|
121
|
+ <a href=""><span class="type_down mui-icon mui-icon-arrowdown mui-pull-right"></span></a>
|
|
|
122
|
+ </div>
|
|
|
123
|
+ </li>
|
|
|
124
|
+ <li class="mui-table-view-cell baoMi">
|
|
|
125
|
+ <div class="mui-input-row">
|
|
|
126
|
+ <label class="label">保密要求:</label>
|
|
|
127
|
+ <div class="mui-input-row mui-radio mui-left radio_box">
|
|
|
128
|
+ <label>保密</label>
|
|
|
129
|
+ <input type="radio" type="radio" name="secret" value="1" />
|
|
|
130
|
+ </div>
|
|
|
131
|
+ <div class="mui-input-row mui-radio mui-left radio_box">
|
|
|
132
|
+ <label>公开</label>
|
|
|
133
|
+ <input type="radio" type="radio" name="secret" checked="checked" value="0" />
|
|
|
134
|
+ </div>
|
|
|
135
|
+ </li>
|
|
|
136
|
+ <li class="mui-table-view-cell">
|
|
|
137
|
+ <div class="mui-input-row">
|
|
|
138
|
+ <label class="label">诉求主题:</label>
|
|
|
139
|
+ <input type="text" id="title" placeholder="请填写您的诉求主题">
|
|
|
140
|
+ </div>
|
|
|
141
|
+ </li>
|
|
|
142
|
+ <li class="mui-table-view-cell">
|
|
|
143
|
+ <div class="mui-input-row">
|
|
|
144
|
+ <textarea class="ztext content" name="" id="textarea" rows="3" cols="" placeholder="请详细描述您的问题..."></textarea>
|
|
|
145
|
+ </div>
|
|
|
146
|
+ </li>
|
|
|
147
|
+ <li class="mui-table-view-cell">
|
|
|
148
|
+ <div class="mui-input-row">
|
|
|
149
|
+ <label class="label">联系人:</label>
|
|
|
150
|
+ <input type="text" id="name" placeholder="请填写您的称呼">
|
|
|
151
|
+ </div>
|
|
|
152
|
+ </li>
|
|
|
153
|
+ <li class="mui-table-view-cell">
|
|
|
154
|
+ <div class="mui-input-row">
|
|
|
155
|
+ <label class="label">联系电话:</label>
|
|
|
156
|
+ <input type="text" id="phone" placeholder="请填写联系电话">
|
|
|
157
|
+ </div>
|
|
|
158
|
+ </li>
|
|
|
159
|
+ <li class="mui-table-view-cell" id='showCityPicker3'>
|
|
|
160
|
+ <div class="mui-input-row">
|
|
|
161
|
+ <label class="label adress"></label>
|
|
|
162
|
+ <input type="text" id='cityResult3' data-index="" class="ui-alert type_con" placeholder="请选择具体地址" readonly="readonly" />
|
|
|
163
|
+ <a href=""><span class="type_down mui-icon mui-icon-arrowdown mui-pull-right"></span></a>
|
|
|
164
|
+ </div>
|
|
|
165
|
+ </li>
|
|
|
166
|
+ <li class="mui-table-view-cell">
|
|
|
167
|
+ <div class="mui-input-row">
|
|
|
168
|
+ <label class="label">街道:</label>
|
|
|
169
|
+ <input type="text" id="detail_address" class="ui-alert" placeholder="请填写详细地址" />
|
|
|
170
|
+ </div>
|
|
|
171
|
+ </li>
|
|
|
172
|
+ </ul>
|
|
|
173
|
+ <div class="feedback">
|
|
|
174
|
+ <p>添加图片(选填,提供问题截图,单张20M以下,最多上传5张)</p>
|
|
|
175
|
+ <div id='image-list' class="row image-list"></div>
|
|
|
176
|
+ </div>
|
|
22
|
177
|
|
|
23
|
|
- .mui-popover.mui-bar-popover .mui-table-view {
|
|
24
|
|
- width: 100%;
|
|
25
|
|
- }
|
|
|
178
|
+ <p class="action">
|
|
|
179
|
+ <i class="iconfont icon-gantanhao" style="margin-right: 5px;font-size: 20px;vertical-align: middle;"></i>
|
|
|
180
|
+ <span style="color: #f81737;">如事件内容地址填写不详细,将影响到你事件办理,请填写详细</span>
|
|
|
181
|
+ </p>
|
|
|
182
|
+ <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block block_button submit">提交</button>
|
|
|
183
|
+ </div>
|
|
|
184
|
+ <script src="../layui/layui.js"></script>
|
|
|
185
|
+ <script src="../js/mui.min.js"></script>
|
|
|
186
|
+ <script src="../js/mui.picker.js"></script>
|
|
|
187
|
+ <script src="../js/mui.poppicker.js"></script>
|
|
|
188
|
+ <script src="../js/zepto.js"></script>
|
|
|
189
|
+ <script src="../Script/Common/huayi.config.js"></script>
|
|
|
190
|
+ <script src="../Script/Common/huayi.http.js"></script>
|
|
|
191
|
+ <script src="../js/feedback-page.js"></script>
|
|
|
192
|
+ <script type="text/javascript">
|
|
|
193
|
+ var menuCode = helper.request.queryString("menuCode");
|
|
|
194
|
+ var regTel = /^(([0\+]\d{2,3}-)?((0\d{2,3}))?(-)?)?(\d{7,8})(-(\d{3,}))?$/;
|
|
|
195
|
+ var regMobile = /^([+-]?)\d*\.?\d+$/;
|
|
|
196
|
+ if(menuCode == 'WYBY') {
|
|
|
197
|
+ $('.adress').html('地址:');
|
|
|
198
|
+ $('.baoMi').hide();
|
|
|
199
|
+ } else {
|
|
|
200
|
+ $('.adress').html('事发地址:');
|
|
|
201
|
+ $('.baoMi').show();
|
|
|
202
|
+ }
|
|
|
203
|
+ switch(menuCode) {
|
|
|
204
|
+ case "WYZX":
|
|
|
205
|
+ $("title").html("我要咨询");
|
|
|
206
|
+ $('#userResult').attr('data-index', '9');
|
|
|
207
|
+ $('#userResult').val('咨询');
|
|
|
208
|
+ break;
|
|
|
209
|
+ case "WYQZ":
|
|
|
210
|
+ $("title").html("我要求助");
|
|
|
211
|
+ $('#userResult').attr('data-index', '10');
|
|
|
212
|
+ $('#userResult').val('求助');
|
|
|
213
|
+ break;
|
|
|
214
|
+ case "WYTS":
|
|
|
215
|
+ $("title").html("我要投诉");
|
|
|
216
|
+ $('#userResult').attr('data-index', '11');
|
|
|
217
|
+ $('#userResult').val('投诉');
|
|
|
218
|
+ break;
|
|
|
219
|
+ case "WYJY":
|
|
|
220
|
+ $("title").html("我要建议");
|
|
|
221
|
+ $('#userResult').attr('data-index', '12');
|
|
|
222
|
+ $('#userResult').val('建议 ');
|
|
|
223
|
+ break;
|
|
|
224
|
+ case "WYBY":
|
|
|
225
|
+ $("title").html("我要表扬");
|
|
|
226
|
+ $('#userResult').attr('data-index', '13');
|
|
|
227
|
+ $('#userResult').val('表扬');
|
|
|
228
|
+ break;
|
|
|
229
|
+ }
|
|
|
230
|
+ //提交按钮
|
|
|
231
|
+ //提交按钮
|
|
|
232
|
+ $('.submit').on('tap', function() {
|
|
|
233
|
+ if(!$('#zhuTiResult').val()) {
|
|
|
234
|
+ mui.alert('请选择主题词!');
|
|
|
235
|
+ return;
|
|
|
236
|
+ }
|
|
|
237
|
+ if(!$('#title').val()) {
|
|
|
238
|
+ mui.alert('请输入诉求主题!');
|
|
|
239
|
+ return;
|
|
|
240
|
+ }
|
|
|
241
|
+ if(!$('#textarea').val()) {
|
|
|
242
|
+ mui.alert('请输入详细内容!');
|
|
|
243
|
+ return;
|
|
|
244
|
+ }
|
|
|
245
|
+ if(!$('#name').val()) {
|
|
|
246
|
+ mui.alert('请输入联系人姓名!');
|
|
|
247
|
+ return;
|
|
|
248
|
+ }
|
|
|
249
|
+ if(!$('#phone').val()) {
|
|
|
250
|
+ mui.alert('请输入联系电话!');
|
|
|
251
|
+ return;
|
|
|
252
|
+ } else {
|
|
|
253
|
+ if(!regMobile.test($.trim($("#phone").val()))) {
|
|
|
254
|
+ mui.alert('请输入有效的联系电话!');
|
|
|
255
|
+ return;
|
|
|
256
|
+ }
|
|
|
257
|
+ }
|
|
|
258
|
+ if($('#cityResult3').val() == '') {
|
|
|
259
|
+ mui.alert('请选择' + $('.adress').html() + '!');
|
|
|
260
|
+ return;
|
|
|
261
|
+ }
|
|
|
262
|
+ if(!$('#detail_address').val()) {
|
|
|
263
|
+ mui.alert('请填写详细地址');
|
|
|
264
|
+ return;
|
|
|
265
|
+ }
|
|
|
266
|
+ Submit()
|
|
|
267
|
+ })
|
|
|
268
|
+ var openid = helper.cookies.get("openid");
|
|
|
269
|
+ //事发地域
|
|
|
270
|
+ var areaList = [];
|
|
|
271
|
+ $.ajax({
|
|
|
272
|
+ type: "get",
|
|
|
273
|
+ url: huayi.config.callcenter_url + 'WxLogin/GetAreaList',
|
|
|
274
|
+ async: false,
|
|
|
275
|
+ data: {
|
|
|
276
|
+ openid: openid
|
|
|
277
|
+ },
|
|
|
278
|
+ dataType: 'json',
|
|
|
279
|
+ success: function(data) {
|
|
|
280
|
+ var area_data = data.data;
|
|
|
281
|
+ $(area_data).each(function(i, n) {
|
|
|
282
|
+ var obj = {};
|
|
|
283
|
+ obj.value = n.F_AreaId;
|
|
|
284
|
+ obj.text = n.F_AreaName;
|
|
|
285
|
+ areaList.push(obj)
|
|
|
286
|
+ })
|
|
|
287
|
+ }
|
|
|
288
|
+ });
|
|
|
289
|
+ //主题词
|
|
|
290
|
+ var keyList = [];
|
|
|
291
|
+ $.ajax({
|
|
|
292
|
+ type: "get",
|
|
|
293
|
+ url: huayi.config.callcenter_url + 'WxLogin/GetKeyList',
|
|
|
294
|
+ async: false,
|
|
|
295
|
+ data: {
|
|
|
296
|
+ openid: openid
|
|
|
297
|
+ },
|
|
|
298
|
+ dataType: 'json',
|
|
|
299
|
+ success: function(data) {
|
|
|
300
|
+ var key_data = data.data;
|
|
|
301
|
+ $(key_data).each(function(i, n) {
|
|
|
302
|
+ var obj = {};
|
|
|
303
|
+ obj.value = n.F_ValueId;
|
|
|
304
|
+ obj.text = n.F_Value;
|
|
|
305
|
+ keyList.push(obj)
|
|
|
306
|
+ })
|
|
|
307
|
+ }
|
|
|
308
|
+ });
|
|
26
|
309
|
|
|
27
|
|
- .mui-table-view .mui-table-view-cell > a:not(.mui-btn) {
|
|
28
|
|
- text-align: center;
|
|
29
|
|
- }
|
|
|
310
|
+ function Submit() {
|
|
|
311
|
+ var str_ary = '';
|
|
|
312
|
+ $(".image-box").each(function(i, n) {
|
|
|
313
|
+ var a = $(n).attr("indexs");
|
|
|
314
|
+ if(a) {
|
|
|
315
|
+ if(str_ary) {
|
|
|
316
|
+ str_ary = str_ary + ',' + a;
|
|
|
317
|
+ } else {
|
|
|
318
|
+ str_ary = a;
|
|
|
319
|
+ }
|
|
|
320
|
+ }
|
|
|
321
|
+ })
|
|
|
322
|
+ $.ajax({
|
|
|
323
|
+ type: "post",
|
|
|
324
|
+ url: huayi.config.callcenter_url + 'WxLogin/AddWorkOrder',
|
|
|
325
|
+ async: true,
|
|
|
326
|
+ data: {
|
|
|
327
|
+ openid: openid,
|
|
|
328
|
+ cusname: $('#name').val(), //投诉人姓名
|
|
|
329
|
+ cusphone: $('#phone').val(), //投诉人电话
|
|
|
330
|
+ conphone: $('#phone').val(), //客户电话
|
|
|
331
|
+ title: $('#title').val(), //投诉主题
|
|
|
332
|
+ content: $('.content').val(), //投诉内容
|
|
|
333
|
+ sourcearea: $('#cityResult3').attr('data-index'), //事发地域id
|
|
|
334
|
+ sourceaddress: $('#detail_address').val(), //详细地址
|
|
|
335
|
+ keys: $('#zhuTiResult').attr('data-index'), //关键词
|
|
|
336
|
+ type: $('#userResult').attr('data-index'), //诉求类型
|
|
|
337
|
+ files: str_ary,
|
|
|
338
|
+ isprotect: $('input[name="secret"]:checked').val() //(0普通1保密)
|
|
|
339
|
+ },
|
|
|
340
|
+ success: function(data) {
|
|
|
341
|
+ var str = JSON.parse(data);
|
|
|
342
|
+ console.log(str)
|
|
|
343
|
+ console.log(str.state)
|
|
|
344
|
+ if(str.state == "success") {
|
|
|
345
|
+ debugger
|
|
|
346
|
+ mui.toast('投诉成功!');
|
|
|
347
|
+ $("#name").val('');
|
|
|
348
|
+ $("#phone").val('');
|
|
|
349
|
+ $("#title").val('');
|
|
|
350
|
+ $(".content").val('');
|
|
|
351
|
+ $("#cityResult3").val('');
|
|
|
352
|
+ $("#zhuTiResult").val('');
|
|
|
353
|
+ $('#detail_address').val('');
|
|
|
354
|
+ $('input[name="secret"][value="0"]').prop("checked", "checked");
|
|
|
355
|
+ }
|
|
|
356
|
+ }
|
|
|
357
|
+ });
|
|
|
358
|
+ }
|
|
30
|
359
|
|
|
31
|
|
- .mui-table-view-cell {
|
|
32
|
|
- padding: 1px 15px !important;
|
|
33
|
|
- }
|
|
|
360
|
+ (function($, doc) {
|
|
|
361
|
+ $.init();
|
|
|
362
|
+ $.ready(function() {
|
|
|
363
|
+ //主题词
|
|
|
364
|
+ var zhuTiPicker = new $.PopPicker();
|
|
|
365
|
+ zhuTiPicker.setData(keyList);
|
|
|
366
|
+ var showZhuTiPickerButton = doc.getElementById('showZhuTiPicker');
|
|
|
367
|
+ var zhuTiResult = doc.getElementById('zhuTiResult');
|
|
|
368
|
+ showZhuTiPickerButton.addEventListener('tap', function(event) {
|
|
|
369
|
+ zhuTiPicker.show(function(items) {
|
|
|
370
|
+ console.log(items)
|
|
|
371
|
+ zhuTiResult.value = items[0].text;
|
|
|
372
|
+ zhuTiResult.setAttribute("data-index", items[0].value);
|
|
|
373
|
+ //返回 false 可以阻止选择框的关闭
|
|
|
374
|
+ //return false;
|
|
|
375
|
+ });
|
|
|
376
|
+ }, false);
|
|
|
377
|
+ //事件地址
|
|
|
378
|
+ var cityPicker3 = new $.PopPicker();
|
|
|
379
|
+ cityPicker3.setData(areaList);
|
|
|
380
|
+ var showCityPickerButton = doc.getElementById('showCityPicker3');
|
|
|
381
|
+ var cityResult3 = doc.getElementById('cityResult3');
|
|
|
382
|
+ showCityPickerButton.addEventListener('tap', function(event) {
|
|
|
383
|
+ cityPicker3.show(function(items) {
|
|
|
384
|
+ cityResult3.value = items[0].text;
|
|
|
385
|
+ cityResult3.setAttribute("data-index", items[0].value);
|
|
|
386
|
+ //返回 false 可以阻止选择框的关闭
|
|
|
387
|
+ //return false;
|
|
|
388
|
+ });
|
|
|
389
|
+ }, false);
|
|
34
|
390
|
|
|
35
|
|
- .mui-table-view {
|
|
36
|
|
- margin-top: 0 !important;
|
|
37
|
|
- }
|
|
38
|
|
-
|
|
39
|
|
- .san {
|
|
40
|
|
- font-size: 14px;
|
|
41
|
|
- margin-right: 5px
|
|
42
|
|
- }
|
|
43
|
|
-
|
|
44
|
|
- .nav_a {
|
|
45
|
|
- border-right: 1px solid #ccc;
|
|
46
|
|
- }
|
|
47
|
|
-
|
|
48
|
|
- .radio_box {
|
|
49
|
|
- display: inline-block;
|
|
50
|
|
- }
|
|
51
|
|
-
|
|
52
|
|
- .mui-radio input[type=radio]:before {
|
|
53
|
|
- font-size: 20px;
|
|
54
|
|
- vertical-align: middle;
|
|
55
|
|
- }
|
|
56
|
|
-
|
|
57
|
|
- .mui-radio.mui-left input[type=radio] {
|
|
58
|
|
- line-height: 24px !important;
|
|
59
|
|
- }
|
|
60
|
|
-
|
|
61
|
|
- .mui-radio.mui-left label {
|
|
62
|
|
- padding-right: 1px !important;
|
|
63
|
|
- padding-left: 51px !important;
|
|
64
|
|
- }
|
|
65
|
|
-
|
|
66
|
|
- .ztext {
|
|
67
|
|
- width: 100%;
|
|
68
|
|
- margin: 0;
|
|
69
|
|
- border: 0;
|
|
70
|
|
- }
|
|
71
|
|
-
|
|
72
|
|
- .action {
|
|
73
|
|
- padding: 11px 15px;
|
|
74
|
|
- }
|
|
75
|
|
-
|
|
76
|
|
- .type_down {
|
|
77
|
|
- float: right !important;
|
|
78
|
|
- display: inline-block !important;
|
|
79
|
|
- vertical-align: middle !important;
|
|
80
|
|
- line-height: 42px;
|
|
81
|
|
- }
|
|
82
|
|
-
|
|
83
|
|
- .type_con {
|
|
84
|
|
- width: 55% !important;
|
|
85
|
|
- float: left !important;
|
|
86
|
|
- vertical-align: middle !important;
|
|
87
|
|
- display: inline-block !important;
|
|
88
|
|
- padding: 10px 0 !important;
|
|
89
|
|
- }
|
|
90
|
|
-
|
|
91
|
|
- .label {
|
|
92
|
|
- width: 30% !important;
|
|
93
|
|
- padding: 11px 0px !important;
|
|
94
|
|
- }
|
|
95
|
|
-
|
|
96
|
|
- .get_yzm {
|
|
97
|
|
- padding: 5px !important;
|
|
98
|
|
- width: auto !important;
|
|
99
|
|
- }
|
|
100
|
|
-
|
|
101
|
|
- .yzm_con {
|
|
102
|
|
- float: left !important;
|
|
103
|
|
- width: 40% !important;
|
|
104
|
|
- }
|
|
105
|
|
- </style>
|
|
106
|
|
-</head>
|
|
107
|
|
-
|
|
108
|
|
-<body>
|
|
109
|
|
- <!--<header id="header" class="mui-bar mui-bar-nav new_head">
|
|
110
|
|
- <h1 class="mui-title new_head_title">我要投诉</h1>
|
|
111
|
|
- <button class="new_head_left mui-action-back mui-btn mui-btn-blue mui-btn-link mui-btn-nav mui-pull-left">
|
|
112
|
|
- <span class="mui-icon mui-icon-left-nav"></span>返回
|
|
113
|
|
- </button>
|
|
114
|
|
- <button class="new_head_right mui-btn mui-btn-blue mui-btn-link mui-pull-right"><span class="iconfont icon-unie644" style="font-size: 25px;"></span></button>
|
|
115
|
|
- </header>-->
|
|
116
|
|
-
|
|
117
|
|
- <div class="mui-content">
|
|
118
|
|
- <ul class="mui-table-view">
|
|
119
|
|
- <li class="mui-table-view-cell" id="showUserPicker">
|
|
120
|
|
- <div class="mui-input-row">
|
|
121
|
|
- <label class="label">诉求类型:</label>
|
|
122
|
|
- <input type="text" id='userResult' class="ui-alert" data-index="" readonly="readonly" />
|
|
123
|
|
- <!--<a href=""><span class="type_down mui-icon mui-icon-arrowdown mui-pull-right"></span></a>-->
|
|
124
|
|
- </div>
|
|
125
|
|
- </li>
|
|
126
|
|
- <li class="mui-table-view-cell" id="showZhuTiPicker">
|
|
127
|
|
- <div class="mui-input-row">
|
|
128
|
|
- <label class="label">主题词:</label>
|
|
129
|
|
- <input type="text" id='zhuTiResult' class="ui-alert type_con" data-index="" readonly="readonly" />
|
|
130
|
|
- <a href="javascript:void(0)"><span class="type_down mui-icon mui-icon-arrowdown mui-pull-right"></span></a>
|
|
131
|
|
- </div>
|
|
132
|
|
- </li>
|
|
133
|
|
-
|
|
134
|
|
- <li class="mui-table-view-cell baoMi">
|
|
135
|
|
- <div class="mui-input-row">
|
|
136
|
|
- <label class="label">保密要求:</label>
|
|
137
|
|
- <div class="mui-input-row mui-radio mui-left radio_box">
|
|
138
|
|
- <label>保密</label>
|
|
139
|
|
- <input type="radio" type="radio" name="secret" value="1" />
|
|
140
|
|
- </div>
|
|
141
|
|
- <div class="mui-input-row mui-radio mui-left radio_box">
|
|
142
|
|
- <label>公开</label>
|
|
143
|
|
- <input type="radio" type="radio" name="secret" checked="checked" value="0" />
|
|
144
|
|
- </div>
|
|
145
|
|
- </div>
|
|
146
|
|
- </li>
|
|
147
|
|
- <li class="mui-table-view-cell">
|
|
148
|
|
- <div class="mui-input-row">
|
|
149
|
|
- <label class="label">诉求主题:</label>
|
|
150
|
|
- <input type="text" id="title" placeholder="请填写您的诉求主题">
|
|
151
|
|
- </div>
|
|
152
|
|
- </li>
|
|
153
|
|
- <li class="mui-table-view-cell">
|
|
154
|
|
- <div class="mui-input-row">
|
|
155
|
|
- <textarea class="ztext content" name="" id="textarea" rows="3" cols="" placeholder="请详细描述您的问题..."></textarea>
|
|
156
|
|
- </div>
|
|
157
|
|
- </li>
|
|
158
|
|
- <li class="mui-table-view-cell">
|
|
159
|
|
- <div class="mui-input-row">
|
|
160
|
|
- <label class="label">联系人:</label>
|
|
161
|
|
- <input type="text" id="name" placeholder="请填写您的称呼">
|
|
162
|
|
- </div>
|
|
163
|
|
- </li>
|
|
164
|
|
- <li class="mui-table-view-cell">
|
|
165
|
|
- <div class="mui-input-row">
|
|
166
|
|
- <label class="label">联系电话:</label>
|
|
167
|
|
- <input type="text" id="phone" placeholder="请填写联系电话">
|
|
168
|
|
- </div>
|
|
169
|
|
- </li>
|
|
170
|
|
- <!--<li class="mui-table-view-cell">
|
|
171
|
|
- <div class="mui-input-row">
|
|
172
|
|
- <label>验证码:</label>
|
|
173
|
|
- <input type="text" placeholder="请输入短信验证码" class="yzm_con">
|
|
174
|
|
- <div class="mui-btn mui-btn-primary get_yzm">获取验证码</div>
|
|
175
|
|
- </div>
|
|
176
|
|
- </li>-->
|
|
177
|
|
- <li class="mui-table-view-cell" id='showCityPicker3'>
|
|
178
|
|
- <div class="mui-input-row">
|
|
179
|
|
- <label class="label adress"></label>
|
|
180
|
|
- <input type="text" id='cityResult3' data-index="" class="ui-alert type_con" placeholder="请选择市县" readonly="readonly" />
|
|
181
|
|
- <a href="javascript:void(0)"><span class="type_down mui-icon mui-icon-arrowdown mui-pull-right"></span></a>
|
|
182
|
|
- </div>
|
|
183
|
|
- </li>
|
|
184
|
|
- <li class="mui-table-view-cell" id='showtown'>
|
|
185
|
|
- <div class="mui-input-row">
|
|
186
|
|
- <label class="label">街道:</label>
|
|
187
|
|
- <input type="text" id='town' data-index="" class="ui-alert type_con" placeholder="请选择街道" readonly="readonly" />
|
|
188
|
|
- <a href="javascript:void(0)"><span class="type_down mui-icon mui-icon-arrowdown mui-pull-right"></span></a>
|
|
189
|
|
- </div>
|
|
190
|
|
- </li>
|
|
191
|
|
- <li class="mui-table-view-cell" id='showvillage'>
|
|
192
|
|
- <div class="mui-input-row">
|
|
193
|
|
- <label class="label">村庄:</label>
|
|
194
|
|
- <input type="text" id='village' data-index="" class="ui-alert type_con" placeholder="请选择村庄" readonly="readonly" />
|
|
195
|
|
- <a href="javascript:void(0)"><span class="type_down mui-icon mui-icon-arrowdown mui-pull-right"></span></a>
|
|
196
|
|
- </div>
|
|
197
|
|
- </li>
|
|
198
|
|
- <li class="mui-table-view-cell">
|
|
199
|
|
- <div class="mui-input-row">
|
|
200
|
|
- <label class="label">详细地址:</label>
|
|
201
|
|
- <input type="text" id="detail_address" class="ui-alert" placeholder="请填写详细地址" />
|
|
202
|
|
- </div>
|
|
203
|
|
- </li>
|
|
204
|
|
- <!--<li class="mui-table-view-cell">
|
|
205
|
|
- <div class="mui-input-row" >
|
|
206
|
|
- <label>附件:</label>
|
|
207
|
|
- <!--<a href=""><span class="iconfont icon-jiahao"></span></a>-->
|
|
208
|
|
- <!--<input type="file" />
|
|
209
|
|
- </div>
|
|
210
|
|
- </li>-->
|
|
211
|
|
- </ul>
|
|
212
|
|
- <div class="feedback">
|
|
213
|
|
- <p>添加图片(选填,提供问题截图,单张20M以下,最多上传5张)</p>
|
|
214
|
|
- <div id='image-list' class="row image-list"></div>
|
|
215
|
|
- </div>
|
|
216
|
|
-
|
|
217
|
|
- <p class="action">
|
|
218
|
|
- <i class="iconfont icon-gantanhao" style="margin-right: 5px;font-size: 20px;vertical-align: middle;"></i>
|
|
219
|
|
- <span style="color: #f81737;">如事件内容地址填写不详细,将影响到你事件办理,请填写详细</span>
|
|
220
|
|
- </p>
|
|
221
|
|
- <!--<button type="button" class="mui-btn mui-btn-primary mui-btn-block block_button">提交</button>-->
|
|
222
|
|
- <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block block_button submit">提交</button>
|
|
223
|
|
- </div>
|
|
224
|
|
- <script src="../layui/layui.js"></script>
|
|
225
|
|
- <script src="../js/mui.min.js"></script>
|
|
226
|
|
- <script src="../js/mui.picker.js"></script>
|
|
227
|
|
- <script src="../js/mui.poppicker.js"></script>
|
|
228
|
|
- <script src="../js/zepto.js"></script>
|
|
229
|
|
- <script src="../Script/Common/huayi.config.js"></script>
|
|
230
|
|
- <script src="../Script/Common/huayi.http.js"></script>
|
|
231
|
|
- <script src="../js/feedback-page.js"></script>
|
|
232
|
|
- <script type="text/javascript">
|
|
233
|
|
-// $(document).ready(function () {
|
|
234
|
|
- var townPicker, villagePicker,areaList = [],townList = [],villageList = [],keyList = [];
|
|
235
|
|
- var openid = helper.cookies.get("openid");
|
|
236
|
|
-// if (!openid) {
|
|
237
|
|
-// window.location.replace("../html/error.html");
|
|
238
|
|
-// }
|
|
239
|
|
- var menuCode = helper.request.queryString("menuCode");
|
|
240
|
|
-
|
|
241
|
|
- if (menuCode == 'WYBY') {
|
|
242
|
|
- $('.adress').html('市县:');
|
|
243
|
|
- $('.baoMi').hide();
|
|
244
|
|
- } else {
|
|
245
|
|
- $('.adress').html('事发市县:');
|
|
246
|
|
- $('.baoMi').show();
|
|
247
|
|
- }
|
|
248
|
|
- switch (menuCode) {
|
|
249
|
|
- case "WYZX": $("title").html("我要咨询"); $('#userResult').attr('data-index', '9'); $('#userResult').val('咨询'); break;
|
|
250
|
|
- case "WYQZ": $("title").html("我要求助"); $('#userResult').attr('data-index', '10'); $('#userResult').val('求助'); break;
|
|
251
|
|
- case "WYTS": $("title").html("我要投诉"); $('#userResult').attr('data-index', '11'); $('#userResult').val('投诉'); break;
|
|
252
|
|
- case "WYJY": $("title").html("我要建议"); $('#userResult').attr('data-index', '12'); $('#userResult').val('建议 '); break;
|
|
253
|
|
- case "WYBY": $("title").html("我要表扬"); $('#userResult').attr('data-index', '13'); $('#userResult').val('表扬'); break;
|
|
254
|
|
- }
|
|
255
|
|
- //提交按钮
|
|
256
|
|
- $('.submit').on('tap', function () {
|
|
257
|
|
-// if (!openid) {
|
|
258
|
|
-// mui.alert('非法访问!');
|
|
259
|
|
-// return;
|
|
260
|
|
-// }
|
|
261
|
|
- var str_ary = '';
|
|
262
|
|
- $(".image-box").each(function (i, n) {
|
|
263
|
|
- var a = $(n).attr("indexs");
|
|
264
|
|
- if (a) {
|
|
265
|
|
- if (str_ary) {
|
|
266
|
|
- str_ary = str_ary + ',' + a;
|
|
267
|
|
- }
|
|
268
|
|
- else {
|
|
269
|
|
- str_ary = a;
|
|
270
|
|
- }
|
|
271
|
|
- }
|
|
272
|
|
- })
|
|
273
|
|
- if (!$('#zhuTiResult').val()) {
|
|
274
|
|
- mui.alert('请选择主题词!');
|
|
275
|
|
- return;
|
|
276
|
|
- }
|
|
277
|
|
- if (!$('#title').val()) {
|
|
278
|
|
- mui.alert('请输入诉求主题!');
|
|
279
|
|
- return;
|
|
280
|
|
- }
|
|
281
|
|
- if (!$('#textarea').val()) {
|
|
282
|
|
- mui.alert('请输入详细内容!');
|
|
283
|
|
- return;
|
|
284
|
|
- }
|
|
285
|
|
- if (!$('#name').val()) {
|
|
286
|
|
- mui.alert('请输入联系人姓名!');
|
|
287
|
|
- return;
|
|
288
|
|
- }
|
|
289
|
|
- if (!$('#phone').val()) {
|
|
290
|
|
- mui.alert('请输入联系电话!');
|
|
291
|
|
- return;
|
|
292
|
|
- }
|
|
293
|
|
- else {
|
|
294
|
|
-
|
|
295
|
|
- var regTel = /^(([0\+]\d{2,3}-)?((0\d{2,3}))?(-)?)?(\d{7,8})(-(\d{3,}))?$/;
|
|
296
|
|
- var regMobile = /^([+-]?)\d*\.?\d+$/;
|
|
297
|
|
- if (!regMobile.test($.trim($("#phone").val()))) {
|
|
298
|
|
- mui.alert('请输入有效的联系电话!');
|
|
299
|
|
- return;
|
|
300
|
|
- }
|
|
301
|
|
- }
|
|
302
|
|
-
|
|
303
|
|
-
|
|
304
|
|
- if ($('#cityResult3').val() == '') {
|
|
305
|
|
- mui.alert('请选择' + $('.adress').html() + '!');
|
|
306
|
|
- return;
|
|
307
|
|
- }
|
|
308
|
|
- if (!$.trim($('#detail_address').val())) {
|
|
309
|
|
- mui.alert('请填写详细地址');
|
|
310
|
|
- return;
|
|
311
|
|
- }
|
|
312
|
|
- $.ajax({
|
|
313
|
|
- type: "post",
|
|
314
|
|
- url: huayi.config.callcenter_url + 'WxLogin/AddWorkOrder',
|
|
315
|
|
- async: true,
|
|
316
|
|
- data: {
|
|
317
|
|
- openid: openid,
|
|
318
|
|
- cusname: $('#name').val(),//投诉人姓名
|
|
319
|
|
- cusphone: $('#phone').val(),//投诉人电话
|
|
320
|
|
- conphone: $('#phone').val(),//客户电话
|
|
321
|
|
- title: $('#title').val(),//投诉主题
|
|
322
|
|
- content: $('.content').val(),//投诉内容
|
|
323
|
|
- sourcearea: $('#cityResult3').attr('data-index'),//事发地域id
|
|
324
|
|
- sourceaddress: $('#town').val()+" "+$('#village').val()+" "+$('#detail_address').val(),//详细地址
|
|
325
|
|
- keys: $('#zhuTiResult').attr('data-index'),//关键词
|
|
326
|
|
- type: $('#userResult').attr('data-index'),//诉求类型
|
|
327
|
|
- files: str_ary,
|
|
328
|
|
- isprotect: $('input[name="secret"]:checked').val()//(0普通1保密)
|
|
329
|
|
- },
|
|
330
|
|
- success: function (data) {
|
|
331
|
|
- var str = JSON.parse(data);
|
|
332
|
|
- if (str.state == "success") {
|
|
333
|
|
- mui.toast('投诉成功!');
|
|
334
|
|
- $("#name").val('');
|
|
335
|
|
- $("#phone").val('');
|
|
336
|
|
- $("#title").val('');
|
|
337
|
|
- $(".content").val('');
|
|
338
|
|
- $("#cityResult3").val('');
|
|
339
|
|
- $("#zhuTiResult").val('');
|
|
340
|
|
- // $("#userResult").val('');
|
|
341
|
|
- $('#detail_address').val('');
|
|
342
|
|
- $('input[name="secret"][value="0"]').prop("checked", "checked");
|
|
343
|
|
- window.location.reload();
|
|
344
|
|
- }
|
|
345
|
|
- }
|
|
346
|
|
- });
|
|
347
|
|
- })
|
|
348
|
|
-
|
|
349
|
|
-
|
|
350
|
|
-// })
|
|
351
|
|
-
|
|
352
|
|
-
|
|
353
|
|
- </script>
|
|
354
|
|
-</body>
|
|
|
391
|
+ })
|
|
|
392
|
+ })(mui, document);
|
|
|
393
|
+ </script>
|
|
|
394
|
+ </body>
|
|
355
|
395
|
|
|
356
|
396
|
</html>
|