Namespace.register("U.Dk.VW"); //Disk视图操作命名空间 //#region 目录文件打印 /** * 打印网盘视图输出判断的地方 分为普通视图输出和详细视图输出 * @param {array} 需要输出的文件或者文件夹信息 * @param {element} 输出到那个区域 **/ U.Dk.VW.XWPDY = function (filesinfo, el) { var _diskinfo = US.Disk.UserDisk, //用户网盘的数据 _viewtype = _diskinfo[1][4]; //打印的格式 //判断是否有需要输出的文件信息 if (filesinfo.length) { //打印的模式 这里是普通视图输出 if (_viewtype == "Normal") { el.style.width = ""; //去除由于详细视图设置的大小样式 U.Dk.VW.XWPDYX(filesinfo, el); //输出 } //详细视图输出 else { U.Dk.VW.XWPDYL(filesinfo, el, null); //详细视图输出 U.Dk.HP.DXSTSY($(el).prev()[0], el, _diskinfo); //详细视图的时候需要设置大小和样式,这里统一处理 } } //如果还有输出的信息在div上面那么不输出空文件的提示 else if (!$(el).Child().length) { U.Dk.VW.XWPDYXK(el); //没有文件的时候样式输出 } } /** * 空文件提示信息输出 * @param {element} 输出到那个区域 **/ U.Dk.VW.XWPDYXK = function (el) { var _viewel, _infoel, _promptel, _viewel = $$("div", { "className": "UD_SYWRZF" }, el); _infoel = $$("div", { "className": "UD_SYWRZFS" }, _viewel); $$("div", { "className": "UD_SYWRZTSL UD_SYWRZFSL", "innerHTML": "!" }, _infoel); _promptel = $$("div", { "className": "UD_SYWRZFSR" }, _infoel); //提示信息 _infoel = $$("div", { "className": "UD_SYWRZFSRS" }, _promptel); $$("div", { "className": "UD_SYWRZFSRS", "innerHTML": "这地方暂时" }, _infoel); $$("div", { "className": "UD_SYWRZFSRS", "innerHTML": " 没有资源哦。" }, _infoel); $$("div", { "className": "UD_SYWRZTSRX UD_SYWRZFSRX", "innerHTML": "Nothing!!" }, _promptel); } /** * 普通视图打印 * @param {array} 需要输出的文件或者文件夹信息 * @param {element} 输出到那个区域 **/ U.Dk.VW.XWPDYX = function (filesinfo, el) { //变量定义区域 var i, //用于循环 _isencryp, //判断文件夹是否加密处理 _date, //文件当前使用时间 _icon, //获取文件的icon样式,包含多种 _selectEl, //当通过url定位进来的后,根据url的文件id定位到指定的文件中 _selectData = US.Disk.DiskDaren["SE"], //url进来需要定位到的元素的文件或者是文件夹信息 _imgicon, //打印给用户看到的文件类型对应的图标的样式,上面的是 _iconel, //图标元素 _imgeel, //输入给用户看到的元素 _infoel, //信息输出元素 _userimg, //用户头像 _permit = U.Dk.HP.WPCZQXHQ()[1], //该文件夹当前查看的用户是否有下载权限 _frag = $$("frag"), //临时panel _userid = US.Disk.UserDisk[1][2] //当前使用用户的id ; //逻辑输出区域 for (i = 0; i < filesinfo.length; i++) { //获取文件的信息 _isencryp = (filesinfo[i]["UserDirectoryEncrypt"] && filesinfo[i]["UserDirectoryEncrypt"] != _userid); //判断文件夹是否是加密属性 _date = U.MT.getYearMonthDay(filesinfo[i]["UserDirectoryAddTime"], "Array"); //获取文件的创建时间数组 返回值包含 [年, 月, 日] _icon = U.Dk.HP.GetIcon(filesinfo[i].UserDirectoryExtendType); //根据文件扩展名,得到图标的样式 //创建一个文件夹图标或者文件图标。 _viewel = $$("div", { "title": filesinfo[i]["UserallDirectoryName"], "className": "UD_SYWRZO", "id": "R" + (filesinfo[i].UserDirectoryID) }, _frag); _viewel.onmousedown = U.M.StopBubble; //onmousedown设置阻止冒泡 _viewel.onmouseup = U.M.apply(_viewel, [[U.Dk.RM.WPYJCD, [_viewel, filesinfo[i], filesinfo, null, _userid]]]); //设置右键按钮的处理 //设置点击事件 if (filesinfo[i].filetype == "1") { //普通文件的处理 _viewel.onclick = U.M.apply(_viewel, [[U.Dk.LE.OpenFileDirectory, [filesinfo[i], _userid]]]); } else { //文件夹的处理,文件夹的处理这里加一个前进后退的添加 _viewel.onclick = U.M.apply(_viewel, [[U.Dk.LE.RecordNav, [[[U.Dk.LE.OpenFileDirectory, [filesinfo[i], _userid]]]]]]); } //如果是导航进来的,则把该导航文件夹变成另外的颜色,以方便用户查看。US.Disk.DiskDaren["SE"];是全局变量,保存了导航进来的文件夹信息。 if (_selectData) { if (_selectData.UserDirectoryID == filesinfo[i].UserDirectoryID || _selectData.UserFilesID == filesinfo[i].UserDirectoryID) { _viewel.className = "UD_SYWRZO UD_SYWRZOI"; _selectEl = _viewel; } } //图标处理 _imgicon = ""; _iconel = $$("div", { "className": "UD_SYWRZOA" }, _viewel); //文件夹处理 if (filesinfo[i].filetype != 1) { //加密的处理 if (_isencryp) { _imgicon = "UD_SYID UD_SYWRZOM"; } //未加密的处理 else { _imgicon = "UD_SYID UD_SYWRZOW"; } } //根据上面根据类型获取的图标输出图标样式 else if (_icon.classname[1]) { _imgicon = "UD_SYID " + _icon.classname[1]; } _imgeel = $$("div", { "className": "UD_SYWRZOS " + _imgicon }, _iconel); //如果图标是空图标,给空图标写入后缀名 if (_icon.name == "文件") { $$("div", { "className": "UD_SYWRZOSZ", "innerHTML": filesinfo[i].UserDirectoryExtendType || "" }, _imgeel); } else if (!_icon.classname[1]) { $$("img", { "onerror": [[U.M.ImgError, ["this", 1]]], "title": "点击查看", "src": U.M.GetImgU(filesinfo[i].UserDirectoryUrl) }, _imgeel); } //目录名输出 _infoel = $$("div", { "className": "UD_SYWRZOZO" }, _iconel); $$("div", { "className": "UD_SYWRZOZ", "innerHTML": filesinfo[i]["UserallDirectoryName"] }, _infoel); //大小 _infoel = $$("div", { "className": "UD_SYWRZOFXJ UTDF" }, _infoel); $$("span", { className: "UD_SYWRZOFXJO", "innerHTML": _date[1] + "-" + _date[2] }, _infoel); $$("span", { className: "UD_SYWRZOFXJT", "innerHTML": U.UP.FileSize(filesinfo[i]["UserDirectorySize"]) }, _infoel); //线面输入文件归属用户的信息 头像和名字 _infoel = $$("div", { "className": "UD_SYWRZOF" }, _viewel); _infoel = $$("div", { "className": "UD_SYWRZOFD" }, _infoel); _userimg = $$("div", { "className": "UD_SYWRZOFDI" }, _infoel); //用户头像输出 $$("img", { "onerror": U.M.ImgError, "title": "点击查看", "src": U.M.GetImgU(filesinfo[i].UserThumbnailImageHead), "onclick": [[U.M.StopBubble], [U.U.I.ViewOtherUserInfo, [filesinfo[i].UserId]]] }, _userimg); //归属用户名输出 $$("div", { "className": "UD_SYWRZOFDN UTDF", "innerHTML": filesinfo[i].UserNickName }, _infoel); //如果用户在该文件夹下有权限显示下载按钮 if (_permit) { $$("div", { "className": "UD_SYWRZOFDX", "title": "下载", "innerHTML": "下载", "onclick": [[U.M.StopBubble], [U.Dk.RE.WPXZWJZJO, [filesinfo[i]["UserDirectoryID"], filesinfo[i]["filetype"] ? "file" : "folder"]]] }, _infoel) } } //追加元素 el.appendChild(_frag); //清空选择元素的全局变量 US.Disk.DiskDaren["SE"] = null; //如果导航进来的。则滚动到该元素的位置。要放最下面。 if (_selectEl) { _selectEl.scrollIntoView(false); } } /** * 详细视图输出 * @param {array} 需要输出的文件或者文件夹信息 * @param {element} 输出到那个区域 **/ U.Dk.VW.XWPDYL = function (filesinfo, el) { //变量定义区域 var i, //用于循环 _isencryp, //判断文件夹是否加密处理 _date, //文件当前使用时间 _icon, //获取文件的icon样式,包含多种 _selectEl, //当通过url定位进来的后,根据url的文件id定位到指定的文件中 _selectData = US.Disk.DiskDaren["SE"], //url进来需要定位到的元素的文件或者是文件夹信息 _iconandnameel, //图标和名字展示的区域 _ischecked, //判断文件是否给选中 _userimg, //用户头像 _permit = U.Dk.HP.WPCZQXHQ()[1], //该文件夹当前查看的用户是否有下载权限 _frag = $$("frag"), //临时panel _userid = US.Disk.UserDisk[1][2] //当前使用用户的id ; //逻辑输出区域 for (i = 0; i < filesinfo.length; i++) { //获取文件的信息 _isencryp = (filesinfo[i]["UserDirectoryEncrypt"] && filesinfo[i]["UserDirectoryEncrypt"] != _userid); //判断文件夹是否是加密属性 _date = U.MT.getYearMonthDay(filesinfo[i]["UserDirectoryAddTime"], "Array"); //获取文件的创建时间数组 返回值包含 [年, 月, 日] _icon = U.Dk.HP.GetIcon(filesinfo[i].UserDirectoryExtendType); //根据文件扩展名,得到图标的样式 //创建一个文件夹图标或者文件图标。 _viewel = $$("div", { "title": filesinfo[i]["UserallDirectoryName"], "className": "UD_SYWRZS UD_SYWRZXO", "id": "R" + (filesinfo[i].UserDirectoryID) }, _frag); _viewel.onmousedown = U.M.StopBubble; //onmousedown设置阻止冒泡 _viewel.onmouseup = U.M.apply(_viewel, [[U.Dk.RM.WPYJCD, [_viewel, filesinfo[i], filesinfo, null, _userid]]]); //设置右键按钮的处理 //设置点击事件 if (filesinfo[i].filetype == "1") { //普通文件的处理 _viewel.onclick = U.M.apply(_viewel, [[U.Dk.LE.OpenFileDirectory, [filesinfo[i], _userid]]]); } else { //文件夹的处理,文件夹的处理这里加一个前进后退的添加 _viewel.onclick = U.M.apply(_viewel, [[U.Dk.LE.RecordNav, [[[U.Dk.LE.OpenFileDirectory, [filesinfo[i], _userid]]]]]]); } //如果是导航进来的,则把该导航文件夹变成另外的颜色,以方便用户查看。US.Disk.DiskDaren["SE"];是全局变量,保存了导航进来的文件夹信息。 if (_selectData) { if (_selectData.UserDirectoryID == filesinfo[i].UserDirectoryID || _selectData.UserFilesID == filesinfo[i].UserDirectoryID) { _viewel.className = "UD_SYWRZS UD_SYWRZXO UD_SYWRZXOO"; _selectEl = _viewel; } } //打印icon和文件名和设置选择状态 _iconandnameel = $$("div", { "className": "UD_SYWRZSO", "style": { "marginLeft": "0px"} }, _viewel); _ischecked = (_UCE.UserFilesID == filesinfo[i].UserDirectoryID || _UCE.UserDirectoryID == filesinfo[i].UserDirectoryID); //判断元素是否给选择状态 if (_ischecked) { _selectEl = _viewel; } //多选的按钮设置 $$("input", { "className": "UD_SYWRZSOI", "checked": _ischecked, "type": "checkbox", "onclick": [[U.M.StopBubble], [U.Dk.VW.XWPDYLXZ, ["this", null, userid]]] }, _iconandnameel); _iconandnameel = $$("div", { "className": "UD_SYWRZSM UTDF" }, _viewel); //设置图标如果有图标设置图标,没有图标的是图片 if (_icon.classname[2]) { $$("span", { "className": _icon.classname[2] + " UD_SYWRZSMI UD_SYID UTDF", "innerHTML": "      " }, _iconandnameel); } else { $$("img", { "onerror": [[U.M.ImgError, ["this", 1]]], "title": "点击查看", "src": U.M.GetImgU(filesinfo[i].UserDirectoryUrl || (US.fs + filesinfo[i].UseFilesServerThumbnailName)) }, _iconandnameel); } //文件名 $$("span", { "className": "UD_SYWRZSMN", "innerHTML": filesinfo[i]["UserallDirectoryName"] }, _iconandnameel); //引用次数,暂时没有功能 $$("div", { "className": "UD_SYWRZSF UD_SYWRZSFO UTDF", "innerHTML": 0 }, _viewel); //归属用户名字 $$("div", { "className": "UD_SYWRZSL UTDF", "innerHTML": filesinfo[i]["UserNickName"] }, _viewel); //文件类别名字,如文件夹、图片等等 $$("div", { "className": "UD_SYWRZSX UTDF", "innerHTML": _icon.name }, _viewel); //文件大小 $$("div", { "className": "UD_SYWRZSD UTDF", "innerHTML": U.UP.FileSize(filesinfo[i]["UserDirectorySize"]) }, _viewel); $$("div", { "className": "UD_SYWRZST UTDF", "innerHTML": _date[0] + "-" + _date[1] + "-" + _date[2] + " " + _date[3] + ":" + _date[4] }, _viewel); } //追加元素 el.appendChild(_frag); //清空选择元素的全局变量 US.Disk.DiskDaren["SE"] = null; //如果导航进来的。则滚动到该元素的位置。要放最下面。 if (_selectEl) { _selectEl.scrollIntoView(false); } } //文件选择 U.Dk.VW.XWPDYLXZ = function (UDOD, UDPD, userid) { var i, _UGE = U.Dk.DiskOperatingSwitch(userid) || US.Disk.UserDisk, _UTF = UDOD.checked; if (UDPD) { if (_$(_UGE[0]).Select({ UserDirectoryID: _UGE[1][1] }, null, 1).length) { $("input", UDPD).addAttrArray({ "checked": _UTF }); $(UDPD).childg().addAttrArray({ "className": "UD_SYWRZS UD_SYWRZXO" + (_UTF ? " UD_SYWRZXOO" : "") }); } } else if (UDOD) { $(UDOD).Parent(2).className = "UD_SYWRZS UD_SYWRZXO" + (_UTF ? " UD_SYWRZXOO" : ""); } } //#endregion //#region 网盘选择框 //弹出网盘选择框 U.Dk.VW.CCWPXZK = function (UDID, UDE, UTP, UFID, UCB) { if (!U.U.L.isLogin(3)) { if (U.Dk.DiskOperatingSwitch(US.userInfo.userid)) { var _UDSD, _UDTD = $$("div", {}); $$("div", { innerHTML: "◀", className: "UD_SYSXZLRSITQO", onclick: [[U.AFB.DrawBack, ["SWP"]]] }, _UDTD); $$("div", { innerHTML: "▶", className: "UD_SYSXZLRSITQO", onclick: [[U.AFB.GoForward, ["SWP"]]] }, _UDTD); _UDSD = U.UI.Form({ resize: U.Dk.VW.CCWPXZKS, top: true, style: { width: "530px", height: "350px" }, id: "UD_WPTC", content: $$("div", { "className": "UD_SYSXZLRSITA" }), title: _UDTD, hst: { style: { "padding": "0 0 0 6px"} } }).content; (UCB || U.Dk.VW.ZBPWPTP)(UDID || US.NU, _UDSD, UDE, UTP, UFID); //查看 } else { U.Alert("等地加载..请稍后"); } } } //弹出框的变化 U.Dk.VW.CCWPXZKS = function (UDOD, UDTD, UDSD) { var _UDCD = $(UDSD).childg()[0]; _UDCD = $(_UDCD).childg(); if (_UDCD.length > 1) { _UDCD.css("height", $(UDSD).height() - _UDCD[1].offsetHeight - 8 + "px", 0); } } //注册网盘前进后退 U.Dk.VW.ZBPWPTP = function (UDID, UDOD, UDE, UTP) { U.AFB.RGoL("SWP"); U.AFB.AddEvent([[U.Dk.VW.PWPTP, [UDID, UDOD, UDE, UTP]]], "SWP"); //注册前进后退 } //打印网盘图片准备 U.Dk.VW.PWPTP = function (UDID, UDOD, UDE, UTP) { var _userid = US.userInfo.userid; UDOD.innerText = ""; U.Dk.RE.GXWPCKXS(_userid, _diskinfo[4][UDID], [UDOD, true], U.M.apply(this, [[U.Dk.VW.PCKBDBL, [UDID, UDOD, UDE, UTP]]])); } //列出所有的备份记录 U.Dk.VW.APWPTP = function (UDID, UDOD, UDE, UTP, UFID) { U.A.Request(US.CD, [US.DB, "UseStudio_Disk", "GetAllBackupFiles", UFID], U.Dk.VW.AsynAPWPTP, [[UDOD, true], UDOD, UDE, UTP, UFID]); } //异步所有的备份信息 U.Dk.VW.AsynAPWPTP = function (r) { var i, _USE, context = r.context, _UDOD = context[1], _UDE = context[2], UTP = context[3], _UFID = context[4], _UAE = r.value; for (i = 0; i < r.value.length; i++) { U.Dk.M.RUS(_UAE[i]); }; U.Dk.VW.PCKBDBL(_UAE, _UDOD, _UDE, UTP, _UFID); } //打印图片 U.Dk.VW.PCKBDBL = function (UDE, UDOD, UCE, UTP, UFID) { var i, _UDID, _UDTD, _UDSD, _UDND, _UTM, _UAE, _UTF, _UTP, _UNE, _UDFD = $$("div", { className: "UD_SYSXZLRSITN" }), _UGE = U.Dk.DiskOperatingSwitch(US.userInfo.userid); //获取用户的云盘资料 //获取目录id if (U.Ut.isString(UDE)) { _UDID = UDE; if (UDE == US.NU) { UDE = _UGE[0].slice(0, 6); } else { UDE = _UGE[4][UDE].Child; _UDID = _UGE[1][1] || US.DG; (UFID) && (UFID ? _UGE[4][UFID].UserDirectoryParentID || UFID : UFID) } } else if (UDE[0] && Guid.isGuid(UTP)) { _UDID = UTP; UDE = _UGE[4][UDE[0].UserDirectoryParentID].Child; }; //打印信息 if (UDE.length) { for (i = 0; i < UDE.length; i++) { _UTM; //= U.UP.IsDF((_UTP = UDE[i].UserDirectoryExtendType))[0] _UTF = _UTP == "folder"; _UAE = U.MT.getYearMonthDay(UDE[i]["UserDirectoryAddTime"], "Array"); _UNE = U.Dk.HP.GetIcon(UDE[i].UserDirectoryExtendType); //U.UP.XWPGYS("." + UDE[i].UserDirectoryExtendType); if ((UTP && UTP.indexOf(UDE[i].UserDirectoryExtendType) > -1) || (((_UTF == "A") || (!UTP || _UTF)) || UTP == "Other")) { if (UTP == "Other") { _UDTD = $$("div", { className: "UD_SYSXZLRSITM", title: UDE[i]["UserallDirectoryName"], onmousedown: UCE.onmousedown || U.M.apply(), onclick: _UTF ? [[U.AFB.AddEvent, [[[U.Dk.VW.PWPTP, [UDE[i].UserDirectoryID, UDOD, UCE, UTP]]], "SWP"]]] : [[UCE.onclick, [UDE[i], UDE[i].UserDirectoryUrl, UDE[i].UserFilesServerName ? US.fs + UDE[i].UserFilesServerName : UDE[i].UserDirectoryUrl]], UCE.isClose ? [U.Dk.VW.EPWPTP, [_UDID, UDOD]] : []] }, _UDFD); _UDSD = $$("div", { className: "UD_SYSXZLRSITMO UTDF" }, _UDTD); $$("div", { className: _UNE.classname[2] + " UD_SYSXZLRSITMOB UD_SYID UTDF" }, _UDSD); $$("div", { className: "UD_SYSXZLRSITMOA", "innerHTML": UDE[i]["UserallDirectoryName"] }, _UDSD); $$("div", { className: "UD_SYSXZLRSITMS UTDF", "innerHTML": U.UP.FileSize(UDE[i]["UserDirectorySize"]) }, _UDTD); $$("div", { className: "UD_SYSXZLRSITMD UTDF", "innerHTML": _UAE[0] + "-" + _UAE[1] + "-" + _UAE[2] + " " + _UAE[3] + ":" + _UAE[4] }, _UDTD); if (UCE.De) { $$("div", { "title": "删除该文件备份", className: "UD_SYSXZLRSITMC UD_SYF_SS UD_SYI", onclick: U.M.apply(null, [[U.M.StopBubble], [UCE.De, [_UDTD, UDE[i]]]]) }, _UDTD); } } else { _UDTD = $$("div", { "className": "UD_SYSXZLRSITO", "title": _UTM ? "" : "", "onclick": _UTF ? [[U.AFB.AddEvent, [[[U.Dk.VW.PWPTP, [UDE[i].UserDirectoryID, UDOD, UCE, UTP]]], "SWP"]]] : [[UCE.onclick, [UDE[i].UserDirectoryUrl, UDE[i].UserFilesServerName ? US.fs + UDE[i].UserFilesServerName : UDE[i].UserDirectoryUrl, null, UDE[i]]], UCE.isClose ? [U.Dk.VW.EPWPTP, [_UDID, UDOD]] : []] }, _UDFD); _UDSD = $$("div", { "className": "UD_SYSXZLRSITOT" }, _UDTD); if (_UTM == "P") { $$("img", { "onerror": [[U.M.ImgError, ["this", 1]]], "src": UDE[i].UserDirectoryUrl }, _UDSD); } else { $(_UDSD).addAttrArray({ "style": { "cssText": U.UP.FFT(_UTP)[1] + ";" }, "className": "UDK_L_DiskGE " + _UDSD.className }) } $$("div", { "className": "UD_SYSXZLRSITOS UTDF", "innerHTML": UDE[i].UserDirectoryName }, _UDTD); } } } (_UDTD) && (UDOD.appendChild(_UDFD)); } if (!_UDTD) { $$("div", { "className": "UD_SYSXZLRSITT", "innerHTML": "该目录暂无指定的内容" }, UDOD); } if (UCE.Bo) { $(_UDFD).css({ height: UDOD.offsetHeight - 37 + "px" }); _UDND = $$("div", { className: "UD_SYSXZLRSITK" }, _UDFD); $$("div", { className: "UD_SYSXZBFCTA UD_SYSXZBFCTAT", title: "取消", "innerHTML": "取消", "onclick": U.M.apply(this, [[U.Dk.VW.EPWPTP, [_UDID, UDOD, UCE.Bo.cl]]]) }, _UDND); $$("div", { className: "UD_SYSXZBFCTA", title: "确定", "innerHTML": "确定", "onclick": U.M.apply(this, [[U.Dk.VW.EPWPTP, [_UDID, UDOD, UCE.Bo.ok]]]) }, _UDND); UDOD.appendChild(_UDND) } } //确定 取消 事件触发 U.Dk.VW.EPWPTP = function (UDID, UDOD, UCB) { $(UDOD).Parent({ usform: "true" }).close(); (UCB) && (UCB(UDID)); } //#endregion //#region 好友和群查看网盘 //好友分享和群网盘分享 U.Dk.VW.XWPDYH = function (UDE, UDOD, userid) { if (!U.U.L.isLogin(3)) { var i, _USN, _UAE, _UDMD, _UDTD, _UDSD, _UDID, _UGID = UDE[0] ? UDE[0].GroupManageID : "", _UGE = U.Dk.DiskOperatingSwitch(userid) || US.Disk.UserDisk, _UDFD = $$("frag"); UDOD = UDOD || $("#UD_SYWRZ", _UGE.pdiv)[0]; UDOD.innerText = ""; UDOD.onscroll = null; (_UGE[1][4] == "Details") && (U.Dk.HP.XWPDYQH($("#UD_SYWRKZ", _UGE.pdiv).Child()[0], 0, _UGE[1][2], true)); //网盘用户切换 if (UDE.length) { setTimeout(function () { for (i = 0; i < UDE.length; i++) { _UGID = UDE[i].GroupManageID; (_UGID && UDE[i].DDC == null) && (UDE[i].DDC = _$(_UGE[0]).Select({ "UserDirectoryParentID": _UGID }).length); _UDTD = $$("div", { "title": (_USN = UDE[i].UserNickName || UDE[i].GroupManageDescript || UDE[i].GroupManageName), "className": "UD_SYWRZO " + (_UGID ? "UD_SYWRZOKO" : "UD_SYWRZOK"), "onclick": _UGID ? [[U.Dk.LE.RecordNav, [[[U.Dk.LE.OpenFileDirectory, [UDE[i], US.userInfo.userid]]]]]] : [[U.D.DT.YYDK, ["Disk", { "userid": UDE[i].UserId, "directoryid": US.FG}]]] }, _UDFD); _UDSD = $$("div", { "className": _UGID ? "UD_SYWRZOQI" : "UD_SYWRZOKI" }, _UDTD); if (_UGID) { _UAE = U.Dk.VW.XWPDYHTX(_UDSD, _UGID); } else { $$("img", { "onerror": U.M.ImgError, "title": "点击查看", "src": U.M.GetImgU(UDE[i].UserThumbnailImageHead) }, _UDSD); } //群头像打印 //好友头像打印 $$("div", { "className": "UD_SYWRZOKN UTDF", "innerHTML": _USN }, _UDTD); $$("div", { "className": "UD_SYWRZOKQ UTDF", "innerHTML": _UGID ? UDE[i].GroupManageRemark || "暂无群简介" : UDE[i].UserIndividualitysignature || "暂无个人简介" }, _UDTD); _UDSD = $$("div", { "className": "UD_SYWRZOKX" }, _UDTD); _UDID = $$("div", { "className": "UD_SYWRZOKXF", "innerHTML": "全部分享" }, _UDSD); $$("span", { "className": "UD_SYWRZOKXFO", "innerHTML": UDE[i].DDC || 0 }, _UDID); _UDID = $$("div", { "className": "UD_SYWRZOKXC" }, _UDSD); if (_UGID) { _UDID.innerHTML = "目前参与的人数:" + _UAE.length; } } UDOD.appendChild(_UDFD); }, 0); } else {//没有好友或者群的提示 var _UDID, _UDSD, _UDTD = $$("div", { "className": "UD_SYWRZT" }); _UDSD = $$("div", { "className": "UD_SYWRZTS" }, _UDTD); $$("div", { "className": "UD_SYWRZTSL", "innerHTML": "!" }, _UDSD); _UDID = $$("div", { "className": "UD_SYWRZTSR" }, _UDSD); $$("div", { "className": "UD_SYWRZTSRS", "innerHTML": "这里暂时没有内容哦!!" }, _UDID); $$("div", { "className": "UD_SYWRZTSRX", "innerHTML": "Nothing!!" }, _UDID); $$("div", { "className": "UD_SYWRZTX", "innerHTML": "返回一步" }, _UDTD); UDOD.appendChild(_UDTD); } _UGE[1][5] = _UGE[1][1] = ""; U.Dk.LL.SCDXWPDH([{ "UserallDirectoryName": _UGID ? "群好友查看" : "好友查看"}], $("#UD_SYWRYB", _UGE.pdiv)[0]); } } //获取群头像 U.Dk.VW.XWPDYHTX = function (UDOD, UGID) { var i, _UPZ, _UDE = _$(US.Friend[3]).Select({ "GroupManageID": UGID }, null, 9), _UDFD = $$("frag"), _UL = _UDE.length, _UAE = [1, 4, 9]; // for (i = 0; i < _UAE.length; i++) { if (_UL <= _UAE[i]) { _UPZ = Math.ceil(_UAE[i] / 3); _UPZ = [(124 - (i * 5)) / _UPZ, 5, _UPZ]; break; } } for (i = 0; i < _UL; i++) { $$("img", { "onerror": U.M.ImgError, "src": U.M.GetImgU(_UDE[i].UserThumbnailImageHead), "style": { "width": _UPZ[0] + "px", "height": _UPZ[0] + "px", "marginLeft": i % _UPZ[2] ? _UPZ[1] + "px" : "", "marginTop": i < _UPZ[2] ? "" : _UPZ[1] + "px"} }, _UDFD); } _UL = Math.ceil(_UL / _UPZ[2]); _UPZ = ((124 - (_UPZ[0] * _UL + (_UPZ[1] * (_UL - 1)))) / 2); $(UDOD).addAttrArray({ "style": { "marginTop": _UPZ + "px", "height": (125 - _UPZ) + "px"} }); UDOD.appendChild(_UDFD); return _UDE; } //#endregion