Authored by ccbikai(👎🏻🍜)

分类页面优化

@@ -27,7 +27,7 @@ if (!shelljs.grep('npm run -s', path.resolve('./.git/hooks/pre-commit')).stdout. @@ -27,7 +27,7 @@ if (!shelljs.grep('npm run -s', path.resolve('./.git/hooks/pre-commit')).stdout.
27 27
28 if (changeFiles.js) { 28 if (changeFiles.js) {
29 changeFiles.js = changeFiles.js.replace(/\n/g, ' '); 29 changeFiles.js = changeFiles.js.replace(/\n/g, ' ');
30 - lintResult.js = shelljs.exec(`${lintPath.js}${ext} -c .eslintrc --cache --fix ${changeFiles.js}`); 30 + lintResult.js = shelljs.exec(`${lintPath.js}${ext} -c .eslintrc --cache ${changeFiles.js}`);
31 } 31 }
32 32
33 if (changeFiles.css) { 33 if (changeFiles.css) {
@@ -37,7 +37,7 @@ if (changeFiles.css) { @@ -37,7 +37,7 @@ if (changeFiles.css) {
37 37
38 if (changeFiles.vue) { 38 if (changeFiles.vue) {
39 changeFiles.vue = changeFiles.vue.replace(/\n/g, ' '); 39 changeFiles.vue = changeFiles.vue.replace(/\n/g, ' ');
40 - lintResult.vueScript = shelljs.exec(`${lintPath.js}${ext} -c .eslintrc --cache --fix ${changeFiles.vue}`); 40 + lintResult.vueScript = shelljs.exec(`${lintPath.js}${ext} -c .eslintrc --cache ${changeFiles.vue}`);
41 lintResult.vueStyle = shelljs.exec(`${lintPath.css}${ext} --syntax scss --extract --config .stylelintrc ${changeFiles.vue}`); // eslint-disable-line 41 lintResult.vueStyle = shelljs.exec(`${lintPath.css}${ext} --syntax scss --extract --config .stylelintrc ${changeFiles.vue}`); // eslint-disable-line
42 } 42 }
43 43
@@ -18,7 +18,7 @@ require('../common'); @@ -18,7 +18,7 @@ require('../common');
18 18
19 $(function() { 19 $(function() {
20 FastClick.attach(document.body); 20 FastClick.attach(document.body);
21 -}) 21 +});
22 22
23 function resetHeight() { 23 function resetHeight() {
24 var h = document.body.scrollHeight - $search.outerHeight() - $nav.outerHeight(); 24 var h = document.body.scrollHeight - $search.outerHeight() - $nav.outerHeight();