123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188 |
-
- Namespace.register("U.MD.F.W");
- U.MD.F.W.viewFriend = U.MD.F.W.SLHCK = function (friendinfo) {
-
- if (!(U.MD.U.L.isLogin())) {
- var _childs,
- _friendel;
-
- if (friendinfo) {
-
- if (friendinfo.UserId == US.userInfo.userid) {
- U.alert("无法与本人聊天!");
- }
- else {
-
- _friendel = $("#U_MD_F_H_RCO").find("[tid=" + friendinfo.UserId + "]")[0];
-
- if (_friendel) {
- _friendel.onclick();
- }
-
- else {
- U.MD.F.W.popupFriendsForm(friendinfo);
- }
- }
- }
-
- else {
- _childs = $("#U_MD_F_H_RCO").Child();
- friendinfo = (US.friend.recentcontacts[0] || US.friend.friends[0]);
-
- if (_childs.length) {
- _childs[0].onclick();
- }
-
- else {
-
- if (friendinfo && friendinfo.tf) {
- friendinfo = U.Json.select(US.friend.group, { "GroupManageID": friendinfo.UserId })[0];
- }
-
- U.MD.F.W.popupFriendsForm(friendinfo);
-
- if (!friendinfo || (!friendinfo.UserId && !friendinfo.GroupManageID)) {
- U.MD.F.W.recommendFriend();
- }
- }
- }
- }
- }
- U.MD.F.W.recommendFriend = function () {
- U.MD.F.W.printRecommendFriend(US.userInfo.TJF.slice(0, 8), $("#U_MD_F_H_ZR")[0], 1);
- U.MD.F.W.friendDisplayAndNone([{ "display": "block" }, { "display": "none"}], true);
- }
- U.MD.F.W.printRecommendFriend = function (friendinfo, el, page) {
-
- var _tempel,
- _temponeel,
- _temptwoel,
- _tempthreeel,
- _tempfourel,
- _tempfiveel
- ;
-
- el.innerText = "";
-
- _tempel = $$("div", {
- "className": "U_MD_F_H_ZRO",
- "onmousedown": U.UF.EV.stopBubble
- });
- _temponeel = $$("div", { "className": "U_MD_F_H_ZROS" }, _tempel);
- $$("div", { "className": "U_MD_F_H_ZROSS", "innerHTML": "这里暂时没有任何内容哦" }, _temponeel);
- $$("div", { "className": "U_MD_F_H_ZROSZ", "innerHTML": "Nothing!!" }, _temponeel);
- _temptwoel = $$("div", { "className": "U_MD_F_H_ZROSX" }, _temponeel);
- $$("div", { "className": "U_MD_F_H_ZROSXL", "innerHTML": "可尝试点击左边的头像,或追随一下的用户!" }, _temptwoel);
- $$("div", { "className": "U_MD_F_H_ZROSXR U_Img" }, _temptwoel);
- _temponeel = $$("div", { "className": "U_MD_F_H_ZROX" }, _tempel);
- _temptwoel = $$("div", { "className": "U_MD_F_H_ZROXT" }, _temponeel);
- $$("div", { "className": "U_MD_HomeSXLTTO U_MD_HomeSXROHTO", "innerHTML": "推荐追随" }, _temptwoel);
- $$("div",
- { "className": "U_MD_HomeSXLTTI U_Img",
- "onclick": function () {
- U.MD.F.W.recommendFriend(el, page);
- }
- },
- _temptwoel);
- _temptwoel = $$("div", { "className": "U_MD_F_H_ZROXX" }, _temponeel);
-
- for (i = 0; i < friendinfo.length; i++) {
- _tempthreeel = $$("div", { "className": "U_MD_F_H_ZROXXO", "style": { "marginLeft": "65px"} }, _temptwoel);
- _tempfourel = $$("div", { "className": "U_MD_F_H_ZROXXOS" }, _tempthreeel);
- _tempfiveel = $$("div", { "className": "U_MD_F_H_ZROXXOSL" }, _tempfourel);
- $$("img",
- { "onerror": U.MD.C.imgError,
- "title": "点击查看",
- "onclick": function () {
- U.UF.EV.stopBubble();
- U.MD.U.V.ViewOtherUserInfo(friendinfo[i].UserID);
- },
- "src": U.MD.C.getHeadImage(friendinfo[i].UserThumbnailImageHead),
- "alt": friendinfo[i].UserName
- },
- _tempfiveel);
- $$("div", { "className": "U_MD_F_H_ZROXXOSN U_MD_D_Text_Abbreviation", "innerHTML": friendinfo[i].UserName }, _tempfourel);
- $$("div",
- { "className": "U_MD_F_H_ZROXXOSR",
- "title": "点击追随该用户",
- "innerHTML": "追随",
- "onclick": function () {
- U.MD.F.M.addFriend(friendinfo[i]);
- }
- },
- _tempfourel);
- _tempfourel = $$("div", { "className": "U_MD_F_H_ZROXXOX U_MD_HomeSXZLLZOOX" }, _tempthreeel);
- $$("div", { "className": "U_MD_F_W_S", "innerHTML": "▲" }, _tempfourel);
- $$("div",
- { "className": "U_MD_F_W_X",
- "innerHTML": function () {
- if (friendinfo[i].UserIndividualitysignature) {
- friendinfo[i].UserIndividualitysignature.substring(0, 15)
- } else {
- ("添加我为好友吧,分享我们的信息,让我们距离更近一步").trim()
- }
- }
- },
- _tempfourel);
- }
-
- el.appendChild(_tempel);
- }
- U.MD.F.W.recommendFriend = function (el, page) {
- var _userinfo = US.userInfo,
- _start = page * 4,
- _end = (page + 1) * 4,
- _recommendfriend = _userinfo.TJF.slice(_start, _end)
- ;
-
- if (_recommendfriend.length) {
- U.MD.F.W.printRecommendFriend(_recommendfriend, el, page + 1);
- }
-
- else {
- U.A.Request(US.CD, [US.DB, "UseStudio_Friends", "RecommendFriends", _userinfo.UserId || US.EMPTYGUID, _userinfo.length, _userinfo.length + 4], U.MD.D.H.AsynSYTJ, [el, el, page]);
- }
- }
- U.MD.F.W.asynRecommendFriend = function (r) {
- var _userinfo = US.userInfo,
- _context = r.context,
- _el = _context[1],
- _page = _context[2]
- ;
- r = r.value;
- _userinfo = _userinfo.concat(r);
- U.MD.F.W.printRecommendFriend(r, _el, _page + 1);
- }
- U.MD.F.W.popupFriendsForm = function (friendinfo, el) {
-
- var _close;
- if (!U.MD.U.L.isLogin()) {
- var _friendform = $("#U_MD_F_H_ZA")[0];
-
- if (!_friendform) {
- $("#U_MD_F_H_Z")[0].style.display = "block";
-
- var _window = new U.UF.UI.form("",
- $("#U_MD_F_H_Z")[0],
- {
- "resize": U.MD.F.W.reSize,
- "id": "U_MD_F_H_ZA",
- "style": {
- "display": "block",
- "height": "80%"
- }
- },
- {
- isstretching: false,
- isnarrow: false
- });
- _close = $($($($($(_window.content).Parent()).Parent()).Parent()).Child()[3]).Child()[0];
- _close.onclick = function () {
- U.MD.F.W.friendDisplayAndNone([{ "display": "none" }, { "display": "block"}], { "left": "auto", "right": "0px" });
- }
- }
-
- else {
- U.UF.F.topWindow($("#U_MD_F_H_ZA")[0]);
- }
-
- U.MD.F.W.friendDisplayAndNone([{ "display": "block" }, { "display": "none"}]);
- U.MD.F.W.openFriendChat(friendinfo);
-
- }
- }
- U.MD.F.W.openFriendChat = function (friendinfo) {
- var _friendfromel = $("#U_MD_F_H_ZR")[0],
- _friendchatfrom = $("#U_MD_F")[0],
- _userid = friendinfo.GroupManageID || friendinfo.UserId,
- _chatform = U.MD.F.W.isCreateForm(_userid),
- _isgroup = friendinfo.GroupManageID != null
- ;
- _friendchatfrom.style.display = "block";
- _friendfromel.appendChild(_friendchatfrom);
-
- if (!_chatform) {
- _chatform = U.MD.F.W.createFriendChat(friendinfo);
- }
-
- U.MD.F.W.switchFriendsChat(_chatform, friendinfo);
-
- U.MD.F.H.getFriendOrGroupNews(_userid, function (r) {
- U.MD.F.N.asynReceiveMessages(_isgroup, _chatform[1], r.value);
- }, _isgroup);
- }
- U.MD.F.W.reSize = function () {
- U.MD.F.W.leftSize();
- U.MD.F.W.chatBoxSize($("#U_MD_F_H_ZA")[0], U.MD.F.W.switchFriendsChat.Ele || $("#U_MD_F")[0].childs[0].element[1]);
- }
- U.MD.F.W.leftSize = function () {
-
- var _content = $("#U_MD_F_H_ZA")[0];
- if (_content) {
-
- var _height = _content.offsetHeight,
- _childs = $(".U_MD_F_H_ZL").Child();
-
- $("#U_MD_F_H_ZLZ")[0].style.height = _height - _childs[0].offsetHeight - _childs[1].offsetHeight - 30 + "px";
- }
- }
- U.MD.F.W.chatBoxSize = function (el, chatel) {
- var i,
- _childs,
- _rightchilds = $(chatel).Child(),
- _chatchilds = $(chatel.parentNode).Child(),
- _height = el.offsetHeight,
- _width = chatel.offsetWidth;
-
- for (i = 0; i < _chatchilds.length; i++) {
-
- _childs = $(_chatchilds[i]).Child();
- _childs[0].style.width = _width - _childs[1].offsetWidth + "px";
- _childs[1].style.height = _height - 90 + "px";
-
- $(".U_MD_F_CA", _chatchilds[i]).css("height", _height - 380 + "px");
- }
- }
- U.MD.F.W.friendDisplayAndNone = function (style) {
- var _friendform = $("#U_MD_F_H_ZA"),
- _friendright = $("#U_MD_F_H_R");
- _friendform.addAttrArray({ "style": style[0] });
- _friendright.addAttrArray({ "style": style[1] });
- }
- U.MD.F.W.isCreateForm = function (friendid) {
- var i,
- _friendchatform = $("#U_MD_F")[0];
- if (_friendchatform.childs) {
- for (i = 0; i < _friendchatform.childs.length; i++) {
- if (_friendchatform.childs[i].formid == friendid) {
- return _friendchatform.childs[i].element;
- }
- }
- }
- }
- U.MD.F.W.createFriendChat = function (friendandgroupinfo) {
-
- var _headel,
- _headimageel,
- _chatel,
- _chatleftel,
- _chatheadel,
- _chatheadimageel,
- _chatheadcontentel,
- _chatheadpromptel,
- _chatcontentel,
- _chatcontentnewsel,
- _chatnewsel,
- _chatnewsoneel,
- _chatnewstwoel,
- _chateditel,
- _chatbuttonel,
- _chatbuttonsendel,
- _chatrecordel,
- _buttondiv,
- _userid,
- _name,
- descript,
- _chatformel,
- _chatformchilds,
- _navichilds;
-
- _userid = friendandgroupinfo.GroupManageID ||
- friendandgroupinfo.UserId;
-
- _name = friendandgroupinfo.GroupManageName ||
- friendandgroupinfo.FriendsDescript ||
- friendandgroupinfo.UserNickName;
-
- descript = friendandgroupinfo.GroupManageDescript ||
- friendandgroupinfo.UserIndividualitysignature ||
- "暂时没有填写介绍..";
-
- _chatformel = $("#U_MD_F")[0];
-
- _chatformchilds = $(_chatformel).Child();
-
- _navichilds = $(_chatformchilds[0]).Child();
-
- _headel = $$("div", {
- "className": "U_MD_F_TO",
- "onmousedown": U.UF.EV.stopBubble
- }, _navichilds[0], _navichilds[0].firstChild);
- _headimageel = $$("div", { "className": "U_MD_F_TOI" }, _headel);
- $(_headel).attr("user", _userid);
-
- if (friendandgroupinfo.UserId) {
- $$("img", { "onerror": U.MD.C.imgError,
- "onerror": U.MD.C.imgError,
- "title": "点击查看",
- "src": U.MD.C.getHeadImage(friendandgroupinfo.UserThumbnailImageHead),
- "alt": friendandgroupinfo.UserNickName
- }, _headimageel);
- }
-
- else {
- U.MD.F.printGroupHeadImage(friendandgroupinfo, _headimageel, 4, [25, 25]);
- }
- $$("div", { "className": "U_MD_F_TON U_MD_D_Text_Abbreviation", "innerHTML": _name }, _headel);
- $$("div", {
- "className": "U_MD_F_TOC U_Img",
- "onclick": function () {
- U.MD.F.W.delteFriendChat(_userid, _chatformel, friendandgroupinfo);
- }
- }, _headel);
-
- _chatel = $$("div", { "className": "U_MD_F_NA" });
- _chatformchilds[1].insertBefore(_chatel, _chatformchilds[1].firstChild);
-
- _chatleftel = $$("div", { "className": "U_MD_F_N" }, _chatel);
-
- _chatheadel = $$("div", { "className": "U_MD_F_H" }, _chatleftel);
- _chatheadimageel = $$("div", { "className": "U_MD_F_HH" }, _chatheadel);
- if (friendandgroupinfo.GroupManageID) {
- U.MD.F.printGroupHeadImage(friendandgroupinfo, _chatheadimageel);
- $(_chatheadimageel).addAttrArray({ onclick: function () { U.MD.F.J.groupInfoForm(friendandgroupinfo, _chatleftel); }, title: friendandgroupinfo["GroupManageName"] });
- }
- else {
- $$("img", { "onerror": U.MD.C.imgError,
- "onerror": U.MD.C.imgError,
- "title": "点击查看",
- "onclick": function () {
- U.UF.EV.stopBubble();
- if (U.MD.D.IsUseStudio) {
- U.MD.U.V.ViewOtherUserInfo(_userid);
- }
- },
- "src": U.MD.C.getHeadImage(friendandgroupinfo.UserThumbnailImageHead),
- "alt": friendandgroupinfo.UserNickName
- }, _chatheadimageel);
- }
- _chatheadcontentel = $$("div", { "className": "U_MD_F_HT U_MD_D_Text_Abbreviation" }, _chatheadel);
- $$("div", { "className": "U_MD_F_HTN", "innerHTML": _name }, _chatheadcontentel);
- $$("div", { "className": "U_MD_F_HTC", "innerHTML": (friendandgroupinfo.GroupManageDescript || friendandgroupinfo.UserIndividualitysignature || "暂时没有填写介绍..") }, _chatheadcontentel);
- _chatheadpromptel = $$("div", { "className": "U_MD_F_HG" }, _chatleftel);
- $$("div", { "className": "U_MD_F_GI U_Img" }, _chatheadpromptel);
- $$("div", { "className": "U_MD_F_GC", "innerHTML": "交谈中请勿轻信汇款、中奖信息、陌生电话..." }, _chatheadpromptel);
- $$("div", { "style": {
- "width": "10px",
- "height": "10px",
- "background-image": "url('/img/YS2017.png')",
- "display": "inline-block",
- "background-repeat": "no-repeat",
- "background-position": "-817px -482px",
- "float": "right",
- "margin": "8px"
- },
- "onclick": function () { _chatheadpromptel.style.visibility = "hidden"; }
- }, _chatheadpromptel);
-
- _chatcontentel = $$("div", { "className": "U_MD_F_CA" }, _chatleftel);
- _chatcontentnewsel = $$("div", { "className": "U_MD_F_C" }, _chatcontentel);
-
- _chatnewsel = $$("div", { "className": "U_MD_F_D", "style": { "position": "relative"} }, _chatleftel);
- _chatnewsoneel = $$("div", { "className": "U_MD_F_DA" }, _chatnewsel);
- _chatnewstwoel = $$("div", { "className": "U_MD_F_DT" }, _chatnewsoneel);
- _chateditel = $$("div", { "className": "U_MD_F_DC", "contentEditable": "true" }, _chatnewsoneel);
- $$("div", { "className": "U_MD_F_DJ U_Img" }, _chatnewsoneel);
-
- _chatface = $$("div", { "style": { "margin-top": "-194px", "margin-left": "14px"} }, _chatformel);
- _chatbuttonel = $$("div", { "className": "U_MD_F_X" }, _chatleftel);
- _chatbuttonsendel = $$("div", {
- "className": "U_MD_F_XE",
- "innerHTML": "发送(Ctrl+Enter)",
- "style": {
- "marginRight": "15px"
- },
- "onclick": function () {
- U.MD.F.H.sendFriendOrGroupChatMessage(friendandgroupinfo, _chateditel, _chatcontentnewsel, (friendandgroupinfo.UserId == null));
- }
- }, _chatbuttonel);
- $$("div", {
- "className": "U_MD_F_XC",
- "innerHTML": "关闭(n)",
- "onclick": function () {
- U.MD.F.W.friendDisplayAndNone([{ "display": "none" }, { "display": "block"}], { "left": "auto", "right": "0px" });
- }
- }, _chatbuttonel);
-
- _chatrecordel = $$("div", { "className": "U_MD_F_L" }, _chatel);
- $$("div", { "className": "U_MD_F_LA" }, _chatrecordel);
- $$("div", { "className": "U_MD_F_LB" }, _chatrecordel);
-
- _buttondiv = $$("div", {
- "className": "U_MD_F_DTF U_MD_F_W_Face",
- "title": "发送表情",
- "style": {
- "margin": "0",
- "position": "relative",
- "background": "url(/img/face.png) no-repeat 0",
- "background-size": "20px"
- }
- }, _chatnewstwoel);
- $$("button", {
- "style": {
- "opacity": "0",
- "width": "28px",
- "height": "28px"
- },
- "onmousedown": function () {
- U.MD.UI.face(_chatface, _chateditel);
- },
- "onclick": U.UF.EV.stopBubble
- }, _buttondiv);
- _chatheadimageel = $$("div", {
- "className": "U_MD_F_UploadPng U_Img",
- "title": "添加文件",
- "style": { "cssText": "margin-left:5px" },
- "onclick": function (e) {
- if ($(".U_MD_F_UploadInput")[0]) {
-
- $(".U_MD_F_UploadInput").remove();
- return;
- }
- var _firendinfo = friendandgroupinfo;
- var _div = $$("div", { "className": "U_MD_F_UploadInput", style: { "cssText": "width:154px;float:none;position:absolute;background-color:#fff;z-Index:999;border:1px solid #ccc;height:80px;text-align:center;top:-78px;left:-12px" }, "fiendInfo": friendandgroupinfo, "place": _chatcontentnewsel }, _chatheadimageel);
- var _local = $$("div", { "className": "U_MD_F_LoaclChose", innerHTML: "选择本地上传文件", style: { "cssText": "position:relative;float:none;width:100%;height:32px;margin:8px 0 0 0;line-height:32px" },
- onclick: function () {
- var _groupid,
- _ancestors,
- _directoryid = US.disk.Disks[US.userInfo.userid].directoryid,
- _dirinfo = U.Json.select(US.disk.Disks[US.userInfo.userid].directoryOrFiles, { "UserDirectoryID": _directoryid })[0];
-
- _ancestors = U.MD.DK.C.getAncestors(_dirinfo, US.disk.Disks[US.userInfo.userid]);
-
- if (_ancestors[_ancestors.length - 1].UserDirectoryID == US.FTPFOLDERID) {
- _groupid = US.disk.Disks[US.userInfo.userid].userInfo.UserId;
- }
-
- else {
- _groupid = _ancestors[_ancestors.length - 1].GroupID || "";
- }
- U.MD.UI.upload(
- "http://main.1473.cn/USUpfile.ashx?typename=UploadFlashfile&DirectoryId=" + _directoryid + "&Encrypt=" + _groupid + "&UserId=" + US.userInfo.userid + "&IsF=true",
-
- function (r, fileinfo) {
- var _data = r.data
- ;
-
- try {
- _data = eval("0," + _data);
- }
- catch (e) { }
- var _fileInfo = {
- "UserallDirectoryName": fileinfo.name,
- "UserDirectoryExtendType": U.UF.UP.getFileNameAndExtension(fileinfo.name)[1],
- "UserDirectorySize": _data[3],
- "UserDirectoryID": _data[2],
- "UserDirectoryUrl": _data[1]
- }
- U.MD.F.W.printMessageContent(_fileInfo.UserDirectoryExtendType, _fileInfo, _chatcontentnewsel, true, _firendinfo);
- },
-
- function (md5, fileinfo, cb) {
-
- U.A.Request(US.AUTH, ["IfFileExistInsertDB", US.userInfo.userid, _directoryid, _groupid, fileinfo.size, md5, U.UF.UP.getFileNameAndExtension(fileinfo.name)[1], fileinfo.name],
-
- function (r) {
- var _userid = US.userInfo.userid;
- r = r.value;
-
- try {
- r = eval(r)[0];
- }
- catch (e) { }
-
- if (r) {
- var _fileInfo = {
- "UserallDirectoryName" : r.UserDirectoryName.addEllipsis(20),
- "UserDirectoryExtendType" : U.UF.UP.getFileNameAndExtension(r.UserDirectoryName)[1],
- "UserDirectorySize":r.UserDirectorySize,
- "UserDirectoryID":r.UserDirectoryID,
- "UserDirectoryUrl": r.UserDirectoryUrl
- }
- U.MD.F.W.printMessageContent(_fileInfo.UserDirectoryExtendType, _fileInfo, _chatcontentnewsel, true, _firendinfo);
- cb(false);
- }
-
- else {
- cb(true);
- }
-
- });
- });
-
- U.UF.EV.stopBubble()
-
- $(".U_MD_F_UploadInput").remove();
- }
- }, _div);
- var _localinput = $$('input', { 'type': 'file', style: { "cssText": "position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0;" },
- onchange: function () {
- if (this.files.length) {
- var _range = U.UF.E.getRangeAt();
- U.UF.UP.inputUpload([this], 'http://main.1473.cn/USUpfile.ashx?typename=UseStudioEditor', function (r) {
- var _file, _filetype, _input = r.context[0];
- var _imgtype = /.*(jpg|png|gif|jpeg|JPG|PNG|GIF|JPEG|bmp|BMP)$/;
- var _filearray = [];
- if (Object.prototype.toString.call(r.value[0]) != "[object Array]") {
- _filearray = [r.value];
- } else {
- _filearray = r.value;
- }
- var _el, _frag = $$('frag');
- for (i = 0; i < _filearray.length; i++) {
- _file = _input.files[i];
- _filetype = _file.name.substring(_file.name.lastIndexOf('.') + 1, _file.name.length);
- if (_filetype.match(_imgtype)) {
- _el = $$("div", {}, _frag); ;
- $$('span', { innerHTML: ' <img src="http://fs.1473.cn/' + _filearray[i][0] + '">' }, _el);
- }
- else {
- _el = U.UF.E.attachment.create(_file, _filearray[i][2], _filetype);
- $(_el).appendTo(_frag);
- }
- }
- var _data = [_div.fiendInfo, _div.place]
- var _filedata = { 'UserallDirectoryName': _file.name, 'UserDirectoryExtendType': _filetype, 'UserDirectorySize': _file.size, 'UserDirectoryID': r.value[2], 'UserDirectoryUrl': r.value[0] };
- U.MD.F.W.printMessageContent(_filetype, _filedata, _data[1], true, _data[0]);
- }, [this]);
- }
- }
- }, _local);
- var _disk = $$("div", { "className": "U_MD_F_DiskChose", innerHTML: "选择网盘上传文件", style: { "cssText": "float:none;width:100%;height:32px;margin:0 0 0 0;line-height:32px" },
- onclick: function () {
-
- U.UF.EV.stopBubble()
- U.MD.DK.VW.choseFile(function (data) {
- var _data = [$('.U_MD_F_UploadInput')[0].fiendInfo, $('.U_MD_F_UploadInput')[0].place]
-
- U.MD.F.W.printMessageContent(data.UserDirectoryExtendType, data, _data[1], true, _data[0]);
-
- $(".U_MD_F_UploadInput").remove();
- })
- }
- }, _div);
- }
- }, _chatnewstwoel);
- if (friendandgroupinfo.GroupManageID) {
- $$("div", {
- "className": "U_MD_F_DTS U_Img",
- "title": "网盘提交",
- "onclick": function () {
- U.MD.D.I.openApplication("disk",
- {
- "userid": US.userInfo.userid,
- "directoryid": friendandgroupinfo.GroupManageID
- });
- }
- }, _chatnewstwoel);
- }
- $$("div", {
- "className": "U_MD_F_DTJ U_Img",
- "title": "聊天记录",
- "onclick": function () {
- U.MD.F.H.viewFriendsChatRecords(_chatrecordel, friendandgroupinfo, 1, (friendandgroupinfo.UserId == null));
- }
- }, _chatnewstwoel);
- _chateditel.onkeydown = function () {
- if (event.ctrlKey && (event.keyCode == 13 || event.keyCode == 10)) {
- _chatbuttonsendel.onclick();
- U.UF.EV.stopDefault();
- }
- };
- U.UF.E.initEditor(_chateditel);
- _headel.onclick = function () {
- U.MD.F.W.switchFriendsChat([_headel, _chatel], friendandgroupinfo);
- };
-
-
-
- if (_chatformel.childs == null) {
- _chatformel.childs = [];
- }
- _chatformel.childs.unshift({ "formid": _userid, "element": [_headel, _chatel], "info": friendandgroupinfo });
- return _chatformel.childs[0].element;
- }
- U.MD.F.W.switchFriendsChat = function (elements, friendorgroupinfo) {
- var i,
- _friendchatel,
- _topleftbottom,
- _chatel = $(elements[1]).Parent(2),
- _topbottom = $($(_chatel).Child()[0]).Child()[2],
- _chatchilds = $(_chatel)[0].childs;
-
- if (_topbottom.children[0]) {
- _topbottom.children[0].remove();
- }
-
- for (i = 0; i < _chatchilds.length; i++) {
- _friendchatel = _chatchilds[i].element;
- if (_friendchatel[0] == elements[0] && _friendchatel[1] == elements[1]) {
- U.MD.F.W.switchFriendsChat.Ele = elements[1];
- $(elements[0]).addClass("U_MD_F_TOT");
- $(elements[1]).css("display", "block");
-
- $(".U_MD_F_DC", elements[1])[0].focus();
- }
- else {
- $(_friendchatel[0]).removeClass("U_MD_F_TOT");
- $(_friendchatel[1]).css("display", "none");
- }
- }
-
- _topbottom.onclick = function () {
- U.UF.EV.stopBubble();
- U.MD.F.R.popupRightCornerMenu(friendorgroupinfo, _topbottom);
- $("#U_MD_F_Add_O")[0].style.display="none";
- var _friendmenuel = $('#U_MD_F_G_Group')[0],
- _child = $(_friendmenuel).Child();
-
- $(_friendmenuel).css({ "display": "block", "zIndex": "999" });
- U.UF.C.rightClickMenuLocation(_friendmenuel);
- new_element=document.createElement("script");
- new_element.setAttribute("type","text/javascript");
- new_element.setAttribute("src","http://friend.1473.cn/js/Friend/Add.js");
- document.body.appendChild(new_element);
-
- _child[0].onclick = function () { $("#U_MD_F_Add_O")[0].style.display="block"; };
- _child[1].onclick = function () { $(".U_MD_F_Add_B")[0].click(); };
-
- $(document).bind("click", function () {
- $(_friendmenuel)[0].style.display = "none";
- })
- if($(".U_MD_F_Add_B")[0].innerHTML=="解散该群"){
- _child[1].innerHTML="解散该群";
- }else{
- _child[1].innerHTML="退出该群";
- }
- };
- if (friendorgroupinfo.UserId) {
- _topleftbottom = "个人信息";
- } else {
- _topleftbottom = "创建群";
- }
- _topbottom.title = _topleftbottom;
-
- U.MD.F.W.chatBoxSize($(elements[1]).Parent(7), elements[1]);
- }
- U.MD.F.W.delteFriendChat = function (friendid, el) {
- var i, j,
- _chatinfo,
- _elements,
- _childs = $(el)[0].childs;
- U.UF.EV.stopBubble();
-
- if (_childs.length == 1) {
- U.MD.F.W.friendDisplayAndNone([{ "display": "none" }, { "display": "block"}], { "left": "auto", "right": "0px" });
- }
- else {
-
- for (i = 0; i < _childs.length; i++) {
-
- if (_childs[i].formid == friendid) {
- _elements = _childs[i]["element"];
- for (j = 0; j < _elements.length; j++) {
- $(_elements[j]).remove();
- }
- _childs.splice(i, 1);
-
- if (_elements[0].className.indexOf("U_MD_F_TOT") > -1) {
-
- _chatinfo = _childs[i] || _childs[i - 1];
-
- U.MD.F.W.switchFriendsChat(_chatinfo["element"], _chatinfo["info"]);
- }
- break;
- }
- }
- }
- }
- U.MD.F.W.printFriendChatMessage = function (el, newsinfo, issend) {
- var i,
- _date,
- _chatcontentel,
- _chatcontentoneel,
- _chatcontentwordsel,
- _chatel = el.parentNode,
- _frag = $$("frag");
- if (issend) {
- _stylearray = ["U_MD_F_CT", " U_MD_F_CTLC U_MD_F_GCTLC", " U_MD_F_COLCOO", " U_MD_F_CTTO", " "];
- } else {
- _stylearray = ["U_MD_F_CO", "", " U_MD_F_COLCOT", " U_MD_F_CTT"];
- }
-
- var _el;
- for (i = 0; i < newsinfo.length; i++) {
- _date = U.UF.D.getYearMonthDay(newsinfo[i]["MessageSendTime"]) || U.UF.D.getYearMonthDay(newsinfo[i]["GroupMessageSendTime"]) || newsinfo[i]["Time"], "Array";
- _contentBox = $$("div", { "style": { "margin": " 0 10px"} }, _frag);
- _time = $$("div", { "className": "U_MD_F_COTO U_MD_F_CTO", "style": { "margin": " 0 10px", "text-align": "center", "color": "#aaaaaa", "font-size": "13px" }, "innerHTML": (_date) }, _contentBox);
- _contentel = $$("div", { "className": _stylearray[0], "title": newsinfo[i].GroupMessageSendUsername || newsinfo[i].MessageDescript || newsinfo[i].Name }, _contentBox);
- _content = $$("div", {}, _contentel);
- _contentoneel = $$("div", { "className": "U_MD_F_COLC" + _stylearray[1] }, _content);
- _contentimgel = $$("img",
- {
- "onerror": U.MD.C.imgError,
- "title": "点击查看",
- "onclick": function () {
- U.MD.U.V.ViewOtherUserInfo(newsinfo[i].GroupMessageSendUser || newsinfo[i].UserId);
- },
- "src": U.MD.C.getHeadImage((newsinfo[i].IMG || newsinfo[i].UserThumbnailImageHead)),
- "className": "U_MD_F_COLCI"
- },
- _contentel);
-
- if (newsinfo[i].MessageIsVerify == 6) {
- var _filedata = JSON.parse(newsinfo[i].MessageContent),
-
- _filebox = $$('div', { style: { cssText: 'position:relative; padding: 10px; background-color: #fff; border:1px solid silver; overflow:hidden; cursor: pointer;'} }, _contentoneel)
- U.MD.F.W.printFileContent(_filedata, _filebox)
- } else {
- _el = newsinfo[i]["MessageContent"] || newsinfo[i]["GroupMessageContent"] || newsinfo[i]["Content"]
- if (U.UF.C.isElement(_el)) {
- _contentwordsel = $$("div", { "className": "U_MD_F_COLCO " + _stylearray[2] }, _contentoneel);
- $(_el).appendTo(_contentwordsel);
- } else {
- _contentwordsel = $$("div", { "className": "U_MD_F_COLCO " + _stylearray[2], "innerHTML": _el }, _contentoneel);
- }
- }
- if (issend) {
- _contentoneimgel = $$("div", { "style": { "width": "6px", "height": "10px", "background-image": "url('/img/YS2017.png')", "display": "inline-block", "background-repeat": "no-repeat", "background-position": "-984px -344px", "margin": "10px 4px 10px 0px"} }, _content);
- _content.style.float = "right";
- _contentel.insertBefore(_contentimgel, _content);
- _contentimgel.style.float = "right";
- _content.style.marginRight = "8px";
- } else {
- _contentoneimgel = $$("div", { "style": { "width": "6px", "height": "10px", "background-image": "url('/img/YS2017.png')", "display": "inline-block", "background-repeat": "no-repeat", "background-position": "-1004px -344px", "margin": "10px 0px 10px 4px"} }, _content);
- _content.style.float = "left";
- _contentel.insertBefore(_contentimgel, _content);
- }
- }
- el.appendChild(_frag);
-
- _chatel.scrollTop = _chatel.scrollHeight - _chatel.offsetHeight;
- }
- U.MD.F.W.printGroupChatMessage = function (el, newsinfo, issend) {
- var i,
- _date,
- _contentel,
- _contentoneel,
- _contentwordsel,
- _contentimgel,
- _contentnameel,
- _stylearray,
- _chatcontentel = el.parentNode,
- _frag = $$("frag");
-
- if (issend) {
- _stylearray = ["U_MD_F_CT", " U_MD_F_CTLC U_MD_F_GCTLC", " U_MD_F_COLCOO", " U_MD_F_CTTO", " "];
- }
- else {
- _stylearray = ["U_MD_F_CO", "", " U_MD_F_COLCOT", " U_MD_F_CTT"];
- }
-
- for (i = 0; i < newsinfo.length; i++) {
- var _isFile = true;
-
-
-
-
-
-
-
-
- _date = newsinfo[i]["Time"] || U.UF.D.getYearMonthDay(newsinfo[i]["GroupMessageSendTime"]), "Array";
- _contentBox = $$("div", { "style": { "margin": " 0 10px"} }, _frag);
- _time = $$("div", { "className": "U_MD_F_COTO U_MD_F_CTO", "style": { "margin": " 0 10px", "text-align": "center", "color": "#aaaaaa", "font-size": "13px" }, "innerHTML": (_date) }, _contentBox);
- _contentel = $$("div", { "className": _stylearray[0], "title": newsinfo[i].GroupMessageSendUsername || newsinfo[i].MessageDescript || newsinfo[i].Name }, _contentBox);
- _content = $$("div", {}, _contentel);
- _contentoneel = $$("div", { "className": "U_MD_F_COLC" + _stylearray[1] }, _content);
- _contentimgel = $$("img",
- {
- "onerror": U.MD.C.imgError,
- "title": "点击查看",
- "onclick": function () {
- U.MD.U.V.ViewOtherUserInfo(newsinfo[i].GroupMessageSendUser || newsinfo[i].UserId);
- },
- "src": U.MD.C.getHeadImage((newsinfo[i].IMG || newsinfo[i].UserThumbnailImageHead)),
- "className": "U_MD_F_COLCI"
- },
- _contentel);
- if (_isFile) {
- _contentwordsel = $$("div", { "className": "U_MD_F_COLCO " + _stylearray[2], "innerHTML": newsinfo[i]["Content"] || newsinfo[i]["GroupMessageContent"] }, _contentoneel);
- } else {
-
- var _filedata = newsinfo[i].Content,
- _filebox = $$('div', { style: { cssText: 'position:relative; padding: 10px; background-color: #fff; border:1px solid silver; overflow:hidden; cursor: pointer;' }, onclick: U.UF.C.closure(function (i, filedata) {
- var _type = '';
- switch (filedata.fileType) {
- case "uw": _type = 'word'; break;
- case "ue": _type = 'excel'; break;
- }
- U.A.Request(US.CD, ([US.DB, "UseStudio_Disk", "GetFileById", filedata.fileID]), function (r) {
- U.MD.D.I.openApplication(_type, r.value[0])
- });
- }, [i, _filedata])
- }, _contentoneel)
- $$('span', { className: 'U_MD_DK_RZOS U_MD_DK_Img U_MD_DK_RZOD' }, _filebox);
- $$('span', { style: { cssText: 'vertical-align: top; padding-left: 20px; padding-right: 40px;' }, innerText: _filedata.fileName + '.' + _filedata.fileType }, _filebox);
- $$('div', { style: { cssText: 'position: absolute; right: 10px; bottom: 10px;' }, innerText: '查看' }, _filebox)
- }
- if (issend) {
- _contentoneimgel = $$("div", { "style": { "width": "6px", "height": "10px", "background-image": "url('/img/YS2017.png')", "display": "inline-block", "background-repeat": "no-repeat", "background-position": "-984px -344px", "margin": "10px 4px 10px 0px"} }, _content);
- _content.style.float = "right";
- _contentel.insertBefore(_contentimgel, _content);
- _contentimgel.style.float = "right";
- _content.style.marginRight="8px";
- } else {
- _contentoneimgel = $$("div", { "style": { "width": "6px", "height": "10px", "background-image": "url('/img/YS2017.png')", "display": "inline-block", "background-repeat": "no-repeat", "background-position": "-1004px -344px", "margin": "10px 0px 10px 4px"} }, _content);
- _content.style.float = "left";
- _contentel.insertBefore(_contentimgel, _content);
- }
-
-
- }
-
- el.appendChild(_frag);
-
- _chatcontentel.scrollTop = _chatcontentel.scrollHeight - _chatcontentel.clientHeight;
- }
- U.MD.F.W.addFile = function (friendinfo, el, thumbnail, fileurl, fileinfo) {
-
- var _tempel,
- _temponeel,
- _temptwoel,
- _tempthreeel,
- _isgroup = friendinfo.UserId == null;
-
- if (U.UF.UP.isImg(fileinfo.UserDirectoryExtendType)) {
-
- _tempel = $$("div", {});
-
- $$("img", { "onerror": U.MD.C.imgError, "className": "U_MD_F_CI", "src": U.MD.C.getHeadImage(thumbnail), "title": U.MD.C.getHeadImage(fileurl) },
- _messageel).onclick = "U.UF.EV.stopBubble();U.MD.I.Img(US.userInfo, { 'Thm': '" + fileurl + "', 'Img': '" + fileurl + "'})";
-
- U.MD.F.H.sendFriendOrGroupChatMessage(friendinfo, _messageel, el, _isgroup, true);
- }
-
- else {
- _tempthreeel = $$("div");
-
- _tempel = $$("div", { "className": "U_MD_F_F" }, _tempthreeel);
- _temponeel = $$("div", { "className": "U_MD_F_FS" }, _tempel);
- _temptwoel = $$("div", { "className": "U_MD_F_FSS" }, _temponeel);
- $$("div", { "innerHTML": fileinfo["UserDirectoryExtendType"] }, _temptwoel);
- _temptwoel = $$("div", { "className": "U_MD_F_FSX" }, _temponeel);
- $$("div", { "className": "U_MD_F_FSXN", "innerHTML": fileinfo["UserallDirectoryName"] }, _temptwoel);
- $$("div", { "className": "U_MD_F_FSXS", "innerHTML": "已成功发送" }, _temptwoel);
- _temponeel = $$("div", { "className": "U_MD_F_FX" }, _tempel);
-
- if (U.MD.D.IsUseStudio) {
- _tempel.onclick = "U.UF.EV.stopBubble();YDHJH('disk', ['" + fileinfo.UserId + "', '" + fileinfo.UserDirectoryID + "'])"
- _temptwoel = $$("div", { "innerHTML": "打开我的云盘", "title": "打开我的云盘" }, _temponeel);
- _temptwoel.onclick = "U.UF.EV.stopBubble();YDHJH('disk', ['" + fileinfo.UserId + "','" + fileinfo.UserDirectoryParentID + "'])";
- _temptwoel = $$("div", { "innerHTML": "打开", "title": "打开" }, _temponeel);
- _temptwoel.onclick = "U.UF.EV.stopBubble();YDHJH('disk', ['" + fileinfo.UserId + "','" + fileinfo.UserDirectoryID + "'])";
- }
-
- else {
- _temptwoel = $$("div", { "innerHTML": "下载", "title": "下载" }, _temponeel);
- _temptwoel.onclick = "U.UF.EV.stopBubble();U.UF.UP.download('" + fileinfo.UserallDirectoryName + "','" + fileinfo.UserFilesServerName + "')";
- }
-
- U.MD.F.H.sendFriendOrGroupChatMessage(friendinfo, _tempthreeel, el, _isgroup, true);
- }
- }
- U.MD.F.W.rightFormlocation = function () {
- $("#U_MD_F_H_R").addAttrArray({
- "style":
- {
- "top": (US.height - 530) / 2,
- "right": "0px"
- }
- });
- }
- U.MD.F.W.printMessageContent = function (type, data, parent, send, friend) {
- var _content = $$('div', {});
- var _folder = $$("div", { style: { "cssText": "padding:8px;background:#fff;border-radius:2px;position:relative"} }, _content);
-
- var _message = {
- fileName: data.UserallDirectoryName,
- fileType: data.UserDirectoryExtendType,
- fileSize: data.UserDirectorySize,
- fileID: data.UserDirectoryID,
- fileUrl: data.UserDirectoryUrl,
- filetype: fileType = "folder" ? 1 : 0,
- UserDirectoryExtendType: data.UserDirectoryExtendType,
- UserDirectoryID: data.UserDirectoryID,
- UserallDirectoryName: data.UserallDirectoryName
- };
- U.MD.F.W.printFileContent(_message, _folder);
-
- var _newsinfo = [{
- "UserId": US.userInfo.userid,
- "Time": new Date().getHours() + ":" + new Date().getMinutes() + ":" + new Date().getSeconds(),
- "Content": _content,
- "IMG": US.userInfo.UserThumbnailImageHead,
- "Name": US.userInfo.UserNickName
- }];
-
- if (send) {
-
- U.A.Request(US.CD, [US.DB, "UseStudio_Friends", "SentMessageToFriend", US.userInfo.userid, friend.UserId, US.userInfo.UserNickName, JSON.stringify(_message), 6, false], function () { });
- }
-
- U.MD.F.W.printFriendChatMessage(parent, _newsinfo, true);
- }
- U.MD.F.W.printFileContent = function (data, parent) {
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- switch (data.fileType) {
- case "folder":
- var _content = $$("div", { style: { "cssText": "width:100%"} }, parent);
- var _icon = $$("div", { "className": "U_MD_DK_RZOS U_MD_DK_Img U_MD_DK_RZOW", style: { "cssText": "float:none;display:inline-block;"} }, _content);
- var _titile = $$("div", { "className": "", style: { "cssText": "display:inline-block;margin:0px 5px;width:155px;vertical-align:top;"} }, _content);
- var _titileContent = $$("div", { innerHTML: data.fileName, style: { "cssText": "color:#000"} }, _titile);
- var _titileSize = $$("div", { innerHTML: "(" + data.fileSize + "MB)", style: { "cssText": "color:#aaaaaa;font-size:10px;line-height:10px"} }, _titile);
- var _open = $$("div", { onclick: function () { U.MD.DK.LE.openFileDirectory(data, US.userInfo.userid) }, innerHTML: "打开", style: { "cssText":"color:#429bfe;margin-top:-20px;text-align: right;cursor: pointer;"} }, parent);
- break;
- case "UW": case "txt": case "html": case "uw":
- var _content = $$("div", { style: { "cssText": "width:100%"} }, parent);
- var _icon = $$("div", { "className": "U_MD_DK_RZOD U_MD_DK_RZOS", style: { "cssText": "float:none;display:inline-block;"} }, _content);
- var _titile = $$("div", { "className": "", style: { "cssText": "display:inline-block;margin:0px 5px;width:155px;vertical-align:top;"} }, _content);
- var _titileContent = $$("div", { innerHTML: data.fileName, style: { "cssText": "color:#000"} }, _titile);
- var _titileSize = $$("div", { onclick: function(){U.MD.DK.LE.openFileDirectory(data, US.userInfo.userid)}, innerHTML: "查看", style: { "cssText": "color:#429bfe;margin-top:-20px;text-align: right;cursor: pointer;"} }, parent);
- break;
- case "jpg": case "png":
- _img = $$("img", { "onerror": U.MD.C.imgError, "src": "http://fs.1473.cn/" + data.fileUrl, "style": { "cssText": "width:100%;max-width:300px;min-width:30px;min-height:30px"} }, parent);
- break;
- case "mp4":
- if (parent.parentElement.className == "U_MD_F_LO") {
- var _content = $$("div", { style: { "cssText": "width:100%"} }, parent);
- var _icon = $$("div", { "className": "U_MD_DK_RZOS U_MD_DK_VIDEO", style: { "cssText": "float:none;display:inline-block;width:40px;height:40px;background-image:url('/img/YS2017.png');background-repeat:no-repeat;background-position:-1081px -527px;"} }, _content);
- var _titile = $$("div", { "className": "", style: { "cssText": "display:inline-block;margin:0px 5px;width:155px;vertical-align:top;"} }, _content);
- var _titileContent = $$("div", { innerHTML: data.fileName, style: { "cssText": "color:#000"} }, _titile);
- var _titileSize = $$("div", { onclick: function () { U.MD.DK.LE.openFileDirectory(data, US.userInfo.userid) }, innerHTML: "查看", style: { "cssText": "color:#429bfe;margin-top:-20px;float:right"} }, parent);
- } else {
- var _video = $$("img", { "onerror": U.MD.C.imgError, "src": "http://fs.1473.cn/" + data.fileUrl, "style": { "cssText": "width:100%;max-width:300px;"} }, parent),
- _videoText = $$("div", {}, parent),
- _videoStart = $$("div", { "style": { "width": "97px", "height": "96px", "background-image": "url('/img/YS2017.png')", "display": "inline-block", "background-repeat": "no-repeat", "background-position": "-1015px -362px", "position": "absolute", "top": "25%", "left": "35%"} }, _videoText),
- _videoName = $$("div", { "innerHTML": data.fileName, "style": { "cssText": "color:white;font-size:16px;position: absolute;top: 137px;margin-left: 10px;"} }, _videoText),
- _videoSize = $$("span", { "innerHTML": data.fileSize, "style": { "cssText": "color:#d4d3d1;font-size:14px;position: absolute;top: 155px;margin-left: 10px;"} }, _videoText),
- _videoState = $$("span", { "innerHTML": "已发送", "style": { "cssText": "color:#d4d3d1;font-size:14px;position: absolute;top: 155px;right:20px"} }, _videoText);
- }
- break;
- default:
- var _content = $$("div", { style: { "cssText": "width:100%"} }, parent);
- var _icon = $$("div", { "className": "U_MD_DK_RZOS U_MD_DK_Img downel_content_a_r", style: { "cssText": "float:none;display:inline-block;"} }, _content);
- var _iconContent = $$("div", { "className": "U_MD_DK_RZOSZ", 'innerHTML': data.fileType }, _icon);
- var _titile = $$("div", { "className": "", style: { "cssText": "display:inline-block;margin:0px 5px;width:155px;vertical-align:top;"} }, _content);
- var _titileContent = $$("div", { innerHTML: data.fileName, style: { "cssText": "color:#000"} }, _titile);
- var _titileSize = $$("div", { innerHTML: "(" + data.fileSize + "MB)", style: { "cssText": "color:#aaaaaa;font-size:10px;line-height:10px"} }, _titile);
- var _open = $$("div", { innerHTML: "打开", style: { "cssText": "color:#429bfe;margin-top:-20px;text-align: right;cursor: pointer;"} }, parent);
- _open.onclick = function () {
- U.MD.DK.LE.openFileDirectory(data, US.userInfo.userid);
- }
- break;
- };
- }
|