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