|
@@ -5,6 +5,8 @@ webpackJsonp([60],[ |
|
@@ -5,6 +5,8 @@ webpackJsonp([60],[ |
5
|
var $ = __webpack_require__(1);
|
5
|
var $ = __webpack_require__(1);
|
6
|
common = __webpack_require__(2);
|
6
|
common = __webpack_require__(2);
|
7
|
|
7
|
|
|
|
8
|
+ var page, size = 0;
|
|
|
9
|
+
|
8
|
function getPageFromUrl() {
|
10
|
function getPageFromUrl() {
|
9
|
var uri = location.href + '';
|
11
|
var uri = location.href + '';
|
10
|
var index = uri.indexOf('background');
|
12
|
var index = uri.indexOf('background');
|
|
@@ -12,17 +14,24 @@ webpackJsonp([60],[ |
|
@@ -12,17 +14,24 @@ webpackJsonp([60],[ |
12
|
if(index == -1) {
|
14
|
if(index == -1) {
|
13
|
return 0;
|
15
|
return 0;
|
14
|
} else {
|
16
|
} else {
|
15
|
- var page = uri.substring(index + 1);
|
|
|
16
|
- return +page;
|
17
|
+ uri = uri.substring(index + 1);
|
|
|
18
|
+ index = uri.indexOf('?size=');
|
|
|
19
|
+ if(index != -1) {
|
|
|
20
|
+ page = +uri.substring(0, index);
|
|
|
21
|
+ size = +uri.substring(index + '?size='.length);
|
|
|
22
|
+ } else {
|
|
|
23
|
+ page = +uri;
|
|
|
24
|
+ }
|
17
|
}
|
25
|
}
|
18
|
}
|
26
|
}
|
19
|
|
27
|
|
20
|
- var page = getPageFromUrl();
|
28
|
+ getPageFromUrl();
|
21
|
|
29
|
|
22
|
common.util.__ajax({
|
30
|
common.util.__ajax({
|
23
|
url: '/guang/updateArticlePic',
|
31
|
url: '/guang/updateArticlePic',
|
24
|
data: {
|
32
|
data: {
|
25
|
- page: page
|
33
|
+ page: page,
|
|
|
34
|
+ size: size
|
26
|
}
|
35
|
}
|
27
|
})
|
36
|
})
|
28
|
|
37
|
|