|
|
@@ -24,7 +24,7 @@
|
|
24
|
24
|
width: 100%;
|
|
25
|
25
|
}
|
|
26
|
26
|
|
|
27
|
|
- .mui-table-view .mui-table-view-cell > a:not(.mui-btn) {
|
|
|
27
|
+ .mui-table-view .mui-table-view-cell>a:not(.mui-btn) {
|
|
28
|
28
|
text-align: center;
|
|
29
|
29
|
}
|
|
30
|
30
|
|
|
|
@@ -62,11 +62,13 @@
|
|
62
|
62
|
padding-right: 1px !important;
|
|
63
|
63
|
padding-left: 51px !important;
|
|
64
|
64
|
}
|
|
|
65
|
+
|
|
65
|
66
|
.ztext {
|
|
66
|
67
|
width: 100%;
|
|
67
|
68
|
margin: 0;
|
|
68
|
69
|
border: 0;
|
|
69
|
70
|
}
|
|
|
71
|
+
|
|
70
|
72
|
.action {
|
|
71
|
73
|
padding: 11px 15px;
|
|
72
|
74
|
}
|
|
|
@@ -125,7 +127,8 @@
|
|
125
|
127
|
<div class="mui-input-row">
|
|
126
|
128
|
<label class="label">主题词:</label>
|
|
127
|
129
|
<input type="text" id='zhuTiResult' class="ui-alert type_con" data-index="" readonly="readonly" />
|
|
128
|
|
- <a href="javascript:void(0)"><span class="type_down mui-icon mui-icon-arrowdown mui-pull-right"></span></a>
|
|
|
130
|
+ <a href="javascript:void(0)"><span
|
|
|
131
|
+ class="type_down mui-icon mui-icon-arrowdown mui-pull-right"></span></a>
|
|
129
|
132
|
</div>
|
|
130
|
133
|
</li>
|
|
131
|
134
|
|
|
|
@@ -150,7 +153,8 @@
|
|
150
|
153
|
</li>
|
|
151
|
154
|
<li class="mui-table-view-cell">
|
|
152
|
155
|
<div class="mui-input-row">
|
|
153
|
|
- <textarea class="ztext content" name="" id="textarea" rows="3" cols="" placeholder="请详细描述您的问题..."></textarea>
|
|
|
156
|
+ <textarea class="ztext content" name="" id="textarea" rows="3" cols=""
|
|
|
157
|
+ placeholder="请详细描述您的问题..."></textarea>
|
|
154
|
158
|
</div>
|
|
155
|
159
|
</li>
|
|
156
|
160
|
<li class="mui-table-view-cell">
|
|
|
@@ -178,22 +182,28 @@
|
|
178
|
182
|
<li class="mui-table-view-cell" id='showCityPicker3'>
|
|
179
|
183
|
<div class="mui-input-row">
|
|
180
|
184
|
<label class="label adress"></label>
|
|
181
|
|
- <input type="text" id='cityResult3' data-index="" class="ui-alert type_con" placeholder="请选择市县" readonly="readonly" />
|
|
182
|
|
- <a href="javascript:void(0)"><span class="type_down mui-icon mui-icon-arrowdown mui-pull-right"></span></a>
|
|
|
185
|
+ <input type="text" id='cityResult3' data-index="" class="ui-alert type_con" placeholder="请选择市县"
|
|
|
186
|
+ readonly="readonly" />
|
|
|
187
|
+ <a href="javascript:void(0)"><span
|
|
|
188
|
+ class="type_down mui-icon mui-icon-arrowdown mui-pull-right"></span></a>
|
|
183
|
189
|
</div>
|
|
184
|
190
|
</li>
|
|
185
|
191
|
<li class="mui-table-view-cell" id='showtown'>
|
|
186
|
192
|
<div class="mui-input-row">
|
|
187
|
193
|
<label class="label">街道:</label>
|
|
188
|
|
- <input type="text" id='town' data-index="" class="ui-alert type_con" placeholder="请选择街道" readonly="readonly" />
|
|
189
|
|
- <a href="javascript:void(0)"><span class="type_down mui-icon mui-icon-arrowdown mui-pull-right"></span></a>
|
|
|
194
|
+ <input type="text" id='town' data-index="" class="ui-alert type_con" placeholder="请选择街道"
|
|
|
195
|
+ readonly="readonly" />
|
|
|
196
|
+ <a href="javascript:void(0)"><span
|
|
|
197
|
+ class="type_down mui-icon mui-icon-arrowdown mui-pull-right"></span></a>
|
|
190
|
198
|
</div>
|
|
191
|
199
|
</li>
|
|
192
|
200
|
<li class="mui-table-view-cell" id='showvillage'>
|
|
193
|
201
|
<div class="mui-input-row">
|
|
194
|
202
|
<label class="label">村庄:</label>
|
|
195
|
|
- <input type="text" id='village' data-index="" class="ui-alert type_con" placeholder="请选择村庄" readonly="readonly" />
|
|
196
|
|
- <a href="javascript:void(0)"><span class="type_down mui-icon mui-icon-arrowdown mui-pull-right"></span></a>
|
|
|
203
|
+ <input type="text" id='village' data-index="" class="ui-alert type_con" placeholder="请选择村庄"
|
|
|
204
|
+ readonly="readonly" />
|
|
|
205
|
+ <a href="javascript:void(0)"><span
|
|
|
206
|
+ class="type_down mui-icon mui-icon-arrowdown mui-pull-right"></span></a>
|
|
197
|
207
|
</div>
|
|
198
|
208
|
</li>
|
|
199
|
209
|
<li class="mui-table-view-cell">
|
|
|
@@ -220,7 +230,8 @@
|
|
220
|
230
|
<span style="color: #f81737;">如事件内容地址填写不详细,将影响到你事件办理,请填写详细</span>
|
|
221
|
231
|
</p>
|
|
222
|
232
|
<!--<button type="button" class="mui-btn mui-btn-primary mui-btn-block block_button">提交</button>-->
|
|
223
|
|
- <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block block_button submit">提交</button>
|
|
|
233
|
+ <button type="button" data-loading-text="提交中"
|
|
|
234
|
+ class="mui-btn mui-btn-primary mui-btn-block block_button submit">提交</button>
|
|
224
|
235
|
</div>
|
|
225
|
236
|
<script src="../layui/layui.js"></script>
|
|
226
|
237
|
<script src="../js/mui.min.js"></script>
|
|
|
@@ -231,14 +242,18 @@
|
|
231
|
242
|
<script src="../Script/Common/huayi.http.js"></script>
|
|
232
|
243
|
<script src="../js/feedback-page.js"></script>
|
|
233
|
244
|
<script type="text/javascript">
|
|
234
|
|
-// $(document).ready(function () {
|
|
235
|
|
- var townPicker, villagePicker,areaList = [],townList = [],villageList = [],keyList = [];
|
|
236
|
|
- var openid = helper.cookies.get("openid");
|
|
237
|
|
- //var openid = "obwtK6JT-bTCeSbtqu4lkw4lIz0o";
|
|
|
245
|
+ var townPicker, villagePicker, areaList = [],
|
|
|
246
|
+ townList = [],
|
|
|
247
|
+ villageList = [],
|
|
|
248
|
+ keyList = [];
|
|
|
249
|
+ var openid = "obwtK6JT-bTCeSbtqu4lkw4lIz0o";
|
|
|
250
|
+ var menuCode = "WYTS";
|
|
|
251
|
+// var openid = helper.cookies.get("openid");
|
|
|
252
|
+ // var menuCode = helper.request.queryString("menuCode");
|
|
|
253
|
+ $(document).ready(function () {
|
|
238
|
254
|
if (!openid) {
|
|
239
|
255
|
window.location.replace("../html/error.html");
|
|
240
|
256
|
}
|
|
241
|
|
- var menuCode = helper.request.queryString("menuCode");
|
|
242
|
257
|
|
|
243
|
258
|
if (menuCode == 'WYBY') {
|
|
244
|
259
|
$('.adress').html('市县:');
|
|
|
@@ -248,11 +263,31 @@
|
|
248
|
263
|
$('.baoMi').show();
|
|
249
|
264
|
}
|
|
250
|
265
|
switch (menuCode) {
|
|
251
|
|
- case "WYZX": $("title").html("我要咨询"); $('#userResult').attr('data-index', '9'); $('#userResult').val('咨询'); break;
|
|
252
|
|
- case "WYQZ": $("title").html("我要求助"); $('#userResult').attr('data-index', '10'); $('#userResult').val('求助'); break;
|
|
253
|
|
- case "WYTS": $("title").html("我要投诉"); $('#userResult').attr('data-index', '11'); $('#userResult').val('投诉'); break;
|
|
254
|
|
- case "WYJY": $("title").html("我要建议"); $('#userResult').attr('data-index', '12'); $('#userResult').val('建议 '); break;
|
|
255
|
|
- case "WYBY": $("title").html("我要表扬"); $('#userResult').attr('data-index', '13'); $('#userResult').val('表扬'); break;
|
|
|
266
|
+ case "WYZX":
|
|
|
267
|
+ $("title").html("我要咨询");
|
|
|
268
|
+ $('#userResult').attr('data-index', '9');
|
|
|
269
|
+ $('#userResult').val('咨询');
|
|
|
270
|
+ break;
|
|
|
271
|
+ case "WYQZ":
|
|
|
272
|
+ $("title").html("我要求助");
|
|
|
273
|
+ $('#userResult').attr('data-index', '10');
|
|
|
274
|
+ $('#userResult').val('求助');
|
|
|
275
|
+ break;
|
|
|
276
|
+ case "WYTS":
|
|
|
277
|
+ $("title").html("我要投诉");
|
|
|
278
|
+ $('#userResult').attr('data-index', '11');
|
|
|
279
|
+ $('#userResult').val('投诉');
|
|
|
280
|
+ break;
|
|
|
281
|
+ case "WYJY":
|
|
|
282
|
+ $("title").html("我要建议");
|
|
|
283
|
+ $('#userResult').attr('data-index', '12');
|
|
|
284
|
+ $('#userResult').val('建议 ');
|
|
|
285
|
+ break;
|
|
|
286
|
+ case "WYBY":
|
|
|
287
|
+ $("title").html("我要表扬");
|
|
|
288
|
+ $('#userResult').attr('data-index', '13');
|
|
|
289
|
+ $('#userResult').val('表扬');
|
|
|
290
|
+ break;
|
|
256
|
291
|
}
|
|
257
|
292
|
//提交按钮
|
|
258
|
293
|
$('.submit').on('tap', function () {
|
|
|
@@ -266,8 +301,7 @@
|
|
266
|
301
|
if (a) {
|
|
267
|
302
|
if (str_ary) {
|
|
268
|
303
|
str_ary = str_ary + ',' + a;
|
|
269
|
|
- }
|
|
270
|
|
- else {
|
|
|
304
|
+ } else {
|
|
271
|
305
|
str_ary = a;
|
|
272
|
306
|
}
|
|
273
|
307
|
}
|
|
|
@@ -291,8 +325,7 @@
|
|
291
|
325
|
if (!$('#phone').val()) {
|
|
292
|
326
|
mui.alert('请输入联系电话!');
|
|
293
|
327
|
return;
|
|
294
|
|
- }
|
|
295
|
|
- else {
|
|
|
328
|
+ } else {
|
|
296
|
329
|
|
|
297
|
330
|
var regTel = /^(([0\+]\d{2,3}-)?((0\d{2,3}))?(-)?)?(\d{7,8})(-(\d{3,}))?$/;
|
|
298
|
331
|
var regMobile = /^([+-]?)\d*\.?\d+$/;
|
|
|
@@ -317,17 +350,18 @@
|
|
317
|
350
|
async: true,
|
|
318
|
351
|
data: {
|
|
319
|
352
|
openid: openid,
|
|
320
|
|
- cusname: $('#name').val(),//投诉人姓名
|
|
321
|
|
- cusphone: $('#phone').val(),//投诉人电话
|
|
322
|
|
- conphone: $('#phone').val(),//客户电话
|
|
323
|
|
- title: $('#title').val(),//投诉主题
|
|
324
|
|
- content: $('.content').val(),//投诉内容
|
|
325
|
|
- sourcearea: $('#cityResult3').attr('data-index'),//事发地域id
|
|
326
|
|
- sourceaddress: $('#town').val()+" "+$('#village').val()+" "+$('#detail_address').val(),//详细地址
|
|
327
|
|
- keys: $('#zhuTiResult').attr('data-index'),//关键词
|
|
328
|
|
- type: $('#userResult').attr('data-index'),//诉求类型
|
|
|
353
|
+ cusname: $('#name').val(), //投诉人姓名
|
|
|
354
|
+ cusphone: $('#phone').val(), //投诉人电话
|
|
|
355
|
+ conphone: $('#phone').val(), //客户电话
|
|
|
356
|
+ title: $('#title').val(), //投诉主题
|
|
|
357
|
+ content: $('.content').val(), //投诉内容
|
|
|
358
|
+ sourcearea: $('#cityResult3').attr('data-index'), //事发地域id
|
|
|
359
|
+ sourceaddress: $('#town').val() + " " + $('#village').val() + " " + $(
|
|
|
360
|
+ '#detail_address').val(), //详细地址
|
|
|
361
|
+ keys: $('#zhuTiResult').attr('data-index'), //关键词
|
|
|
362
|
+ type: $('#userResult').attr('data-index'), //诉求类型
|
|
329
|
363
|
files: str_ary,
|
|
330
|
|
- isprotect: $('input[name="secret"]:checked').val()//(0普通1保密)
|
|
|
364
|
+ isprotect: $('input[name="secret"]:checked').val() //(0普通1保密)
|
|
331
|
365
|
},
|
|
332
|
366
|
success: function (data) {
|
|
333
|
367
|
var str = JSON.parse(data);
|
|
|
@@ -350,13 +384,15 @@
|
|
350
|
384
|
|
|
351
|
385
|
if (openid) {
|
|
352
|
386
|
//事发地域
|
|
353
|
|
- getArea(1,0);
|
|
|
387
|
+ getArea(1, 0);
|
|
354
|
388
|
//主题词
|
|
355
|
389
|
$.ajax({
|
|
356
|
390
|
type: "get",
|
|
357
|
391
|
url: huayi.config.callcenter_url + 'WxLogin/GetKeyList',
|
|
358
|
392
|
async: false,
|
|
359
|
|
- data: { openid: openid },
|
|
|
393
|
+ data: {
|
|
|
394
|
+ openid: openid
|
|
|
395
|
+ },
|
|
360
|
396
|
dataType: 'json',
|
|
361
|
397
|
success: function (data) {
|
|
362
|
398
|
var key_data = data.data;
|
|
|
@@ -369,48 +405,47 @@
|
|
369
|
405
|
}
|
|
370
|
406
|
});
|
|
371
|
407
|
}
|
|
372
|
|
-// })
|
|
373
|
|
-
|
|
374
|
|
- function getArea(arrType,ids){
|
|
375
|
|
- townList = [];
|
|
376
|
|
- villageList = [];
|
|
377
|
|
- $.ajax({
|
|
378
|
|
- type: "get",
|
|
379
|
|
- url: huayi.config.callcenter_url + 'Web/GetWebAreaListById',
|
|
380
|
|
- async: false,
|
|
381
|
|
- data: {
|
|
382
|
|
- openid: openid,
|
|
383
|
|
- id: ids
|
|
384
|
|
- },
|
|
385
|
|
- dataType: 'json',
|
|
386
|
|
- success: function (data) {
|
|
387
|
|
- var area_data = data.data;
|
|
388
|
|
- $(area_data).each(function (i, n) {
|
|
389
|
|
- var obj = {};
|
|
390
|
|
- obj.value = n.F_AreaId;
|
|
391
|
|
- obj.text = n.F_AreaName;
|
|
392
|
|
- if(arrType==1){
|
|
393
|
|
- areaList.push(obj)
|
|
394
|
|
- }else if(arrType==2){
|
|
395
|
|
- console.log(arrType)
|
|
396
|
|
- townList.push(obj)
|
|
397
|
|
- townPicker.setData(townList);
|
|
398
|
|
- }else{
|
|
399
|
|
- villageList.push(obj)
|
|
400
|
|
- villagePicker.setData(villageList);
|
|
401
|
|
- }
|
|
402
|
|
-
|
|
403
|
|
- })
|
|
404
|
|
-// console.log(townList)
|
|
405
|
|
-// if(arrType==2){
|
|
406
|
|
-// townPicker.setData(townList);
|
|
407
|
|
-// }else if(arrType==3){
|
|
408
|
|
-// villagePicker.setData(villageList);
|
|
409
|
|
-// }
|
|
410
|
|
- }
|
|
411
|
|
- });
|
|
|
408
|
+ })
|
|
|
409
|
+
|
|
|
410
|
+ function getArea(arrType, ids) {
|
|
|
411
|
+ townList = [];
|
|
|
412
|
+ villageList = [];
|
|
|
413
|
+ $.ajax({
|
|
|
414
|
+ type: "get",
|
|
|
415
|
+ url: huayi.config.callcenter_url + 'Web/GetWebAreaListById',
|
|
|
416
|
+ async: false,
|
|
|
417
|
+ data: {
|
|
|
418
|
+ openid: openid,
|
|
|
419
|
+ id: ids
|
|
|
420
|
+ },
|
|
|
421
|
+ dataType: 'json',
|
|
|
422
|
+ success: function (data) {
|
|
|
423
|
+ var area_data = data.data;
|
|
|
424
|
+ $(area_data).each(function (i, n) {
|
|
|
425
|
+ var obj = {};
|
|
|
426
|
+ obj.value = n.F_AreaId;
|
|
|
427
|
+ obj.text = n.F_AreaName;
|
|
|
428
|
+ if (arrType == 1) {
|
|
|
429
|
+ areaList.push(obj)
|
|
|
430
|
+ } else if (arrType == 2) {
|
|
|
431
|
+ console.log(arrType)
|
|
|
432
|
+ townList.push(obj)
|
|
|
433
|
+ townPicker.setData(townList);
|
|
|
434
|
+ } else {
|
|
|
435
|
+ villageList.push(obj)
|
|
|
436
|
+ villagePicker.setData(villageList);
|
|
|
437
|
+ }
|
|
|
438
|
+ })
|
|
|
439
|
+ // console.log(townList)
|
|
|
440
|
+ // if(arrType==2){
|
|
|
441
|
+ // townPicker.setData(townList);
|
|
|
442
|
+ // }else if(arrType==3){
|
|
|
443
|
+ // villagePicker.setData(villageList);
|
|
|
444
|
+ // }
|
|
|
445
|
+ }
|
|
|
446
|
+ });
|
|
412
|
447
|
}
|
|
413
|
|
-
|
|
|
448
|
+
|
|
414
|
449
|
//工单类型
|
|
415
|
450
|
// var typeList=[];
|
|
416
|
451
|
// $.ajax({
|
|
|
@@ -431,7 +466,7 @@
|
|
431
|
466
|
// });
|
|
432
|
467
|
|
|
433
|
468
|
|
|
434
|
|
-
|
|
|
469
|
+
|
|
435
|
470
|
(function ($, doc) {
|
|
436
|
471
|
$.init();
|
|
437
|
472
|
$.ready(function () {
|
|
|
@@ -473,29 +508,30 @@
|
|
473
|
508
|
var showCityPickerButton = doc.getElementById('showCityPicker3');
|
|
474
|
509
|
var cityResult3 = doc.getElementById('cityResult3');
|
|
475
|
510
|
showCityPickerButton.addEventListener('tap', function (event) {
|
|
476
|
|
-// if (areaList.length > 0) {
|
|
477
|
|
- cityPicker3.show(function (items) {
|
|
478
|
|
- cityResult3.value = (items[0].text ? items[0].text : "");
|
|
479
|
|
- cityResult3.setAttribute("data-index", items[0].value);
|
|
480
|
|
- //返回 false 可以阻止选择框的关闭
|
|
481
|
|
- //return false;
|
|
482
|
|
- getArea(2,items[0].value);
|
|
483
|
|
- if (townList.length == 0) {
|
|
484
|
|
- doc.getElementById('town').value="暂无数据";
|
|
485
|
|
- } else {
|
|
486
|
|
- doc.getElementById('town').value="";
|
|
487
|
|
- doc.getElementById('town').setAttribute("placeholder", "请选择街道");
|
|
488
|
|
- doc.getElementById('village').value="";
|
|
489
|
|
- doc.getElementById('village').setAttribute("placeholder", "请选择村庄");
|
|
490
|
|
- }
|
|
491
|
|
- });
|
|
492
|
|
-// }
|
|
|
511
|
+ // if (areaList.length > 0) {
|
|
|
512
|
+ cityPicker3.show(function (items) {
|
|
|
513
|
+ cityResult3.value = (items[0].text ? items[0].text : "");
|
|
|
514
|
+ cityResult3.setAttribute("data-index", items[0].value);
|
|
|
515
|
+ //返回 false 可以阻止选择框的关闭
|
|
|
516
|
+ //return false;
|
|
|
517
|
+ getArea(2, items[0].value);
|
|
|
518
|
+ if (townList.length == 0) {
|
|
|
519
|
+ doc.getElementById('town').value = "暂无数据";
|
|
|
520
|
+ } else {
|
|
|
521
|
+ doc.getElementById('town').value = "";
|
|
|
522
|
+ doc.getElementById('town').setAttribute("placeholder", "请选择街道");
|
|
|
523
|
+ doc.getElementById('village').value = "";
|
|
|
524
|
+ doc.getElementById('village').setAttribute("placeholder",
|
|
|
525
|
+ "请选择村庄");
|
|
|
526
|
+ }
|
|
|
527
|
+ });
|
|
|
528
|
+ // }
|
|
493
|
529
|
}, false);
|
|
494
|
530
|
//街道
|
|
495
|
|
- townPicker= new $.PopPicker({
|
|
|
531
|
+ townPicker = new $.PopPicker({
|
|
496
|
532
|
layer: 1
|
|
497
|
533
|
});
|
|
498
|
|
-// townPicker.setData(townList);
|
|
|
534
|
+ // townPicker.setData(townList);
|
|
499
|
535
|
var townPickerPickerButton = doc.getElementById('showtown');
|
|
500
|
536
|
var townResult = doc.getElementById('town');
|
|
501
|
537
|
townPickerPickerButton.addEventListener('tap', function (event) {
|
|
|
@@ -505,35 +541,35 @@
|
|
505
|
541
|
townResult.setAttribute("data-index", items[0].value);
|
|
506
|
542
|
//返回 false 可以阻止选择框的关闭
|
|
507
|
543
|
//return false;
|
|
508
|
|
- getArea(3,items[0].value);
|
|
|
544
|
+ getArea(3, items[0].value);
|
|
509
|
545
|
if (villageList.length == 0) {
|
|
510
|
|
- doc.getElementById('village').value="暂无数据";
|
|
511
|
|
-// doc.getElementById('village').setAttribute("placeholder", "暂无数据");
|
|
512
|
|
- } else {
|
|
513
|
|
- doc.getElementById('village').value="";
|
|
514
|
|
- doc.getElementById('village').setAttribute("placeholder", "请选择村庄");
|
|
515
|
|
- }
|
|
|
546
|
+ doc.getElementById('village').value = "暂无数据";
|
|
|
547
|
+ // doc.getElementById('village').setAttribute("placeholder", "暂无数据");
|
|
|
548
|
+ } else {
|
|
|
549
|
+ doc.getElementById('village').value = "";
|
|
|
550
|
+ doc.getElementById('village').setAttribute("placeholder",
|
|
|
551
|
+ "请选择村庄");
|
|
|
552
|
+ }
|
|
516
|
553
|
});
|
|
517
|
554
|
}
|
|
518
|
555
|
}, false);
|
|
519
|
556
|
//村庄
|
|
520
|
|
- villagePicker= new $.PopPicker({
|
|
|
557
|
+ villagePicker = new $.PopPicker({
|
|
521
|
558
|
layer: 1
|
|
522
|
559
|
});
|
|
523
|
|
-// townPicker.setData(townList);
|
|
|
560
|
+ // townPicker.setData(townList);
|
|
524
|
561
|
var villagePickerPickerButton = doc.getElementById('showvillage');
|
|
525
|
562
|
var villageResult = doc.getElementById('village');
|
|
526
|
563
|
villagePickerPickerButton.addEventListener('tap', function (event) {
|
|
527
|
|
-// if (townList.length > 0) {
|
|
528
|
|
- villagePicker.show(function (items) {
|
|
529
|
|
- villageResult.value = (items[0].text ? items[0].text : "");
|
|
530
|
|
- villageResult.setAttribute("data-index", items[0].value);
|
|
531
|
|
- //返回 false 可以阻止选择框的关闭
|
|
532
|
|
- //return false;
|
|
533
|
|
- });
|
|
534
|
|
-// }
|
|
|
564
|
+ // if (townList.length > 0) {
|
|
|
565
|
+ villagePicker.show(function (items) {
|
|
|
566
|
+ villageResult.value = (items[0].text ? items[0].text : "");
|
|
|
567
|
+ villageResult.setAttribute("data-index", items[0].value);
|
|
|
568
|
+ //返回 false 可以阻止选择框的关闭
|
|
|
569
|
+ //return false;
|
|
|
570
|
+ });
|
|
|
571
|
+ // }
|
|
535
|
572
|
}, false);
|
|
536
|
|
-
|
|
537
|
573
|
})
|
|
538
|
574
|
})(mui, document);
|
|
539
|
575
|
</script>
|