279128b1 by 任超

style:填报信息

1 parent 0858ae14
...@@ -201,7 +201,7 @@ ...@@ -201,7 +201,7 @@
201 .acceptance_information { 201 .acceptance_information {
202 margin: 20px 0; 202 margin: 20px 0;
203 } 203 }
204 .acceptance_information h3 , .person_info h3, .data_upload h3{ 204 .acceptance_information h3 , .person_info h3, .data_upload h3, .obtaining_license h3{
205 height: 16px; 205 height: 16px;
206 padding-left: 5px; 206 padding-left: 5px;
207 border-left: 3px solid #0091FF; 207 border-left: 3px solid #0091FF;
...@@ -304,3 +304,32 @@ ...@@ -304,3 +304,32 @@
304 .record:hover { 304 .record:hover {
305 color: #0091FF; 305 color: #0091FF;
306 } 306 }
307 .layui-form-radio>i:hover, .layui-form-radioed>i {
308 color: #0091FF!important;
309 }
310 /* -------------------领证方式----------------------- */
311 .shipping_method {
312 display: none;
313 }
314 .item_inline {
315 font-size: 0;
316 }
317 .item_inline .layui-inline {
318 width: 50%;
319 font-size: 16px;
320 margin-right: 0!important;
321 }
322 .obtaining_license .layui-input-block h2{
323 display: inline-block;
324 color: rgb(133, 125, 125);
325 margin-right: 13px;
326 }
327 .ssq {
328 width: 92%;
329 }
330 .ssq .layui-inline {
331 width: 29%;
332 }
333 .obtaining_license {
334 margin-top: 20px;
335 }
...\ No newline at end of file ...\ No newline at end of file
......
1 layui.use('element', function () { 1 layui.use('element', function () {
2 let element = layui.element; //导航的hover效果、二级菜单等功能,需要依赖element模块 2 let element = layui.element; //导航的hover效果、二级菜单等功能,需要依赖element模块
3 }); 3 });
4 addTabs('#wssq') 4 addTabs('#wssq')
5 var data = { 5 var data = {
6 'progressList': [ 6 'progressList': [
7 { 7 {
8 stepName: "信息效验", 8 stepName: "信息效验",
...@@ -33,8 +33,8 @@ ...@@ -33,8 +33,8 @@
33 stepState: 0 33 stepState: 0
34 } 34 }
35 ], 35 ],
36 } 36 }
37 layui.use('laytpl', function () { 37 layui.use('laytpl', function () {
38 laytpl = layui.laytpl; 38 laytpl = layui.laytpl;
39 var getTpl = document.getElementById('progress').innerHTML 39 var getTpl = document.getElementById('progress').innerHTML
40 , view = document.getElementById('app_progress'); 40 , view = document.getElementById('app_progress');
...@@ -47,9 +47,9 @@ ...@@ -47,9 +47,9 @@
47 //初始化动态元素,一些动态生成的元素如果不设置初始化,将不会有默认的动态效果 47 //初始化动态元素,一些动态生成的元素如果不设置初始化,将不会有默认的动态效果
48 element.init(); 48 element.init();
49 }); 49 });
50 }); 50 });
51 // form 表单 51 // form 表单
52 layui.use('form', function () { 52 layui.use('form', function () {
53 var form = layui.form; 53 var form = layui.form;
54 form.on('select(typeId)', function (data) { 54 form.on('select(typeId)', function (data) {
55 console.log(data.value); 55 console.log(data.value);
...@@ -72,17 +72,17 @@ ...@@ -72,17 +72,17 @@
72 }) 72 })
73 return false; 73 return false;
74 }); 74 });
75 }) 75 })
76 $('.radioInfo').click(function () { 76 $('.radioInfo').click(function () {
77 let index = $(this).attr("value") 77 let index = $(this).attr("value")
78 if (index == 2 || index == 3) { 78 if (index == 2 || index == 3) {
79 $('.add_form').show() 79 $('.add_form').show()
80 } else { 80 } else {
81 $('.add_form').hide() 81 $('.add_form').hide()
82 } 82 }
83 }) 83 })
84 // form 添加 84 // form 添加
85 $('.add_form').click(function () { 85 $('.add_form').click(function () {
86 $('.layui-form').append( 86 $('.layui-form').append(
87 '<div class="layui-form-item">' + 87 '<div class="layui-form-item">' +
88 '<div class="layui-inline">' + 88 '<div class="layui-inline">' +
...@@ -127,18 +127,50 @@ ...@@ -127,18 +127,50 @@
127 $(document).on("click", ".layui-icon-reduce-circle", function (e) { 127 $(document).on("click", ".layui-icon-reduce-circle", function (e) {
128 $(this).parent().remove() 128 $(this).parent().remove()
129 }) 129 })
130 }) 130 })
131 // 图片上传 131 // 图片上传
132 // 询问笔录 132 // 询问笔录
133 $('.record').click(function(event){ 133 $('.record').click(function (event) {
134 event.stopPropagation(); 134 event.stopPropagation();
135 console.log('下载模板99') 135 console.log('下载模板99')
136 }) 136 })
137 var flieList = []; // 登记证书列表 137 var flieList = []; // 登记证书列表
138 var flieList1 = []; // 房屋所有权证书列表 138 var flieList1 = []; // 房屋所有权证书列表
139 var flieList3 = []; // 询问笔录 139 var flieList3 = []; // 询问笔录
140 $('.next_button a').click(function(){ 140 // 省市区
141 console.log(999, flieList,5689, flieList1,98999, flieList3) 141 //config的设置是全局的
142 return false 142 layui.config({
143 }) 143 base: '../staticJs/'
144 }).extend({ //设定模块别名
145 common: 'cityCommon'
146 });
147
148 $('.next_button a').click(function(){
149 console.log(1)
150 })
151 layui.use(['form', 'common'], function () {
152 var common = layui.common,
153 form = layui.form;
154 //三级地址联动
155 common.showCity('province', 'city', 'district');
156 //领证方式
157 form.on('radio(beshared)', function (data) {
158 if (data.value == 2) {
159 $('.shipping_method').show()
160 $('.submitButton').hide()
161 } else {
162 $('.shipping_method').hide()
163 $('.submitButton').show()
164 }
165 });
166 //区域选择
167 form.on('select(selectCity)', function (data) {
168 return false;
169 });
170 //监听提交
171 form.on('submit(submit1)', function (data) {
172 console.log(data.field)
173 return false;
174 });
175 });
144 176
......
...@@ -175,13 +175,79 @@ ...@@ -175,13 +175,79 @@
175 </div> 175 </div>
176 </div> 176 </div>
177 <!-- 领证方式 --> 177 <!-- 领证方式 -->
178 <div class="obtaining_license">
179 <h3>领证方式</h3>
180 <form class="layui-form" action="" lay-filter="example">
181 <div class="layui-form-item">
182 <label class="layui-form-label">领证方式</label>
183 <div class="layui-input-block">
184 <input type="radio" name="type" value="1" lay-filter="beshared" title="现场领证" checked="">
185 <input type="radio" name="type" value="2" lay-filter="beshared" title="快递到家">
186 </div>
187 </div>
188 <div class="shipping_method">
189 <div class="layui-form-item item_inline">
190 <div class="layui-inline">
191 <label class="layui-form-label">收件人</label>
192 <div class="layui-input-block">
193 <input type="text" name="title" lay-verify="title" autocomplete="off" placeholder="请输入收件人"
194 class="layui-input">
195 </div>
196 </div>
197 <div class="layui-inline">
198 <label class="layui-form-label">手机号码</label>
199 <div class="layui-input-block">
200 <input type="tel" maxlength="11" name="title" lay-verify="title" autocomplete="off"
201 placeholder="请输入手机号码" class="layui-input">
202 </div>
203 </div>
204 </div>
205 <div class="layui-form-item">
206 <label class="layui-form-label">所在地区</label>
207 <div class="layui-input-block ssq">
208 <h2></h2>
209 <div class="layui-inline layui-select-default" style="margin-right: 10px;">
210 <select name="province" class="Pselected" data-area="浙江省"" lay-filter="province">
211 <option value="">选择省</option>
212 </select>
213 </div>
214 <h2></h2>
215 <div class="layui-inline selected layui-select-default">
216 <select name="city" class="Cselected" data-area="杭州市">
217 <option value="">选择市</option>
218 </select>
219 </div>
220 <h2></h2>
221 <div class="layui-inline selected layui-select-default">
222 <select name="city" class="Cselected" data-area="西湖区" lay-filter="selectCity">
223 <option value="">选择区</option>
224 </select>
225 </div>
226 </div>
227 </div>
228 <div class="layui-form-item layui-form-text">
229 <label class="layui-form-label">详细地址</label>
230 <div class="layui-input-block">
231 <textarea placeholder="请输入详细地址" class="layui-textarea" name="desc"></textarea>
232 </div>
233 </div>
178 <div class="next_button"> 234 <div class="next_button">
235 <button type="button" lay-submit="" lay-filter="submit1" class="layui-btn layui-btn-normal">
236 <a>
237 下一步
238 </a>
239 </button>
240 </div>
241 </div>
242 <div class="next_button submitButton">
179 <button type="button" class="layui-btn layui-btn-normal"> 243 <button type="button" class="layui-btn layui-btn-normal">
180 <a href="./wshs.html"> 244 <a href="./wshs.html">
181 下一步 245 下一步
182 </a> 246 </a>
183 </button> 247 </button>
184 </div> 248 </div>
249 </form>
250 </div>
185 </div> 251 </div>
186 </body> 252 </body>
187 <script type="text/javascript" src="../staticJs/common.js"></script> 253 <script type="text/javascript" src="../staticJs/common.js"></script>
...@@ -190,6 +256,7 @@ ...@@ -190,6 +256,7 @@
190 <script type="text/javascript" src="../staticJs/imageUpdate.js"></script> 256 <script type="text/javascript" src="../staticJs/imageUpdate.js"></script>
191 <script type="text/javascript" src="../staticJs/imageUpdate1.js"></script> 257 <script type="text/javascript" src="../staticJs/imageUpdate1.js"></script>
192 <script type="text/javascript" src="../staticJs/imageUpdate3.js"></script> 258 <script type="text/javascript" src="../staticJs/imageUpdate3.js"></script>
259 <script type="text/javascript" src="../staticJs/city-picker.js"></script>
193 <script type="text/html" id="barDemo"> 260 <script type="text/html" id="barDemo">
194 <i class="layui-icon layui-icon-reduce-circle" lay-event="edit"></i> 261 <i class="layui-icon layui-icon-reduce-circle" lay-event="edit"></i>
195 </script> 262 </script>
...@@ -228,5 +295,4 @@ ...@@ -228,5 +295,4 @@
228 {{# } }} 295 {{# } }}
229 {{# }); }} 296 {{# }); }}
230 </script> 297 </script>
231
232 </html> 298 </html>
...\ No newline at end of file ...\ No newline at end of file
......