装修控制图片大小
This commit is contained in:
parent
28e5b83f6c
commit
fc177025a0
@ -18107,14 +18107,28 @@
|
||||
for (var t = 0; t < l[_x41903[4579]][_x41903[33]]; t++) l[_x41903[4579]][t][_x41903[4453]] == $(e[_x41903[476]])[_x41903[217]](_x41903[4547]) && (l[_x41903[820]] = JSON[_x41903[367]](l[_x41903[4579]][t][_x41903[4580]]));
|
||||
},
|
||||
uploadImage: function(n) {
|
||||
var o = $(n[_x41903[476]])[_x41903[217]](_x41903[4581]) || 0, r = $(n[_x41903[476]])[_x41903[217]](_x41903[4582]) || 0, s = $(n[_x41903[476]])[_x41903[217]](_x41903[4583]) || 0, a = $(n[_x41903[476]])[_x41903[217]](_x41903[4584]) || 0, e = $(n[_x41903[476]])[_x41903[217]](_x41903[4585]) || 0;
|
||||
$(n[_x41903[476]])[_x41903[217]](_x41903[4522]);
|
||||
console.log(JSON.stringify(n))
|
||||
const $input = $(n.target)
|
||||
var o = $input.attr('imgwidth') || 0,//4581
|
||||
r = $input.attr('imgheight') || 0,//4582
|
||||
s = $input.attr('imgSize') || 0,//4583
|
||||
a = $input.attr('fileId') || 0,//4584
|
||||
e = $input.attr('uptype') || 0;//4585
|
||||
var msType= $input.attr('msType');//msType4522
|
||||
// $(n[_x41903[476]])[_x41903[217]](_x41903[4522]);//msType4522
|
||||
if (1 == e) {
|
||||
if ($(n[_x41903[476]])[_x41903[217]](_x41903[4583])) return void $[_x41903[39]](l[_x41903[4490]], function(e, t) {
|
||||
t[_x41903[4453]] == $(n[_x41903[476]])[_x41903[217]](_x41903[4584]) && publicFun[_x41903[4586]]($(n[_x41903[476]])[_x41903[217]](_x41903[124]), function(e) {
|
||||
250 == e[_x41903[686]] && $[_x41903[2030]][_x41903[4089]](e[_x41903[4587]] || __(_x41903[4588])),
|
||||
t[_x41903[4589]] = e[_x41903[473]][_x41903[688]],
|
||||
c();
|
||||
// if (s) return void $[_x41903[39]](l[_x41903[4490]], function(e, t) {
|
||||
// t[_x41903[4453]] == $(n[_x41903[476]])[_x41903[217]](_x41903[4584]) && publicFun[_x41903[4586]]($(n[_x41903[476]])[_x41903[217]](_x41903[124]), function(e) {
|
||||
// 250 == e[_x41903[686]] && $[_x41903[2030]][_x41903[4089]](e[_x41903[4587]] || __(_x41903[4588])),
|
||||
// t[_x41903[4589]] = e[_x41903[473]][_x41903[688]],
|
||||
// c();
|
||||
// }, $(n[_x41903[476]])[_x41903[217]](_x41903[4583]));
|
||||
// });
|
||||
if (s) return void l.pageList.forEach((e,t)=>{
|
||||
t[_x41903[4453]] == a && publicFun[_x41903[4586]]($(n[_x41903[476]])[_x41903[217]](_x41903[124]), function(e) {
|
||||
250 == e[_x41903[686]] && $[_x41903[2030]][_x41903[4089]](e[_x41903[4587]] || __(_x41903[4588])),
|
||||
t[_x41903[4589]] = e[_x41903[473]][_x41903[688]],
|
||||
c();
|
||||
}, $(n[_x41903[476]])[_x41903[217]](_x41903[4583]));
|
||||
});
|
||||
} else if (2 != e) if (3 == e) try {
|
||||
@ -18181,14 +18195,14 @@
|
||||
250 == e[_x41903[686]] && $[_x41903[2030]][_x41903[4089]](e[_x41903[4587]] || __(_x41903[4597])),
|
||||
i[_x41903[4488]][_x41903[473]][_x41903[2345]] = e[_x41903[473]][_x41903[688]],
|
||||
c();
|
||||
}, 500);
|
||||
}, 10240);
|
||||
}
|
||||
} else 3 == i[_x41903[4420]] ? $[_x41903[39]](i[_x41903[4598]][_x41903[473]], function(e, t) {
|
||||
t[_x41903[124]] == $(n[_x41903[476]])[_x41903[217]](_x41903[4584]) && publicFun[_x41903[4586]]($(n[_x41903[476]])[_x41903[217]](_x41903[124]), function(e) {
|
||||
250 == e[_x41903[686]] && $[_x41903[2030]][_x41903[4089]](e[_x41903[4587]] || __(_x41903[4599])),
|
||||
t[_x41903[2345]] = e[_x41903[473]][_x41903[688]],
|
||||
c();
|
||||
}, 800);
|
||||
}, 10240);
|
||||
}) : 4 == i[_x41903[4420]] ? $[_x41903[39]](i[_x41903[4600]][_x41903[473]], function(e, t) {
|
||||
if (t[_x41903[124]] == $(n[_x41903[476]])[_x41903[217]](_x41903[4584])) {
|
||||
switch (parseInt(i[_x41903[4600]][_x41903[4601]])) {
|
||||
@ -18211,24 +18225,24 @@
|
||||
250 == e[_x41903[686]] && $[_x41903[2030]][_x41903[4089]](e[_x41903[4587]] || __(_x41903[4602])),
|
||||
t[_x41903[2345]] = e[_x41903[473]][_x41903[688]],
|
||||
c();
|
||||
}, 200);
|
||||
}, 10240);
|
||||
}
|
||||
}) : 6 == i[_x41903[4420]] ? $[_x41903[39]](i[_x41903[4603]][_x41903[473]], function(e, t) {
|
||||
t[_x41903[124]] == $(n[_x41903[476]])[_x41903[217]](_x41903[4584]) && publicFun[_x41903[4586]]($(n[_x41903[476]])[_x41903[217]](_x41903[124]), function(e) {
|
||||
250 == e[_x41903[686]] && $[_x41903[2030]][_x41903[4089]](e[_x41903[4587]] || __(_x41903[4604])),
|
||||
t[_x41903[2345]] = e[_x41903[473]][_x41903[688]],
|
||||
c();
|
||||
}, 800), _x41903[4605] + t[_x41903[124]] == $(n[_x41903[476]])[_x41903[217]](_x41903[4584]) && publicFun[_x41903[4586]]($(n[_x41903[476]])[_x41903[217]](_x41903[124]), function(e) {
|
||||
}, 10240), _x41903[4605] + t[_x41903[124]] == $(n[_x41903[476]])[_x41903[217]](_x41903[4584]) && publicFun[_x41903[4586]]($(n[_x41903[476]])[_x41903[217]](_x41903[124]), function(e) {
|
||||
250 == e[_x41903[686]] && $[_x41903[2030]][_x41903[4089]](e[_x41903[4587]] || __(_x41903[4606])),
|
||||
t[_x41903[4607]] = e[_x41903[473]][_x41903[688]],
|
||||
c();
|
||||
}, 800);
|
||||
}, 10240);
|
||||
}) : 7 == i[_x41903[4420]] ? $[_x41903[39]](i[_x41903[4608]][_x41903[473]], function(e, t) {
|
||||
t[_x41903[124]] == $(n[_x41903[476]])[_x41903[217]](_x41903[4584]) && publicFun[_x41903[4586]]($(n[_x41903[476]])[_x41903[217]](_x41903[124]), function(e) {
|
||||
250 == e[_x41903[686]] && $[_x41903[2030]][_x41903[4089]](e[_x41903[4587]] || __(_x41903[4609])),
|
||||
t[_x41903[2345]] = e[_x41903[473]][_x41903[688]],
|
||||
c();
|
||||
}, 200);
|
||||
}, 10240);
|
||||
}) : 12 == i[_x41903[4420]] && i[_x41903[124]] == $(n[_x41903[476]])[_x41903[217]](_x41903[4584]) ? publicFun[_x41903[4586]]($(n[_x41903[476]])[_x41903[217]](_x41903[124]), function(e) {
|
||||
250 == e[_x41903[686]] && $[_x41903[2030]][_x41903[4089]](e[_x41903[4587]] || __(_x41903[4610])),
|
||||
i[_x41903[4612]][_x41903[4611]] = e[_x41903[473]][_x41903[688]],
|
||||
@ -18263,16 +18277,16 @@
|
||||
250 == e[_x41903[686]] && $[_x41903[2030]][_x41903[4089]](e[_x41903[4587]] || __(_x41903[4619])),
|
||||
t[_x41903[4555]] = e[_x41903[473]][_x41903[688]],
|
||||
c();
|
||||
}, 40) : e + 12 == $(n[_x41903[476]])[_x41903[217]](_x41903[4584]) && publicFun[_x41903[4586]]($(n[_x41903[476]])[_x41903[217]](_x41903[124]), function(e) {
|
||||
}, 10240) : e + 12 == $(n[_x41903[476]])[_x41903[217]](_x41903[4584]) && publicFun[_x41903[4586]]($(n[_x41903[476]])[_x41903[217]](_x41903[124]), function(e) {
|
||||
250 == e[_x41903[686]] && $[_x41903[2030]][_x41903[4089]](e[_x41903[4587]] || __(_x41903[4620])),
|
||||
t[_x41903[4556]] = e[_x41903[473]][_x41903[688]],
|
||||
c();
|
||||
}, 40);
|
||||
}, 10240);
|
||||
}), _x41903[4621] == $(n[_x41903[476]])[_x41903[217]](_x41903[4584]) && publicFun[_x41903[4586]]($(n[_x41903[476]])[_x41903[217]](_x41903[4584]), function(e) {
|
||||
250 == e[_x41903[686]] && $[_x41903[2030]][_x41903[4089]](e[_x41903[4587]] || __(_x41903[4622])),
|
||||
l[_x41903[4458]][_x41903[4623]][_x41903[2345]] = e[_x41903[473]][_x41903[688]],
|
||||
c();
|
||||
}, 800);
|
||||
}, 10240);
|
||||
},
|
||||
selectTabBar: function(e) {
|
||||
l[_x41903[4573]] = $(e[_x41903[476]])[_x41903[217]](_x41903[4573]) || 0;
|
||||
@ -18786,8 +18800,11 @@
|
||||
},
|
||||
uploadImage: function(e, t, i) {
|
||||
var n;
|
||||
$(_x41903[130] + e)[0][_x41903[4708]][0][_x41903[1279]] / 1024 <= i ? (n = _x41903[4] != typeof authorization ? tpl_image_upload_url + _x41903[4709] + encodeURIComponent(authorization) : tpl_image_upload_url,
|
||||
$[_x41903[4710]]({
|
||||
console.log($("#" + e)[0].files)
|
||||
console.log($("#" + e)[0].files[0].size / 1024)
|
||||
$("#" + e)[0].files[0].size / 1024 <= i ? (n = _x41903[4] != typeof authorization ? tpl_image_upload_url + _x41903[4709] + encodeURIComponent(authorization) : tpl_image_upload_url,
|
||||
|
||||
$.ajaxFileUpload({
|
||||
url: n,
|
||||
secureuri: !1,
|
||||
fileElementId: e,
|
||||
@ -18796,7 +18813,8 @@
|
||||
error: function(e, t, i) {
|
||||
console[_x41903[820]](e, t, i);
|
||||
}
|
||||
})) : $[_x41903[2030]][_x41903[4089]](__(_x41903[4711]) + i + _x41903[4712]);
|
||||
})) : $.dialog.alert("最大支持上传" + i + "kb");
|
||||
|
||||
},
|
||||
paging: function(e, t, i) {
|
||||
0 < t[_x41903[1201]][_x41903[33]] && (e[_x41903[4531]] = i, e[_x41903[4713]] = t[_x41903[4714]],
|
||||
|
||||
Loading…
Reference in New Issue
Block a user