Przeglądaj źródła

微信志愿者添加及pc字段修改

liuzhen 5 lat temu
rodzic
commit
d70de05d2e

+ 103 - 18
WebChat/html/personalInfo.html

@@ -111,6 +111,12 @@
111 111
 			.mui-content{
112 112
 				background-color: #fff;
113 113
 			}
114
+			#serve{
115
+				height: 70px;
116
+			}
117
+			.required{
118
+				color: lightcoral;
119
+			}
114 120
 		</style>
115 121
 	</head>
116 122
 
@@ -121,62 +127,75 @@
121 127
 			<ul class="mui-table-view">
122 128
 				<li class="mui-table-view-cell" id="showUserPicker">
123 129
 					<div class="mui-input-row">
124
-						<label class="label">姓名:</label>
125
-						<input type="text" id='userResult' class="ui-alert " placeholder="请填写您的姓名" />
130
+						<label class="label"><i class="required">*</i>姓名:</label>
131
+						<input type="text" id='Name' class="ui-alert" placeholder="请填写您的姓名" />
126 132
 					</div>
127 133
 				</li>
128 134
 				<li class="mui-table-view-cell" id="">
129 135
 					<div class="mui-input-row">
130 136
 						<label class="label">性别:</label>
131
-						<input type="text" id='zhuTiResult' class="ui-alert " placeholder="请填写您的性别"/>
137
+						<div class="mui-input-row mui-radio mui-left radio_box">
138
+							<label>男</label>
139
+							<input  type="radio" name="gender" value="1" checked/>
140
+						</div>
141
+						<div class="mui-input-row mui-radio mui-left radio_box">
142
+							<label>女</label>
143
+							<input  type="radio" name="gender" value="0" />
144
+						</div>
132 145
 					</div>
133 146
 				</li>
134 147
 				<li class="mui-table-view-cell" id="">
135 148
 					<div class="mui-input-row">
136 149
 						<label class="label">民族:</label>
137
-						<input type="text" id='' class="ui-alert " placeholder="请填写您的民族" />
150
+						<input type="text" id='Nation' class="ui-alert " placeholder="请填写您的民族" />
138 151
 					</div>
139 152
 				</li>
140 153
 				<li class="mui-table-view-cell" id="">
141 154
 					<div class="mui-input-row">
142
-						<label class="label">电话:</label>
143
-						<input type="text" id='' class="ui-alert " placeholder="请填写您的电话"/>
155
+						<label class="label"><i class="required">*</i>电话:</label>
156
+						<input type="text" id='Tel' class="ui-alert " placeholder="请填写您的电话"/>
144 157
 					</div>
145 158
 				</li>
146 159
 				<li class="mui-table-view-cell" id="">
147 160
 					<div class="mui-input-row">
148 161
 						<label class="label">身份证号码:</label>
149
-						<input type="text" id='' class="ui-alert " placeholder="请填写您的身份证号码"/>
162
+						<input type="text" id='IDcardNo' class="ui-alert " placeholder="请填写您的身份证号码"/>
150 163
 					</div>
151 164
 				</li>
152 165
 				<li class="mui-table-view-cell" id="">
153 166
 					<div class="mui-input-row">
154 167
 						<label class="label">政治面貌:</label>
155
-						<input type="text" id='' class="ui-alert " />
168
+						<input type="text" id='Politicaloutlook' class="ui-alert " />
156 169
 					</div>
157 170
 				</li>
158 171
 				<li class="mui-table-view-cell" id="">
159 172
 					<div class="mui-input-row">
160 173
 						<label class="label">专业特长:</label>
161
-						<input type="text" id='' class="ui-alert " />
174
+						<input type="text" id='Specialty' class="ui-alert " />
162 175
 					</div>
163 176
 				</li>
164 177
 				<li class="mui-table-view-cell" id="">
165 178
 					<div class="mui-input-row">
166 179
 						<label class="label">目前工作单位或职务:</label>
167
-						<input type="text" id='' class="ui-alert " />
180
+						<input type="text" id='Post' class="ui-alert " />
168 181
 					</div>
169 182
 				</li>
170 183
 				<li class="mui-table-view-cell" id="">
171 184
 					<div class="mui-input-row">
172 185
 						<label class="label">现居地址:</label>
173
-						<input type="text" id='' class="ui-alert " />
186
+						<input type="text" id='Placeofresidence' class="ui-alert " />
174 187
 					</div>
175 188
 				</li>
176
-				<li class="mui-table-view-cell" id="">
177
-					<div class="mui-input-row">
178
-						<label class="label">服务意向:</label>
179
-						<input type="text" id='' class="ui-alert " />
189
+				<li class="mui-table-view-cell" id="serve">
190
+					<div class="mui-input-row" style="height: 100%;">
191
+						<label class="label" style="height: 100%;">服务意向:</label>
192
+						<span id="severList">
193
+							<!--<span><input type="checkbox" name="" id="" value="" />参与问题反馈</span>
194
+                        	<span><input type="checkbox" name="" id="" value="" />参与办理结果核实</span>
195
+                        	<span><input type="checkbox" name="" id="" value="" />参与矛盾化解</span>
196
+                        	<span><input type="checkbox" name="" id="" value="" />参与办理过程监督</span>
197
+                        	<span><input type="checkbox" name="" id="" value="" />提供专业咨询服务</span>-->
198
+						</span>
180 199
 					</div>
181 200
 				</li>
182 201
 				<li class="mui-table-view-cell baoMi">
@@ -184,11 +203,11 @@
184 203
 						<label class="label">是否有兴趣参与团队管理和组织建设:</label>
185 204
 						<div class="mui-input-row mui-radio mui-left radio_box">
186 205
 							<label>是</label>
187
-							<input  type="radio" name="secret" value="1" />
206
+							<input  type="radio" name="secret" value="1" checked/>
188 207
 						</div>
189 208
 						<div class="mui-input-row mui-radio mui-left radio_box">
190 209
 							<label>否</label>
191
-							<input  type="radio" name="secret" checked="checked" value="0" />
210
+							<input  type="radio" name="secret" value="0" />
192 211
 						</div>
193 212
 				</li>
194 213
 				<li class="mui-table-view-cell">
@@ -223,7 +242,73 @@
223 242
 			<script src="../Script/Common/huayi.config.js"></script>
224 243
 			<script src="../Script/Common/huayi.http.js"></script>
225 244
 			<script type="text/javascript">
226
-				
245
+				$(function(){
246
+					var openid = helper.cookies.get("openid");
247
+					getServe();
248
+					$('.submit').on('click',function(){
249
+						var chk_value =[];//定义一个数组    
250
+			            $('input[name="serve"]:checked').each(function(){//遍历每一个名字为serve的复选框,其中选中的执行函数    
251
+			            chk_value.push($(this).val());//将选中的值添加到数组chk_value中    
252
+			            });
253
+			            if(chk_value.length>0){
254
+			            	chk_value=chk_value.toString()
255
+			            }else{
256
+			            	chk_value=''
257
+			            }
258
+						$.ajax({
259
+							type:"post",
260
+							url:huayi.config.callcenter_url + "Volunteer/Add",
261
+							async:true,
262
+							data:{
263
+								openid: openid,
264
+								Name:$('#Name').val(),//姓名
265
+								Gender:$('input[name="gender"]:checked').val(),//性别
266
+								Nation:$('#Nation').val(),//民族
267
+								Tel:$('#Tel').val(),//电话
268
+								IDcardNo:$('#IDcardNo').val(),//身份证号码
269
+								Politicaloutlook:$('#Politicaloutlook').val(),//政治面貌
270
+								Specialty:$('#Specialty').val(),//专业特长
271
+								Post:$('#Post').val(),//工作单位
272
+								Placeofresidence:$('#Placeofresidence').val(),//现居地址
273
+								Serviceintention:chk_value,//服务意向
274
+								Participatein:$('input[name="secret"]:checked').val(),//组织管理
275
+								Opinion:$('#textarea').val(),//意见和建议
276
+							},
277
+							success:function(res){
278
+								var res=JSON.parse(res)
279
+								if(res.state=='success'){
280
+									mui.toast('提交成功')
281
+									setTimeout(function () {
282
+									window.location.reload()
283
+						        }, 1000);
284
+								}
285
+							}
286
+						});
287
+					})
288
+				})
289
+				function getServe(){
290
+					$.ajax({
291
+						type:"get",
292
+						url:huayi.config.callcenter_url + "Dictionary/GetDicValueListByParentId",
293
+						async:true,
294
+						data:{
295
+							openid: openid,
296
+							pid:62
297
+						},
298
+						success:function(res){
299
+							var res=JSON.parse(res)
300
+							if(res.state=='success'){
301
+								var severData=res.data;
302
+								$.each(severData, function(index,item) {
303
+									var html=''
304
+									html += '<span><input type="checkbox" name="serve" id="" value="'+item.F_ValueId+'" />'+item.F_Value+'</span>'
305
+									$('#severList').append(html)
306
+								});
307
+								
308
+							}
309
+						}
310
+					});
311
+				}
227 312
 			</script>
228 313
 	</body>
229 314
 

+ 1 - 0
WebChat/index.html

@@ -50,6 +50,7 @@
50 50
                     case "SLNR": window.location.replace("html/shouLiCon.html"); break;
51 51
                     case "SLFS": window.location.replace("html/shouLiWay.html"); break;
52 52
                     case "ZYSX": window.location.replace("html/zhuYiShiXiang.html"); break;
53
+                    case "ZYZS": window.location.replace("html/personalInfo.html"); break;
53 54
                     default: window.location.replace("html/error.html"); break;
54 55
                 }
55 56
             }

+ 1 - 1
WebUI/CallCenterWeb.UI/CommonHtml/personalInfo.html

@@ -168,7 +168,7 @@
168 168
         </table>
169 169
     </div>
170 170
     <div class="foot_btn">
171
-    	<input type="button" value="打印" class="btn" id="btn-html2canvas"/>
171
+    	<input type="button" value="导出" class="btn" id="btn-html2canvas"/>
172 172
     </div>
173 173
 	<script src="../js/plugins/html2pdf/jspdf.debug.js"></script>
174 174
 	<script src="../js/plugins/html2pdf/html2canvas.js"></script>

+ 0 - 1
WebUI/CallCenterWeb.UI/YeWu/ZYZ.html

@@ -58,7 +58,6 @@
58 58
 							<table id="orderlist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
59 59
 								<thead>
60 60
 									<tr>
61
-										<th data-checkbox="true"></th>
62 61
 										<th data-field="Name" data-align="center">姓名</th>
63 62
 										<th data-field="Gender" data-formatter="gender" data-align="center">性别</th>
64 63
 										<th data-field="Nation" data-align="center">民族</th>