quchenming
2018-03-27 04dc45e0d4dab1b6c30cbe29af51d8ac8cbba9fb
发布页面 图片显示  添加问题
1 files modified
48 ■■■■ changed files
publish/js/customMin/customS_min.js 48 ●●●● patch | view | raw | blame | history
publish/js/customMin/customS_min.js
@@ -1609,7 +1609,7 @@
                // var $list = $uploadimg,
                var $li = $(
                    '<div id="' + fileid + '" class="file-item thumbnail">' +
                    '<img alt=" " class = "fileQueuedAddItem" src = "' + fileItem.base64 + '"  data-original ="' + fileItem.base64 + '" >' +
                    '<img alt=" " class = "fileQueuedAddItem" src = "' + fileItem.path + '"  data-original ="' + fileItem.path + '" >' +
                    '<div class="frm_item_icons">' +
                    '<div class="frm_item_icon remove" imgId="' + fileid + '">' +
                    // '<img  style="width:14px;height:14px;" src="./../../css/img/icon/delete.png"></div>' +
@@ -1658,16 +1658,31 @@
           return false;
        }
        var uploader;
        var webUploaderJson = {
            // 选完文件后,是否自动上传。
            auto: true,
            // pick: '#'+potion.id+"dndArea",
            pick: {
              id: '#' + potion.id + 'imgPicker',
              multiple: false//禁止多选
            },
            paste: potion.id,
            swf: '../../dist/Uploader.swf',
        //发布页面 多选图片 曲辰明 3-27
        if (potion.imagetype == "single") {
            var webUploaderJson = {
                // 选完文件后,是否自动上传。
                auto: true,
                // pick: '#'+potion.id+"dndArea",
                pick: {
                    id: '#' + potion.id + 'imgPicker',
                    multiple: false//禁止多选
                },
                paste: potion.id,
                swf: '../../dist/Uploader.swf',
            }
        }else{
            var webUploaderJson = {
                // 选完文件后,是否自动上传。
                auto: true,
                // pick: '#'+potion.id+"dndArea",
                pick: {
                    id: '#' + potion.id + 'imgPicker',
                    multiple: true//多选
                },
                paste: potion.id,
                swf: '../../dist/Uploader.swf',
            }
        }
        var webUploaderJson = $.extend(webUploaderJson, window.commonWebUploaderJson(potion.formid));
@@ -1732,8 +1747,12 @@
                // 12/21
                console.log($img)
                $img.attr('data-original', src);
            }, 100, 100);
                // 发布页面查看大图  曲辰明 3-27
                var viewer = new Viewer(document.getElementById(file.id), {
                    url: 'data-original',
                    movable: false
                });
            }, 400, 400);
        });
        // 文件上传过程中创建进度条实时显示。
        uploader.on('uploadProgress', function (file, percentage) {
@@ -3901,7 +3920,8 @@
    var div = document.createElement("div");
    div.innerHTML = customItem.formeditor;
    if (customShow.options.customInit.designMode == "1") {
        div.setAttribute("class", "divshow divshowEditor");
        //发布页面查看大图排版问题  曲辰明 3-27
        //div.setAttribute("class", "divshow divshowEditor");
        if (customShow.options.customShowFlag != "4") {
            $(div).css("height", customItem.fromheigh);