var FileImage = {};
FileImage.isAll = function (fileProperty) {
    var fileName = fileProperty.fileName;
    if (fileName.endsWith('.jpg')   //图片
        || fileName.endsWith('.jpeg')
        || fileName.endsWith('.bmp')
        || fileName.endsWith('.gif')
        || fileName.endsWith('.png')) {
        return "fa fa-file-photo-o my-icon";
    } else if (fileName.endsWith('.rar')     //压缩包
        || fileName.endsWith('.zip')
        || fileName.endsWith('.arj')
        || fileName.endsWith('.z')
        || fileName.endsWith('.iso')
        || fileName.endsWith('.jar')
        || fileName.endsWith('.uue')
        || fileName.endsWith('.gz')
        || fileName.endsWith('.tar')
        || fileName.endsWith('.ace')
        || fileName.endsWith('.cab')
        || fileName.endsWith('.lzh')) {
        return "fa fa-file-zip-o my-icon";
    } else if (fileName.endsWith('.doc')     //word文件
        || fileName.endsWith('.docx')
        || fileName.endsWith('.docm')
        || fileName.endsWith('.dotx')
        || fileName.endsWith('.dotm')) {
        return "fa fa-file-word-o my-icon";
    } else if (fileName.endsWith('.xls')     //excel文件
        || fileName.endsWith('.xlsx')
        || fileName.endsWith('.xlsm')
        || fileName.endsWith('.xltx')
        || fileName.endsWith('.xltm')
        || fileName.endsWith('.xlsb')
        || fileName.endsWith('.xlam')) {
        return "fa fa-file-excel-o my-icon";
    } else if (fileName.endsWith('.ppt')     //ppt文件
        || fileName.endsWith('.pptx')
        || fileName.endsWith('.pptm')
        || fileName.endsWith('.ppsx')
        || fileName.endsWith('.ppsm')
        || fileName.endsWith('.potx')
        || fileName.endsWith('.potm')
        || fileName.endsWith('.ppam')) {
        return "fa fa-file-powerpoint-o my-icon";
    } else if (fileName.endsWith('.txt')     //文本文件
        || fileName.endsWith('.text')) {
        return "fa fa-file-text-o my-icon";
    } else if (fileName.endsWith('.html')     //常用代码文件
        || fileName.endsWith('.css')
        || fileName.endsWith('.jsp')
        || fileName.endsWith('.xml')
        || fileName.endsWith('.js')
        || fileName.endsWith('.vue').default
        || fileName.endsWith('.java')
        || fileName.endsWith('.class')) {
        return "fa fa-file-code-o my-icon";
    } else if (fileName.endsWith('.mp3')     //常用音乐文件
        || fileName.endsWith('.wma')
        || fileName.endsWith('.midi')
        || fileName.endsWith('.cda')
        || fileName.endsWith('.wav')
        || fileName.endsWith('.mov')) {
        return "fa fa-file-audio-o my-icon";
    } else if (fileName.endsWith('.avi')     //常用视频文件
        || fileName.endsWith('.rmvb')
        || fileName.endsWith('.rm')
        || fileName.endsWith('.asf')
        || fileName.endsWith('.divx')
        || fileName.endsWith('.mpg')
        || fileName.endsWith('.mpeg')
        || fileName.endsWith('.mpe')
        || fileName.endsWith('.wmv')
        || fileName.endsWith('.mp4')
        || fileName.endsWith('.mkv')
        || fileName.endsWith('.vob')) {
        return "fa fa-file-video-o my-icon";
    } else if (fileName.endsWith('.pdf')) {
        return "fa fa-file-pdf-o my-icon"
    } else if (iileName.endsWith('.jpg')   //其他情况
    || fileName.endsWith('.jpeg')
    || fileName.endsWith('.bmp')
    || fileName.endsWith('.gif')
    || fileName.endsWith('.png')
    || fileName.endsWith('.rar')
    || fileName.endsWith('.zip')
    || fileName.endsWith('.arj')
    || fileName.endsWith('.z')
    || fileName.endsWith('.iso')
    || fileName.endsWith('.jar')
    || fileName.endsWith('.uue')
    || fileName.endsWith('.gz')
    || fileName.endsWith('.tar')
    || fileName.endsWith('.ace')
    || fileName.endsWith('.cab')
    || fileName.endsWith('.lzh')
    || fileName.endsWith('.doc')
    || fileName.endsWith('.docx')
    || fileName.endsWith('.docm')
    || fileName.endsWith('.dotx')
    || fileName.endsWith('.dotm')
    || fileName.endsWith('.xls')
    || fileName.endsWith('.xlsx')
    || fileName.endsWith('.xlsm')
    || fileName.endsWith('.xltx')
    || fileName.endsWith('.xltm')
    || fileName.endsWith('.xlsb')
    || fileName.endsWith('.xlam')
    || fileName.endsWith('.ppt')
    || fileName.endsWith('.pptx')
    || fileName.endsWith('.pptm')
    || fileName.endsWith('.ppsx')
    || fileName.endsWith('.ppsm')
    || fileName.endsWith('.potx')
    || fileName.endsWith('.potm')
    || fileName.endsWith('.ppam')
    || fileName.endsWith('.txt')
    || fileName.endsWith('.text')
    || fileName.endsWith('.html')
    || fileName.endsWith('.css')
    || fileName.endsWith('.jsp')
    || fileName.endsWith('.xml')
    || fileName.endsWith('.js')
    || fileName.endsWith('.vue').default
    || fileName.endsWith('.java')
    || fileName.endsWith('.class')
    || fileName.endsWith('.mp3')
    || fileName.endsWith('.wma')
    || fileName.endsWith('.midi')
    || fileName.endsWith('.cda')
    || fileName.endsWith('.wav')
    || fileName.endsWith('.mov')
    || fileName.endsWith('.avi')
    || fileName.endsWith('.rmvb')
    || fileName.endsWith('.rm')
    || fileName.endsWith('.asf')
    || fileName.endsWith('.divx')
    || fileName.endsWith('.mpg')
    || fileName.endsWith('.mpeg')
    || fileName.endsWith('.mpe')
    || fileName.endsWith('.wmv')
    || fileName.endsWith('.mp4')
    || fileName.endsWith('.mkv')
    || fileName.endsWith('.vob')
    || fileName.endsWith('.pdf')) {
    return "fa fa-file-o my-icon";
    }
}