zip下载js问题
This commit is contained in:
parent
62b1ffc0c5
commit
fdf00eb9cf
|
@ -950,10 +950,16 @@ $(function(){
|
|||
return;
|
||||
}
|
||||
|
||||
if(res.length<1){
|
||||
return;
|
||||
if (res.err == -2) {
|
||||
alert("该作业没有任何附件可下载");
|
||||
return;
|
||||
}
|
||||
|
||||
if(res.length < 1 ){
|
||||
alert("该作业没有任何附件可下载");
|
||||
return;
|
||||
}
|
||||
|
||||
if(res.length==1){
|
||||
if(res[0].base64file){
|
||||
location.href = encodeHomeworkUrl(res[0].base64file, true);return;
|
||||
|
@ -983,10 +989,22 @@ $(function(){
|
|||
$('#download_homework_attachments').bind('ajax:complete', function (event, data, status, xhr) {
|
||||
if(status == 'success'){
|
||||
var res = JSON.parse(data.responseText);
|
||||
if(res.length == null){
|
||||
alert("该作业没有任何附件可下载");
|
||||
|
||||
if(res.err == -1){
|
||||
var htmlvalue = '<div id="muban_popup_box" style="width:auto;"><div class="muban_popup_top"><h3 class="fl">温馨提示</h3><a href="javascript:void(0);" class="muban_icons_close fr"></a></div>'+
|
||||
'<div class="clear mt15 mr10 ml10"><p class="text_c f14">因附件资源太大,请通过微信或者QQ联系Trustie管理员</br>辅助您完成下载</p><div class="cl"></div>'+
|
||||
'<a href="javascript:void(0);" class="fr sy_btn_blue mt10" style="margin-right: 143px;" onclick="hideModal();">确 定</a></div></div>';
|
||||
pop_box_new(htmlvalue,380,166);
|
||||
return;
|
||||
}
|
||||
else if(res.length<1){
|
||||
|
||||
if (res.err == -2) {
|
||||
alert("该作业没有任何附件可下载");
|
||||
return;
|
||||
}
|
||||
|
||||
if(res.length < 1 ){
|
||||
alert("该作业没有任何附件可下载");
|
||||
return;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue