正在显示
6 个修改的文件
包含
359 行增加
和
94 行删除
@@ -2,11 +2,11 @@ | @@ -2,11 +2,11 @@ | ||
2 | <project version="4"> | 2 | <project version="4"> |
3 | <component name="ChangeListManager"> | 3 | <component name="ChangeListManager"> |
4 | <list default="true" id="1ae5f9a6-acdc-475d-863d-ce05e13f7b72" name="Default Changelist" comment=""> | 4 | <list default="true" id="1ae5f9a6-acdc-475d-863d-ce05e13f7b72" name="Default Changelist" comment=""> |
5 | + <change afterPath="$PROJECT_DIR$/css/dropload.css" afterDir="false" /> | ||
6 | + <change afterPath="$PROJECT_DIR$/js/dropload.min.js" afterDir="false" /> | ||
5 | <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> | 7 | <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> |
6 | - <change beforePath="$PROJECT_DIR$/css/first.css" beforeDir="false" afterPath="$PROJECT_DIR$/css/first.css" afterDir="false" /> | ||
7 | - <change beforePath="$PROJECT_DIR$/css/index.css" beforeDir="false" afterPath="$PROJECT_DIR$/css/index.css" afterDir="false" /> | ||
8 | - <change beforePath="$PROJECT_DIR$/css/last.css" beforeDir="false" afterPath="$PROJECT_DIR$/css/last.css" afterDir="false" /> | ||
9 | - <change beforePath="$PROJECT_DIR$/html/last.html" beforeDir="false" afterPath="$PROJECT_DIR$/html/last.html" afterDir="false" /> | 8 | + <change beforePath="$PROJECT_DIR$/html/index.html" beforeDir="false" afterPath="$PROJECT_DIR$/html/index.html" afterDir="false" /> |
9 | + <change beforePath="$PROJECT_DIR$/images/bg.png" beforeDir="false" /> | ||
10 | </list> | 10 | </list> |
11 | <ignored path="$PROJECT_DIR$/.tmp/" /> | 11 | <ignored path="$PROJECT_DIR$/.tmp/" /> |
12 | <ignored path="$PROJECT_DIR$/temp/" /> | 12 | <ignored path="$PROJECT_DIR$/temp/" /> |
@@ -55,36 +55,36 @@ | @@ -55,36 +55,36 @@ | ||
55 | <session id="-407721514"> | 55 | <session id="-407721514"> |
56 | <usages-collector id="statistics.lifecycle.project"> | 56 | <usages-collector id="statistics.lifecycle.project"> |
57 | <counts> | 57 | <counts> |
58 | - <entry key="project.closed" value="3" /> | ||
59 | - <entry key="project.open.time.0" value="1" /> | 58 | + <entry key="project.closed" value="4" /> |
59 | + <entry key="project.open.time.0" value="2" /> | ||
60 | <entry key="project.open.time.14" value="1" /> | 60 | <entry key="project.open.time.14" value="1" /> |
61 | <entry key="project.open.time.18" value="1" /> | 61 | <entry key="project.open.time.18" value="1" /> |
62 | <entry key="project.open.time.31" value="1" /> | 62 | <entry key="project.open.time.31" value="1" /> |
63 | - <entry key="project.opened" value="4" /> | 63 | + <entry key="project.opened" value="5" /> |
64 | </counts> | 64 | </counts> |
65 | </usages-collector> | 65 | </usages-collector> |
66 | <usages-collector id="statistics.file.extensions.edit"> | 66 | <usages-collector id="statistics.file.extensions.edit"> |
67 | <counts> | 67 | <counts> |
68 | <entry key="css" value="3402" /> | 68 | <entry key="css" value="3402" /> |
69 | - <entry key="html" value="2063" /> | 69 | + <entry key="html" value="2113" /> |
70 | </counts> | 70 | </counts> |
71 | </usages-collector> | 71 | </usages-collector> |
72 | <usages-collector id="statistics.file.types.edit"> | 72 | <usages-collector id="statistics.file.types.edit"> |
73 | <counts> | 73 | <counts> |
74 | <entry key="CSS" value="3402" /> | 74 | <entry key="CSS" value="3402" /> |
75 | - <entry key="HTML" value="2063" /> | 75 | + <entry key="HTML" value="2113" /> |
76 | </counts> | 76 | </counts> |
77 | </usages-collector> | 77 | </usages-collector> |
78 | <usages-collector id="statistics.file.extensions.open"> | 78 | <usages-collector id="statistics.file.extensions.open"> |
79 | <counts> | 79 | <counts> |
80 | - <entry key="css" value="2" /> | ||
81 | - <entry key="js" value="1" /> | 80 | + <entry key="css" value="3" /> |
81 | + <entry key="js" value="2" /> | ||
82 | </counts> | 82 | </counts> |
83 | </usages-collector> | 83 | </usages-collector> |
84 | <usages-collector id="statistics.file.types.open"> | 84 | <usages-collector id="statistics.file.types.open"> |
85 | <counts> | 85 | <counts> |
86 | - <entry key="CSS" value="2" /> | ||
87 | - <entry key="JavaScript" value="1" /> | 86 | + <entry key="CSS" value="3" /> |
87 | + <entry key="JavaScript" value="2" /> | ||
88 | </counts> | 88 | </counts> |
89 | </usages-collector> | 89 | </usages-collector> |
90 | </session> | 90 | </session> |
@@ -92,24 +92,6 @@ | @@ -92,24 +92,6 @@ | ||
92 | <component name="FileEditorManager"> | 92 | <component name="FileEditorManager"> |
93 | <leaf SIDE_TABS_SIZE_LIMIT_KEY="300"> | 93 | <leaf SIDE_TABS_SIZE_LIMIT_KEY="300"> |
94 | <file pinned="false" current-in-tab="false"> | 94 | <file pinned="false" current-in-tab="false"> |
95 | - <entry file="file://$PROJECT_DIR$/html/first.html"> | ||
96 | - <provider selected="true" editor-type-id="text-editor"> | ||
97 | - <state relative-caret-position="309"> | ||
98 | - <caret line="12" column="6" lean-forward="true" selection-start-line="12" selection-start-column="6" selection-end-line="12" selection-end-column="6" /> | ||
99 | - </state> | ||
100 | - </provider> | ||
101 | - </entry> | ||
102 | - </file> | ||
103 | - <file pinned="false" current-in-tab="false"> | ||
104 | - <entry file="file://$PROJECT_DIR$/css/first.css"> | ||
105 | - <provider selected="true" editor-type-id="text-editor"> | ||
106 | - <state relative-caret-position="1107"> | ||
107 | - <caret line="41" column="18" selection-start-line="41" selection-start-column="18" selection-end-line="41" selection-end-column="18" /> | ||
108 | - </state> | ||
109 | - </provider> | ||
110 | - </entry> | ||
111 | - </file> | ||
112 | - <file pinned="false" current-in-tab="false"> | ||
113 | <entry file="file://$PROJECT_DIR$/css/dksm.css"> | 95 | <entry file="file://$PROJECT_DIR$/css/dksm.css"> |
114 | <provider selected="true" editor-type-id="text-editor"> | 96 | <provider selected="true" editor-type-id="text-editor"> |
115 | <state relative-caret-position="162"> | 97 | <state relative-caret-position="162"> |
@@ -121,7 +103,7 @@ | @@ -121,7 +103,7 @@ | ||
121 | <file pinned="false" current-in-tab="false"> | 103 | <file pinned="false" current-in-tab="false"> |
122 | <entry file="file://$PROJECT_DIR$/html/dksm.html"> | 104 | <entry file="file://$PROJECT_DIR$/html/dksm.html"> |
123 | <provider selected="true" editor-type-id="text-editor"> | 105 | <provider selected="true" editor-type-id="text-editor"> |
124 | - <state relative-caret-position="515"> | 106 | + <state relative-caret-position="621"> |
125 | <caret line="23" column="49" lean-forward="true" selection-start-line="23" selection-start-column="49" selection-end-line="23" selection-end-column="49" /> | 107 | <caret line="23" column="49" lean-forward="true" selection-start-line="23" selection-start-column="49" selection-end-line="23" selection-end-column="49" /> |
126 | </state> | 108 | </state> |
127 | </provider> | 109 | </provider> |
@@ -130,10 +112,11 @@ | @@ -130,10 +112,11 @@ | ||
130 | <file pinned="false" current-in-tab="false"> | 112 | <file pinned="false" current-in-tab="false"> |
131 | <entry file="file://$PROJECT_DIR$/html/index.html"> | 113 | <entry file="file://$PROJECT_DIR$/html/index.html"> |
132 | <provider selected="true" editor-type-id="text-editor"> | 114 | <provider selected="true" editor-type-id="text-editor"> |
133 | - <state relative-caret-position="162"> | ||
134 | - <caret line="6" column="41" selection-start-line="6" selection-start-column="41" selection-end-line="6" selection-end-column="41" /> | 115 | + <state relative-caret-position="540"> |
116 | + <caret line="131" column="37" lean-forward="true" selection-start-line="131" selection-start-column="24" selection-end-line="131" selection-end-column="37" /> | ||
135 | <folding> | 117 | <folding> |
136 | <element signature="n#div#0;n#div#0;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top" /> | 118 | <element signature="n#div#0;n#div#0;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top" /> |
119 | + <element signature="n#div#1;n#div#0;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top" /> | ||
137 | <element signature="n#div#1;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top" /> | 120 | <element signature="n#div#1;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top" /> |
138 | <element signature="n#div#0;n#div#1;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top" /> | 121 | <element signature="n#div#0;n#div#1;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top" /> |
139 | <element signature="n#div#1;n#div#1;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top" /> | 122 | <element signature="n#div#1;n#div#1;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top" /> |
@@ -156,15 +139,25 @@ | @@ -156,15 +139,25 @@ | ||
156 | </entry> | 139 | </entry> |
157 | </file> | 140 | </file> |
158 | <file pinned="false" current-in-tab="false"> | 141 | <file pinned="false" current-in-tab="false"> |
142 | + <entry file="file://$PROJECT_DIR$/js/dropload.min.js"> | ||
143 | + <provider selected="true" editor-type-id="text-editor" /> | ||
144 | + </entry> | ||
145 | + </file> | ||
146 | + <file pinned="false" current-in-tab="false"> | ||
147 | + <entry file="file://$PROJECT_DIR$/css/dropload.css"> | ||
148 | + <provider selected="true" editor-type-id="text-editor" /> | ||
149 | + </entry> | ||
150 | + </file> | ||
151 | + <file pinned="false" current-in-tab="true"> | ||
159 | <entry file="file://$PROJECT_DIR$/css/index.css"> | 152 | <entry file="file://$PROJECT_DIR$/css/index.css"> |
160 | <provider selected="true" editor-type-id="text-editor"> | 153 | <provider selected="true" editor-type-id="text-editor"> |
161 | - <state relative-caret-position="6318"> | ||
162 | - <caret line="234" column="23" lean-forward="true" selection-start-line="234" selection-start-column="23" selection-end-line="234" selection-end-column="23" /> | 154 | + <state relative-caret-position="431"> |
155 | + <caret line="156" column="1" lean-forward="true" selection-start-line="156" selection-start-column="1" selection-end-line="156" selection-end-column="1" /> | ||
163 | </state> | 156 | </state> |
164 | </provider> | 157 | </provider> |
165 | </entry> | 158 | </entry> |
166 | </file> | 159 | </file> |
167 | - <file pinned="false" current-in-tab="true"> | 160 | + <file pinned="false" current-in-tab="false"> |
168 | <entry file="file://$PROJECT_DIR$/html/last.html"> | 161 | <entry file="file://$PROJECT_DIR$/html/last.html"> |
169 | <provider selected="true" editor-type-id="text-editor"> | 162 | <provider selected="true" editor-type-id="text-editor"> |
170 | <state relative-caret-position="189"> | 163 | <state relative-caret-position="189"> |
@@ -196,7 +189,7 @@ | @@ -196,7 +189,7 @@ | ||
196 | <file pinned="false" current-in-tab="false"> | 189 | <file pinned="false" current-in-tab="false"> |
197 | <entry file="file://$PROJECT_DIR$/css/last.css"> | 190 | <entry file="file://$PROJECT_DIR$/css/last.css"> |
198 | <provider selected="true" editor-type-id="text-editor"> | 191 | <provider selected="true" editor-type-id="text-editor"> |
199 | - <state relative-caret-position="125"> | 192 | + <state relative-caret-position="3996"> |
200 | <caret line="148" column="18" lean-forward="true" selection-start-line="148" selection-start-column="18" selection-end-line="148" selection-end-column="18" /> | 193 | <caret line="148" column="18" lean-forward="true" selection-start-line="148" selection-start-column="18" selection-end-line="148" selection-end-column="18" /> |
201 | </state> | 194 | </state> |
202 | </provider> | 195 | </provider> |
@@ -260,12 +253,12 @@ | @@ -260,12 +253,12 @@ | ||
260 | <option value="$PROJECT_DIR$/css/dkxq.css" /> | 253 | <option value="$PROJECT_DIR$/css/dkxq.css" /> |
261 | <option value="$PROJECT_DIR$/css/xyjc.css" /> | 254 | <option value="$PROJECT_DIR$/css/xyjc.css" /> |
262 | <option value="$PROJECT_DIR$/html/xyjc.html" /> | 255 | <option value="$PROJECT_DIR$/html/xyjc.html" /> |
263 | - <option value="$PROJECT_DIR$/html/index.html" /> | ||
264 | <option value="$PROJECT_DIR$/css/first.css" /> | 256 | <option value="$PROJECT_DIR$/css/first.css" /> |
265 | <option value="$PROJECT_DIR$/html/first.html" /> | 257 | <option value="$PROJECT_DIR$/html/first.html" /> |
266 | - <option value="$PROJECT_DIR$/css/index.css" /> | ||
267 | <option value="$PROJECT_DIR$/css/last.css" /> | 258 | <option value="$PROJECT_DIR$/css/last.css" /> |
268 | <option value="$PROJECT_DIR$/html/last.html" /> | 259 | <option value="$PROJECT_DIR$/html/last.html" /> |
260 | + <option value="$PROJECT_DIR$/html/index.html" /> | ||
261 | + <option value="$PROJECT_DIR$/css/index.css" /> | ||
269 | </list> | 262 | </list> |
270 | </option> | 263 | </option> |
271 | </component> | 264 | </component> |
@@ -276,8 +269,8 @@ | @@ -276,8 +269,8 @@ | ||
276 | <sorting>DEFINITION_ORDER</sorting> | 269 | <sorting>DEFINITION_ORDER</sorting> |
277 | </component> | 270 | </component> |
278 | <component name="ProjectFrameBounds"> | 271 | <component name="ProjectFrameBounds"> |
279 | - <option name="x" value="497" /> | ||
280 | - <option name="y" value="62" /> | 272 | + <option name="x" value="670" /> |
273 | + <option name="y" value="198" /> | ||
281 | <option name="width" value="1354" /> | 274 | <option name="width" value="1354" /> |
282 | <option name="height" value="999" /> | 275 | <option name="height" value="999" /> |
283 | </component> | 276 | </component> |
@@ -286,6 +279,7 @@ | @@ -286,6 +279,7 @@ | ||
286 | <foldersAlwaysOnTop value="true" /> | 279 | <foldersAlwaysOnTop value="true" /> |
287 | </navigator> | 280 | </navigator> |
288 | <panes> | 281 | <panes> |
282 | + <pane id="Scope" /> | ||
289 | <pane id="ProjectPane"> | 283 | <pane id="ProjectPane"> |
290 | <subPane> | 284 | <subPane> |
291 | <expand> | 285 | <expand> |
@@ -303,17 +297,21 @@ | @@ -303,17 +297,21 @@ | ||
303 | <item name="shengbao" type="462c0819:PsiDirectoryNode" /> | 297 | <item name="shengbao" type="462c0819:PsiDirectoryNode" /> |
304 | <item name="html" type="462c0819:PsiDirectoryNode" /> | 298 | <item name="html" type="462c0819:PsiDirectoryNode" /> |
305 | </path> | 299 | </path> |
300 | + <path> | ||
301 | + <item name="shengbao" type="b2602c69:ProjectViewProjectNode" /> | ||
302 | + <item name="shengbao" type="462c0819:PsiDirectoryNode" /> | ||
303 | + <item name="js" type="462c0819:PsiDirectoryNode" /> | ||
304 | + </path> | ||
306 | </expand> | 305 | </expand> |
307 | <select /> | 306 | <select /> |
308 | </subPane> | 307 | </subPane> |
309 | </pane> | 308 | </pane> |
310 | - <pane id="Scope" /> | ||
311 | </panes> | 309 | </panes> |
312 | </component> | 310 | </component> |
313 | <component name="PropertiesComponent"> | 311 | <component name="PropertiesComponent"> |
314 | <property name="DefaultHtmlFileTemplate" value="HTML File" /> | 312 | <property name="DefaultHtmlFileTemplate" value="HTML File" /> |
315 | <property name="WebServerToolWindowFactoryState" value="false" /> | 313 | <property name="WebServerToolWindowFactoryState" value="false" /> |
316 | - <property name="last_opened_file_path" value="$PROJECT_DIR$/../../可耐美手机端/clime" /> | 314 | + <property name="last_opened_file_path" value="$PROJECT_DIR$" /> |
317 | <property name="list.type.of.created.stylesheet" value="CSS" /> | 315 | <property name="list.type.of.created.stylesheet" value="CSS" /> |
318 | <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" /> | 316 | <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" /> |
319 | <property name="nodejs_npm_path_reset_for_default_project" value="true" /> | 317 | <property name="nodejs_npm_path_reset_for_default_project" value="true" /> |
@@ -321,6 +319,7 @@ | @@ -321,6 +319,7 @@ | ||
321 | <component name="RecentsManager"> | 319 | <component name="RecentsManager"> |
322 | <key name="CopyFile.RECENT_KEYS"> | 320 | <key name="CopyFile.RECENT_KEYS"> |
323 | <recent name="F:\ljh项目\盛宝财富贷款平台\shengbao\js" /> | 321 | <recent name="F:\ljh项目\盛宝财富贷款平台\shengbao\js" /> |
322 | + <recent name="F:\ljh项目\盛宝财富贷款平台\shengbao\css" /> | ||
324 | <recent name="F:\ljh项目\盛宝财富贷款平台\images" /> | 323 | <recent name="F:\ljh项目\盛宝财富贷款平台\images" /> |
325 | <recent name="F:\ljh项目\盛宝财富贷款平台\js" /> | 324 | <recent name="F:\ljh项目\盛宝财富贷款平台\js" /> |
326 | </key> | 325 | </key> |
@@ -351,12 +350,13 @@ | @@ -351,12 +350,13 @@ | ||
351 | <workItem from="1547718617124" duration="4272000" /> | 350 | <workItem from="1547718617124" duration="4272000" /> |
352 | <workItem from="1547771777103" duration="22455000" /> | 351 | <workItem from="1547771777103" duration="22455000" /> |
353 | <workItem from="1547799045567" duration="6022000" /> | 352 | <workItem from="1547799045567" duration="6022000" /> |
354 | - <workItem from="1547857140175" duration="1165000" /> | 353 | + <workItem from="1547857140175" duration="1455000" /> |
354 | + <workItem from="1547863520730" duration="875000" /> | ||
355 | </task> | 355 | </task> |
356 | <servers /> | 356 | <servers /> |
357 | </component> | 357 | </component> |
358 | <component name="TimeTrackingManager"> | 358 | <component name="TimeTrackingManager"> |
359 | - <option name="totallyTimeSpent" value="49106000" /> | 359 | + <option name="totallyTimeSpent" value="50271000" /> |
360 | </component> | 360 | </component> |
361 | <component name="TodoView"> | 361 | <component name="TodoView"> |
362 | <todo-panel id="selected-file"> | 362 | <todo-panel id="selected-file"> |
@@ -368,7 +368,7 @@ | @@ -368,7 +368,7 @@ | ||
368 | </todo-panel> | 368 | </todo-panel> |
369 | </component> | 369 | </component> |
370 | <component name="ToolWindowManager"> | 370 | <component name="ToolWindowManager"> |
371 | - <frame x="497" y="62" width="1354" height="999" extended-state="0" /> | 371 | + <frame x="384" y="135" width="1354" height="999" extended-state="0" /> |
372 | <editor active="true" /> | 372 | <editor active="true" /> |
373 | <layout> | 373 | <layout> |
374 | <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.1618541" /> | 374 | <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.1618541" /> |
@@ -383,7 +383,7 @@ | @@ -383,7 +383,7 @@ | ||
383 | <window_info anchor="bottom" id="TODO" order="6" weight="0.32974428" /> | 383 | <window_info anchor="bottom" id="TODO" order="6" weight="0.32974428" /> |
384 | <window_info anchor="bottom" id="Docker" order="7" show_stripe_button="false" /> | 384 | <window_info anchor="bottom" id="Docker" order="7" show_stripe_button="false" /> |
385 | <window_info anchor="bottom" id="Version Control" order="8" /> | 385 | <window_info anchor="bottom" id="Version Control" order="8" /> |
386 | - <window_info anchor="bottom" id="Terminal" order="9" visible="true" weight="0.2835648" /> | 386 | + <window_info anchor="bottom" id="Terminal" order="9" visible="true" weight="0.15972222" /> |
387 | <window_info anchor="bottom" id="Event Log" order="10" side_tool="true" /> | 387 | <window_info anchor="bottom" id="Event Log" order="10" side_tool="true" /> |
388 | <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" /> | 388 | <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" /> |
389 | <window_info anchor="right" id="Ant Build" order="1" weight="0.25" /> | 389 | <window_info anchor="right" id="Ant Build" order="1" weight="0.25" /> |
@@ -404,6 +404,13 @@ | @@ -404,6 +404,13 @@ | ||
404 | </state> | 404 | </state> |
405 | </provider> | 405 | </provider> |
406 | </entry> | 406 | </entry> |
407 | + <entry file="file://$PROJECT_DIR$/html/first.html"> | ||
408 | + <provider selected="true" editor-type-id="text-editor"> | ||
409 | + <state relative-caret-position="324"> | ||
410 | + <caret line="12" column="6" selection-start-line="12" selection-start-column="6" selection-end-line="12" selection-end-column="6" /> | ||
411 | + </state> | ||
412 | + </provider> | ||
413 | + </entry> | ||
407 | <entry file="file://$PROJECT_DIR$/css/first.css"> | 414 | <entry file="file://$PROJECT_DIR$/css/first.css"> |
408 | <provider selected="true" editor-type-id="text-editor"> | 415 | <provider selected="true" editor-type-id="text-editor"> |
409 | <state relative-caret-position="1107"> | 416 | <state relative-caret-position="1107"> |
@@ -418,32 +425,61 @@ | @@ -418,32 +425,61 @@ | ||
418 | </state> | 425 | </state> |
419 | </provider> | 426 | </provider> |
420 | </entry> | 427 | </entry> |
421 | - <entry file="file://$PROJECT_DIR$/css/index.css"> | 428 | + <entry file="file://$PROJECT_DIR$/html/dksm.html"> |
422 | <provider selected="true" editor-type-id="text-editor"> | 429 | <provider selected="true" editor-type-id="text-editor"> |
423 | - <state relative-caret-position="6318"> | ||
424 | - <caret line="234" column="23" lean-forward="true" selection-start-line="234" selection-start-column="23" selection-end-line="234" selection-end-column="23" /> | 430 | + <state relative-caret-position="621"> |
431 | + <caret line="23" column="49" lean-forward="true" selection-start-line="23" selection-start-column="49" selection-end-line="23" selection-end-column="49" /> | ||
425 | </state> | 432 | </state> |
426 | </provider> | 433 | </provider> |
427 | </entry> | 434 | </entry> |
428 | <entry file="file://$PROJECT_DIR$/js/jquery.combo.select.js"> | 435 | <entry file="file://$PROJECT_DIR$/js/jquery.combo.select.js"> |
429 | <provider selected="true" editor-type-id="text-editor" /> | 436 | <provider selected="true" editor-type-id="text-editor" /> |
430 | </entry> | 437 | </entry> |
438 | + <entry file="file://$PROJECT_DIR$/css/last.css"> | ||
439 | + <provider selected="true" editor-type-id="text-editor"> | ||
440 | + <state relative-caret-position="3996"> | ||
441 | + <caret line="148" column="18" lean-forward="true" selection-start-line="148" selection-start-column="18" selection-end-line="148" selection-end-column="18" /> | ||
442 | + </state> | ||
443 | + </provider> | ||
444 | + </entry> | ||
431 | <entry file="file://$PROJECT_DIR$/js/base.js"> | 445 | <entry file="file://$PROJECT_DIR$/js/base.js"> |
432 | <provider selected="true" editor-type-id="text-editor" /> | 446 | <provider selected="true" editor-type-id="text-editor" /> |
433 | </entry> | 447 | </entry> |
434 | - <entry file="file://$PROJECT_DIR$/css/last.css"> | 448 | + <entry file="file://$PROJECT_DIR$/html/last.html"> |
435 | <provider selected="true" editor-type-id="text-editor"> | 449 | <provider selected="true" editor-type-id="text-editor"> |
436 | - <state relative-caret-position="125"> | ||
437 | - <caret line="148" column="18" lean-forward="true" selection-start-line="148" selection-start-column="18" selection-end-line="148" selection-end-column="18" /> | 450 | + <state relative-caret-position="189"> |
451 | + <caret line="7" column="39" selection-start-line="7" selection-start-column="39" selection-end-line="7" selection-end-column="39" /> | ||
452 | + <folding> | ||
453 | + <element signature="n#div#1;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top" /> | ||
454 | + <element signature="n#div#0;n#div#1;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top" /> | ||
455 | + <element signature="n#div#0;n#div#0;n#div#1;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top" /> | ||
456 | + <element signature="n#div#1;n#div#0;n#div#0;n#div#1;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top" /> | ||
457 | + <element signature="n#div#2;n#div#0;n#div#1;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top" /> | ||
458 | + <element signature="n#div#1;n#div#2;n#div#0;n#div#1;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top" /> | ||
459 | + <element signature="n#div#2;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top" /> | ||
460 | + <element signature="n#div#3;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top" /> | ||
461 | + <element signature="n#div#0;n#div#3;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top" /> | ||
462 | + <element signature="n#div#0;n#div#0;n#div#3;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top" /> | ||
463 | + <element signature="n#div#1;n#div#3;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top" /> | ||
464 | + <element signature="n#div#0;n#div#1;n#div#3;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top" /> | ||
465 | + <element signature="n#div#2;n#div#3;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top" /> | ||
466 | + </folding> | ||
438 | </state> | 467 | </state> |
439 | </provider> | 468 | </provider> |
440 | </entry> | 469 | </entry> |
470 | + <entry file="file://$PROJECT_DIR$/js/dropload.min.js"> | ||
471 | + <provider selected="true" editor-type-id="text-editor" /> | ||
472 | + </entry> | ||
473 | + <entry file="file://$PROJECT_DIR$/css/dropload.css"> | ||
474 | + <provider selected="true" editor-type-id="text-editor" /> | ||
475 | + </entry> | ||
441 | <entry file="file://$PROJECT_DIR$/html/index.html"> | 476 | <entry file="file://$PROJECT_DIR$/html/index.html"> |
442 | <provider selected="true" editor-type-id="text-editor"> | 477 | <provider selected="true" editor-type-id="text-editor"> |
443 | - <state relative-caret-position="162"> | ||
444 | - <caret line="6" column="41" selection-start-line="6" selection-start-column="41" selection-end-line="6" selection-end-column="41" /> | 478 | + <state relative-caret-position="540"> |
479 | + <caret line="131" column="37" lean-forward="true" selection-start-line="131" selection-start-column="24" selection-end-line="131" selection-end-column="37" /> | ||
445 | <folding> | 480 | <folding> |
446 | <element signature="n#div#0;n#div#0;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top" /> | 481 | <element signature="n#div#0;n#div#0;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top" /> |
482 | + <element signature="n#div#1;n#div#0;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top" /> | ||
447 | <element signature="n#div#1;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top" /> | 483 | <element signature="n#div#1;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top" /> |
448 | <element signature="n#div#0;n#div#1;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top" /> | 484 | <element signature="n#div#0;n#div#1;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top" /> |
449 | <element signature="n#div#1;n#div#1;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top" /> | 485 | <element signature="n#div#1;n#div#1;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top" /> |
@@ -464,39 +500,10 @@ | @@ -464,39 +500,10 @@ | ||
464 | </state> | 500 | </state> |
465 | </provider> | 501 | </provider> |
466 | </entry> | 502 | </entry> |
467 | - <entry file="file://$PROJECT_DIR$/html/first.html"> | ||
468 | - <provider selected="true" editor-type-id="text-editor"> | ||
469 | - <state relative-caret-position="309"> | ||
470 | - <caret line="12" column="6" lean-forward="true" selection-start-line="12" selection-start-column="6" selection-end-line="12" selection-end-column="6" /> | ||
471 | - </state> | ||
472 | - </provider> | ||
473 | - </entry> | ||
474 | - <entry file="file://$PROJECT_DIR$/html/dksm.html"> | ||
475 | - <provider selected="true" editor-type-id="text-editor"> | ||
476 | - <state relative-caret-position="515"> | ||
477 | - <caret line="23" column="49" lean-forward="true" selection-start-line="23" selection-start-column="49" selection-end-line="23" selection-end-column="49" /> | ||
478 | - </state> | ||
479 | - </provider> | ||
480 | - </entry> | ||
481 | - <entry file="file://$PROJECT_DIR$/html/last.html"> | 503 | + <entry file="file://$PROJECT_DIR$/css/index.css"> |
482 | <provider selected="true" editor-type-id="text-editor"> | 504 | <provider selected="true" editor-type-id="text-editor"> |
483 | - <state relative-caret-position="189"> | ||
484 | - <caret line="7" column="39" selection-start-line="7" selection-start-column="39" selection-end-line="7" selection-end-column="39" /> | ||
485 | - <folding> | ||
486 | - <element signature="n#div#1;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top" /> | ||
487 | - <element signature="n#div#0;n#div#1;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top" /> | ||
488 | - <element signature="n#div#0;n#div#0;n#div#1;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top" /> | ||
489 | - <element signature="n#div#1;n#div#0;n#div#0;n#div#1;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top" /> | ||
490 | - <element signature="n#div#2;n#div#0;n#div#1;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top" /> | ||
491 | - <element signature="n#div#1;n#div#2;n#div#0;n#div#1;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top" /> | ||
492 | - <element signature="n#div#2;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top" /> | ||
493 | - <element signature="n#div#3;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top" /> | ||
494 | - <element signature="n#div#0;n#div#3;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top" /> | ||
495 | - <element signature="n#div#0;n#div#0;n#div#3;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top" /> | ||
496 | - <element signature="n#div#1;n#div#3;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top" /> | ||
497 | - <element signature="n#div#0;n#div#1;n#div#3;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top" /> | ||
498 | - <element signature="n#div#2;n#div#3;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top" /> | ||
499 | - </folding> | 505 | + <state relative-caret-position="431"> |
506 | + <caret line="156" column="1" lean-forward="true" selection-start-line="156" selection-start-column="1" selection-end-line="156" selection-end-column="1" /> | ||
500 | </state> | 507 | </state> |
501 | </provider> | 508 | </provider> |
502 | </entry> | 509 | </entry> |
css/dropload.css
0 → 100644
1 | +.dropload-up,.dropload-down{ | ||
2 | + position: relative; | ||
3 | + height: 0; | ||
4 | + overflow: hidden; | ||
5 | + font-size: 12px; | ||
6 | + /* 开启硬件加速 */ | ||
7 | + -webkit-transform:translateZ(0); | ||
8 | + transform:translateZ(0); | ||
9 | +} | ||
10 | +.dropload-down{ | ||
11 | + height: 50px; | ||
12 | +} | ||
13 | +.dropload-refresh,.dropload-update,.dropload-load,.dropload-noData{ | ||
14 | + height: 50px; | ||
15 | + line-height: 50px; | ||
16 | + text-align: center; | ||
17 | +} | ||
18 | +.dropload-load .loading{ | ||
19 | + display: inline-block; | ||
20 | + height: 15px; | ||
21 | + width: 15px; | ||
22 | + border-radius: 100%; | ||
23 | + margin: 6px; | ||
24 | + border: 2px solid #666; | ||
25 | + border-bottom-color: transparent; | ||
26 | + vertical-align: middle; | ||
27 | + -webkit-animation: rotate 0.75s linear infinite; | ||
28 | + animation: rotate 0.75s linear infinite; | ||
29 | +} | ||
30 | +@-webkit-keyframes rotate { | ||
31 | + 0% { | ||
32 | + -webkit-transform: rotate(0deg); | ||
33 | + } | ||
34 | + 50% { | ||
35 | + -webkit-transform: rotate(180deg); | ||
36 | + } | ||
37 | + 100% { | ||
38 | + -webkit-transform: rotate(360deg); | ||
39 | + } | ||
40 | +} | ||
41 | +@keyframes rotate { | ||
42 | + 0% { | ||
43 | + transform: rotate(0deg); | ||
44 | + } | ||
45 | + 50% { | ||
46 | + transform: rotate(180deg); | ||
47 | + } | ||
48 | + 100% { | ||
49 | + transform: rotate(360deg); | ||
50 | + } | ||
51 | +} |
@@ -153,7 +153,7 @@ | @@ -153,7 +153,7 @@ | ||
153 | margin-top: 0.12rem; | 153 | margin-top: 0.12rem; |
154 | } | 154 | } |
155 | .mid_loans_box:last-child{ | 155 | .mid_loans_box:last-child{ |
156 | - margin-bottom: 2rem; | 156 | + /*margin-bottom: 2rem;*/ |
157 | } | 157 | } |
158 | .mid_loans_box_top{ | 158 | .mid_loans_box_top{ |
159 | width: 100%; | 159 | width: 100%; |
@@ -6,11 +6,11 @@ | @@ -6,11 +6,11 @@ | ||
6 | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | 6 | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
7 | <meta name="viewport" content="maximum-scale=1.0, minimum-scale=1.0, user-scalable=0, initial-scale=1.0, width=device-width" /> | 7 | <meta name="viewport" content="maximum-scale=1.0, minimum-scale=1.0, user-scalable=0, initial-scale=1.0, width=device-width" /> |
8 | <link rel="stylesheet" type="text/css" href="../css/index.css"> | 8 | <link rel="stylesheet" type="text/css" href="../css/index.css"> |
9 | + <link rel="stylesheet" href="../css/dropload.css" /> | ||
9 | <script src="../js/base.js"></script> | 10 | <script src="../js/base.js"></script> |
10 | - <script src="../js/jquery.min.js"></script> | ||
11 | </head> | 11 | </head> |
12 | <body> | 12 | <body> |
13 | - <div class="main"> | 13 | + <div class="main content"> |
14 | <div class="container"> | 14 | <div class="container"> |
15 | <!--顶部公告--> | 15 | <!--顶部公告--> |
16 | <div class="top"> | 16 | <div class="top"> |
@@ -91,6 +91,7 @@ | @@ -91,6 +91,7 @@ | ||
91 | </div> | 91 | </div> |
92 | 92 | ||
93 | <!--秒贷框--> | 93 | <!--秒贷框--> |
94 | + <div class="mid_loans_boxs"> | ||
94 | <div class="mid_loans_box fitst_loans"> | 95 | <div class="mid_loans_box fitst_loans"> |
95 | <!--头部名字--> | 96 | <!--头部名字--> |
96 | <div class="mid_loans_box_top"> | 97 | <div class="mid_loans_box_top"> |
@@ -127,6 +128,7 @@ | @@ -127,6 +128,7 @@ | ||
127 | </div> | 128 | </div> |
128 | </div> | 129 | </div> |
129 | </div> | 130 | </div> |
131 | + | ||
130 | <div class="mid_loans_box"> | 132 | <div class="mid_loans_box"> |
131 | <!--头部名字--> | 133 | <!--头部名字--> |
132 | <div class="mid_loans_box_top"> | 134 | <div class="mid_loans_box_top"> |
@@ -199,16 +201,122 @@ | @@ -199,16 +201,122 @@ | ||
199 | </div> | 201 | </div> |
200 | </div> | 202 | </div> |
201 | </div> | 203 | </div> |
202 | - | ||
203 | - | ||
204 | - | 204 | + </div> |
205 | </div> | 205 | </div> |
206 | </div> | 206 | </div> |
207 | 207 | ||
208 | </body> | 208 | </body> |
209 | +<script src="../js/jquery.min.js"></script> | ||
210 | +<script src="../js/dropload.min.js"></script> | ||
209 | <script> | 211 | <script> |
210 | function btn_next() { | 212 | function btn_next() { |
211 | window.location.href = "last.html" | 213 | window.location.href = "last.html" |
212 | } | 214 | } |
215 | + | ||
216 | + // JavaScript Document | ||
217 | + //上拉加载 | ||
218 | + $(document).ready(function(){ | ||
219 | + // 页数 | ||
220 | + var page = 0; | ||
221 | + // 每页展示10个 | ||
222 | + var size = 3; | ||
223 | + $('.content').dropload({ | ||
224 | + scrollArea : window, | ||
225 | + domUp : { | ||
226 | + domClass : 'dropload-up', | ||
227 | + domRefresh : '<div class="dropload-refresh">↓下拉刷新</div>', | ||
228 | + domUpdate : '<div class="dropload-update">↑释放更新</div>', | ||
229 | + domLoad : '<div class="dropload-load"><span class="loading"></span>加载中...</div>' | ||
230 | + }, | ||
231 | + domDown : { | ||
232 | + domClass : 'dropload-down', | ||
233 | + domRefresh : '<div class="dropload-refresh">↑上拉加载更多</div>', | ||
234 | + domLoad : '<div class="dropload-load"><span class="loading"></span>加载中...</div>', | ||
235 | + domNoData : '<div class="dropload-noData">暂无数据</div>' | ||
236 | + }, | ||
237 | + loadDownFn : function(me){ | ||
238 | + page++; | ||
239 | + // 拼接HTML | ||
240 | + var result = ''; | ||
241 | + var s = ""; | ||
242 | + var show=""; | ||
243 | + var list_compressor=""; | ||
244 | + var list_answer=""; | ||
245 | + $.ajax({ | ||
246 | + type: 'GET', | ||
247 | + url: 'http://ons.me/tools/dropload/json.php?page='+page+'&size='+size, | ||
248 | + dataType: 'json', | ||
249 | + success: function(data){ | ||
250 | + console.log(data); | ||
251 | + var arrLen = data.length; | ||
252 | + if(arrLen > 0){ | ||
253 | + for(var i=0; i<arrLen; i++){ | ||
254 | + result +='<div class="mid_loans_box">\n' + | ||
255 | + ' <!--头部名字-->\n' + | ||
256 | + ' <div class="mid_loans_box_top">\n' + | ||
257 | + ' <div class="mid_loans_box_top_text">\n' + | ||
258 | + ' 秒贷\n' + | ||
259 | + ' </div>\n' + | ||
260 | + ' <!--热门-->\n' + | ||
261 | + ' <div class="mid_loans_box_top_hot">\n' + | ||
262 | + ' 热门\n' + | ||
263 | + ' </div>\n' + | ||
264 | + ' </div>\n' + | ||
265 | + ' <!--下划虚线-->\n' + | ||
266 | + ' <div class="mid_loans_box_line"></div>\n' + | ||
267 | + ' <!--底部内容-->\n' + | ||
268 | + ' <div class="mid_loans_box_bottom">\n' + | ||
269 | + ' <!--左边图片-->\n' + | ||
270 | + ' <div class="mid_loans_box_bottom_pic">\n' + | ||
271 | + ' <img src="../images/dsfs6@2x.png">\n' + | ||
272 | + ' </div>\n' + | ||
273 | + ' <!--右边文字-->\n' + | ||
274 | + ' <div class="mid_loans_box_bottom_text">\n' + | ||
275 | + ' <div class="mid_loans_box_bottom_text_title">\n' + | ||
276 | + ' 芝麻粉500+无负面,立马放\n' + | ||
277 | + ' </div>\n' + | ||
278 | + ' <div class="mid_loans_box_bottom_text_top">\n' + | ||
279 | + ' 申请人数: <span class="span_color">3658</span>人\n' + | ||
280 | + ' </div>\n' + | ||
281 | + ' <div class="mid_loans_box_bottom_text_mid">\n' + | ||
282 | + ' 月利率: <span class="span_color">0.3%-0.5%</span>\n' + | ||
283 | + ' </div>\n' + | ||
284 | + ' <div class="mid_loans_box_bottom_text_bottom">\n' + | ||
285 | + ' 3分钟申请,30分钟审核,秒下款\n' + | ||
286 | + ' </div>\n' + | ||
287 | + ' </div>\n' + | ||
288 | + ' </div>\n' + | ||
289 | + ' </div>' | ||
290 | + | ||
291 | + | ||
292 | + | ||
293 | + | ||
294 | + } | ||
295 | + // 如果没有数据 | ||
296 | + }else{ | ||
297 | + // 锁定 | ||
298 | + me.lock(); | ||
299 | + // 无数据 | ||
300 | + me.noData(); | ||
301 | + } | ||
302 | + // 为了测试,延迟1秒加载 | ||
303 | + setTimeout(function(){ | ||
304 | + // 插入数据到页面,放到最后面 | ||
305 | + $('.mid_loans_boxs').append(result); | ||
306 | + // 每次数据插入,必须重置 | ||
307 | + me.resetload(); | ||
308 | + },500); | ||
309 | + }, | ||
310 | + error: function(xhr, type){ | ||
311 | + alert('Ajax error!'); | ||
312 | + // 即使加载出错,也得重置 | ||
313 | + me.resetload(); | ||
314 | + } | ||
315 | + }); | ||
316 | + }, | ||
317 | + threshold : 50 | ||
318 | + }); | ||
319 | + | ||
320 | + }) | ||
213 | </script> | 321 | </script> |
214 | </html> | 322 | </html> |
images/bg.png
已删除
100644 → 0
3.2 KB
js/dropload.min.js
0 → 100644
1 | +/** | ||
2 | + * dropload | ||
3 | + * 西门(http://ons.me/526.html) | ||
4 | + * 0.9.1(161205) | ||
5 | + */ | ||
6 | +!function (a) { | ||
7 | + "use strict"; | ||
8 | + | ||
9 | + function g(a) { | ||
10 | + a.touches || (a.touches = a.originalEvent.touches) | ||
11 | + } | ||
12 | + function h(a, b) { | ||
13 | + b._startY = a.touches[0].pageY, b.touchScrollTop = b.$scrollArea.scrollTop() | ||
14 | + } | ||
15 | + function i(b, c) { | ||
16 | + c._curY = b.touches[0].pageY, c._moveY = c._curY - c._startY, c._moveY > 0 ? c.direction = "down" : c._moveY < 0 && (c.direction = "up"); | ||
17 | + var d = Math.abs(c._moveY); | ||
18 | + "" != c.opts.loadUpFn && c.touchScrollTop <= 0 && "down" == c.direction && !c.isLockUp && (b.preventDefault(), c.$domUp = a("." + c.opts.domUp.domClass), c.upInsertDOM || (c.$element.prepend('<div class="' + c.opts.domUp.domClass + '"></div>'), c.upInsertDOM = !0), n(c.$domUp, 0), d <= c.opts.distance ? (c._offsetY = d, c.$domUp.html(c.opts.domUp.domRefresh)) : d > c.opts.distance && d <= 2 * c.opts.distance ? (c._offsetY = c.opts.distance + .5 * (d - c.opts.distance), c.$domUp.html(c.opts.domUp.domUpdate)) : c._offsetY = c.opts.distance + .5 * c.opts.distance + .2 * (d - 2 * c.opts.distance), c.$domUp.css({height: c._offsetY})) | ||
19 | + } | ||
20 | + | ||
21 | + function j(b) { | ||
22 | + var c = Math.abs(b._moveY); | ||
23 | + "" != b.opts.loadUpFn && b.touchScrollTop <= 0 && "down" == b.direction && !b.isLockUp && (n(b.$domUp, 300), c > b.opts.distance ? (b.$domUp.css({height: b.$domUp.children().height()}), b.$domUp.html(b.opts.domUp.domLoad), b.loading = !0, b.opts.loadUpFn(b)) : b.$domUp.css({height: "0"}).on("webkitTransitionEnd mozTransitionEnd transitionend", function () { | ||
24 | + b.upInsertDOM = !1, a(this).remove() | ||
25 | + }), b._moveY = 0) | ||
26 | + } | ||
27 | + | ||
28 | + function k(a) { | ||
29 | + "" != a.opts.loadDownFn && a.opts.autoLoad && a._scrollContentHeight - a._threshold <= a._scrollWindowHeight && m(a) | ||
30 | + } | ||
31 | + | ||
32 | + function l(a) { | ||
33 | + a._scrollContentHeight = a.opts.scrollArea == b ? e.height() : a.$element[0].scrollHeight | ||
34 | + } | ||
35 | + | ||
36 | + function m(a) { | ||
37 | + a.direction = "up", a.$domDown.html(a.opts.domDown.domLoad), a.loading = !0, a.opts.loadDownFn(a) | ||
38 | + } | ||
39 | + | ||
40 | + function n(a, b) { | ||
41 | + a.css({"-webkit-transition": "all " + b + "ms", transition: "all " + b + "ms"}) | ||
42 | + } | ||
43 | + | ||
44 | + var f, b = window, c = document, d = a(b), e = a(c); | ||
45 | + a.fn.dropload = function (a) { | ||
46 | + return new f(this, a) | ||
47 | + }, f = function (a, b) { | ||
48 | + var c = this; | ||
49 | + c.$element = a, c.upInsertDOM = !1, c.loading = !1, c.isLockUp = !1, c.isLockDown = !1, c.isData = !0, c._scrollTop = 0, c._threshold = 0, c.init(b) | ||
50 | + }, f.prototype.init = function (f) { | ||
51 | + var l = this; | ||
52 | + l.opts = a.extend(!0, {}, { | ||
53 | + scrollArea: l.$element, | ||
54 | + domUp: { | ||
55 | + domClass: "dropload-up", | ||
56 | + domRefresh: '<div class="dropload-refresh">↓下拉刷新</div>', | ||
57 | + domUpdate: '<div class="dropload-update">↑释放更新</div>', | ||
58 | + domLoad: '<div class="dropload-load"><span class="loading"></span>加载中...</div>' | ||
59 | + }, | ||
60 | + domDown: { | ||
61 | + domClass: "dropload-down", | ||
62 | + domRefresh: '<div class="dropload-refresh">↑上拉加载更多</div>', | ||
63 | + domLoad: '<div class="dropload-load"><span class="loading"></span>加载中...</div>', | ||
64 | + domNoData: '<div class="dropload-noData">暂无数据</div>' | ||
65 | + }, | ||
66 | + autoLoad: !0, | ||
67 | + distance: 50, | ||
68 | + threshold: "", | ||
69 | + loadUpFn: "", | ||
70 | + loadDownFn: "" | ||
71 | + }, f), "" != l.opts.loadDownFn && (l.$element.append('<div class="' + l.opts.domDown.domClass + '">' + l.opts.domDown.domRefresh + "</div>"), l.$domDown = a("." + l.opts.domDown.domClass)), l._threshold = l.$domDown && "" === l.opts.threshold ? Math.floor(1 * l.$domDown.height() / 3) : l.opts.threshold, l.opts.scrollArea == b ? (l.$scrollArea = d, l._scrollContentHeight = e.height(), l._scrollWindowHeight = c.documentElement.clientHeight) : (l.$scrollArea = l.opts.scrollArea, l._scrollContentHeight = l.$element[0].scrollHeight, l._scrollWindowHeight = l.$element.height()), k(l), d.on("resize", function () { | ||
72 | + clearTimeout(l.timer), l.timer = setTimeout(function () { | ||
73 | + l._scrollWindowHeight = l.opts.scrollArea == b ? b.innerHeight : l.$element.height(), k(l) | ||
74 | + }, 150) | ||
75 | + }), l.$element.on("touchstart", function (a) { | ||
76 | + l.loading || (g(a), h(a, l)) | ||
77 | + }), l.$element.on("touchmove", function (a) { | ||
78 | + l.loading || (g(a, l), i(a, l)) | ||
79 | + }), l.$element.on("touchend", function () { | ||
80 | + l.loading || j(l) | ||
81 | + }), l.$scrollArea.on("scroll", function () { | ||
82 | + l._scrollTop = l.$scrollArea.scrollTop(), "" != l.opts.loadDownFn && !l.loading && !l.isLockDown && l._scrollContentHeight - l._threshold <= l._scrollWindowHeight + l._scrollTop && m(l) | ||
83 | + }) | ||
84 | + }, f.prototype.lock = function (a) { | ||
85 | + var b = this; | ||
86 | + void 0 === a ? "up" == b.direction ? b.isLockDown = !0 : "down" == b.direction ? b.isLockUp = !0 : (b.isLockUp = !0, b.isLockDown = !0) : "up" == a ? b.isLockUp = !0 : "down" == a && (b.isLockDown = !0, b.direction = "up") | ||
87 | + }, f.prototype.unlock = function () { | ||
88 | + var a = this; | ||
89 | + a.isLockUp = !1, a.isLockDown = !1, a.direction = "up" | ||
90 | + }, f.prototype.noData = function (a) { | ||
91 | + var b = this; | ||
92 | + void 0 === a || 1 == a ? b.isData = !1 : 0 == a && (b.isData = !0) | ||
93 | + }, f.prototype.resetload = function () { | ||
94 | + var b = this; | ||
95 | + "down" == b.direction && b.upInsertDOM ? b.$domUp.css({height: "0"}).on("webkitTransitionEnd mozTransitionEnd transitionend", function () { | ||
96 | + b.loading = !1, b.upInsertDOM = !1, a(this).remove(), l(b) | ||
97 | + }) : "up" == b.direction && (b.loading = !1, b.isData ? (b.$domDown.html(b.opts.domDown.domRefresh), l(b), k(b)) : b.$domDown.html(b.opts.domDown.domNoData)) | ||
98 | + } | ||
99 | +}(window.Zepto || window.jQuery); |
-
请 注册 或 登录 后发表评论