浏览代码

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

liuzhen 5 年之前
父节点
当前提交
d70de05d2e

+ 103 - 18
WebChat/html/personalInfo.html

111
 			.mui-content{
111
 			.mui-content{
112
 				background-color: #fff;
112
 				background-color: #fff;
113
 			}
113
 			}
114
+			#serve{
115
+				height: 70px;
116
+			}
117
+			.required{
118
+				color: lightcoral;
119
+			}
114
 		</style>
120
 		</style>
115
 	</head>
121
 	</head>
116
 
122
 
121
 			<ul class="mui-table-view">
127
 			<ul class="mui-table-view">
122
 				<li class="mui-table-view-cell" id="showUserPicker">
128
 				<li class="mui-table-view-cell" id="showUserPicker">
123
 					<div class="mui-input-row">
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
 					</div>
132
 					</div>
127
 				</li>
133
 				</li>
128
 				<li class="mui-table-view-cell" id="">
134
 				<li class="mui-table-view-cell" id="">
129
 					<div class="mui-input-row">
135
 					<div class="mui-input-row">
130
 						<label class="label">性别:</label>
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
 					</div>
145
 					</div>
133
 				</li>
146
 				</li>
134
 				<li class="mui-table-view-cell" id="">
147
 				<li class="mui-table-view-cell" id="">
135
 					<div class="mui-input-row">
148
 					<div class="mui-input-row">
136
 						<label class="label">民族:</label>
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
 					</div>
151
 					</div>
139
 				</li>
152
 				</li>
140
 				<li class="mui-table-view-cell" id="">
153
 				<li class="mui-table-view-cell" id="">
141
 					<div class="mui-input-row">
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
 					</div>
157
 					</div>
145
 				</li>
158
 				</li>
146
 				<li class="mui-table-view-cell" id="">
159
 				<li class="mui-table-view-cell" id="">
147
 					<div class="mui-input-row">
160
 					<div class="mui-input-row">
148
 						<label class="label">身份证号码:</label>
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
 					</div>
163
 					</div>
151
 				</li>
164
 				</li>
152
 				<li class="mui-table-view-cell" id="">
165
 				<li class="mui-table-view-cell" id="">
153
 					<div class="mui-input-row">
166
 					<div class="mui-input-row">
154
 						<label class="label">政治面貌:</label>
167
 						<label class="label">政治面貌:</label>
155
-						<input type="text" id='' class="ui-alert " />
168
+						<input type="text" id='Politicaloutlook' class="ui-alert " />
156
 					</div>
169
 					</div>
157
 				</li>
170
 				</li>
158
 				<li class="mui-table-view-cell" id="">
171
 				<li class="mui-table-view-cell" id="">
159
 					<div class="mui-input-row">
172
 					<div class="mui-input-row">
160
 						<label class="label">专业特长:</label>
173
 						<label class="label">专业特长:</label>
161
-						<input type="text" id='' class="ui-alert " />
174
+						<input type="text" id='Specialty' class="ui-alert " />
162
 					</div>
175
 					</div>
163
 				</li>
176
 				</li>
164
 				<li class="mui-table-view-cell" id="">
177
 				<li class="mui-table-view-cell" id="">
165
 					<div class="mui-input-row">
178
 					<div class="mui-input-row">
166
 						<label class="label">目前工作单位或职务:</label>
179
 						<label class="label">目前工作单位或职务:</label>
167
-						<input type="text" id='' class="ui-alert " />
180
+						<input type="text" id='Post' class="ui-alert " />
168
 					</div>
181
 					</div>
169
 				</li>
182
 				</li>
170
 				<li class="mui-table-view-cell" id="">
183
 				<li class="mui-table-view-cell" id="">
171
 					<div class="mui-input-row">
184
 					<div class="mui-input-row">
172
 						<label class="label">现居地址:</label>
185
 						<label class="label">现居地址:</label>
173
-						<input type="text" id='' class="ui-alert " />
186
+						<input type="text" id='Placeofresidence' class="ui-alert " />
174
 					</div>
187
 					</div>
175
 				</li>
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
 					</div>
199
 					</div>
181
 				</li>
200
 				</li>
182
 				<li class="mui-table-view-cell baoMi">
201
 				<li class="mui-table-view-cell baoMi">
184
 						<label class="label">是否有兴趣参与团队管理和组织建设:</label>
203
 						<label class="label">是否有兴趣参与团队管理和组织建设:</label>
185
 						<div class="mui-input-row mui-radio mui-left radio_box">
204
 						<div class="mui-input-row mui-radio mui-left radio_box">
186
 							<label>是</label>
205
 							<label>是</label>
187
-							<input  type="radio" name="secret" value="1" />
206
+							<input  type="radio" name="secret" value="1" checked/>
188
 						</div>
207
 						</div>
189
 						<div class="mui-input-row mui-radio mui-left radio_box">
208
 						<div class="mui-input-row mui-radio mui-left radio_box">
190
 							<label>否</label>
209
 							<label>否</label>
191
-							<input  type="radio" name="secret" checked="checked" value="0" />
210
+							<input  type="radio" name="secret" value="0" />
192
 						</div>
211
 						</div>
193
 				</li>
212
 				</li>
194
 				<li class="mui-table-view-cell">
213
 				<li class="mui-table-view-cell">
223
 			<script src="../Script/Common/huayi.config.js"></script>
242
 			<script src="../Script/Common/huayi.config.js"></script>
224
 			<script src="../Script/Common/huayi.http.js"></script>
243
 			<script src="../Script/Common/huayi.http.js"></script>
225
 			<script type="text/javascript">
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
 			</script>
312
 			</script>
228
 	</body>
313
 	</body>
229
 
314
 

+ 1 - 0
WebChat/index.html

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

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

168
         </table>
168
         </table>
169
     </div>
169
     </div>
170
     <div class="foot_btn">
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
     </div>
172
     </div>
173
 	<script src="../js/plugins/html2pdf/jspdf.debug.js"></script>
173
 	<script src="../js/plugins/html2pdf/jspdf.debug.js"></script>
174
 	<script src="../js/plugins/html2pdf/html2canvas.js"></script>
174
 	<script src="../js/plugins/html2pdf/html2canvas.js"></script>

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

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