Authored by leo

Merge branch 'dev_逛详情增加图片尺寸' into grey

... ... @@ -151,7 +151,8 @@ module.exports={
title: "更新逛详情中图片大小",
url: "/guang/article/updateArticlePic/background",
params: [
{name: "page", type:"Number"}
{name: "page", type:"Number"},
{name: "size", type:"Number", default: 0}
]
}
}
... ...
var $ = require('jquery');
common = require('../../../common/common');
var page, size = 0;
function getPageFromUrl() {
var uri = location.href + '';
var index = uri.indexOf('background');
... ... @@ -8,16 +10,23 @@ function getPageFromUrl() {
if(index == -1) {
return 0;
} else {
var page = uri.substring(index + 1);
return +page;
uri = uri.substring(index + 1);
index = uri.indexOf('?size=');
if(index != -1) {
page = +uri.substring(0, index);
size = +uri.substring(index + '?size='.length);
} else {
page = +uri;
}
}
}
var page = getPageFromUrl();
getPageFromUrl();
common.util.__ajax({
url: '/guang/updateArticlePic',
data: {
page: page
page: page,
size: size
}
})
\ No newline at end of file
... ...