123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888 |
- Namespace.register("U.MD.DS"); //域名管理命名空间
- U.MD.DS.DnsInfo = {}; //域名集合
- U.MD.DS.DnsInfo.ThisFileId = ""; // 当前文件夹目录或文档id
- U.MD.DS.DnsInfo.DomainType = ""; //域名类型
- U.MD.DS.DnsInfo.CallBack = {};
- U.MD.DS.currentFileInfo = {} //当前操作文档的信息
- /**
- * 域名生成规则算法
- * @param number i 循环初始值
- * @param number j 循环结束值
- * @param function cb 回调函数
- */
- U.MD.DS.getDomainName = function (i, j, cb) {
- var _val,
- _dns,
- _res,
- _i, _j;
- for (; i < j; i++) {
- _val = i.toString(36); //自定义规则,转36进制
- _dns = "100" + _val + ".1473.cn"; //域名生成规则,将100开头,中间加上我们自定义的规则。
- //查询数据库,域名表是否有这个域名的存在
- U.A.Request("http://cd.1473.cn/php", ["db.1473.cn", "UseStudio_DNS", "GetRecommendDomain", _dns], function (r) {
- //如果有就重新执行函数,进行+1自增数查询
- if (r.value.length > 0) {
- var _res = (_dns.split('.')[0].substring(3)).toString(10); //截取最后面的一位数,进行自增
- _i = parseInt(_res, 36) + 1; //换成整数+1
- _j = parseInt(_res, 36) + 2; //换成整数+2
- U.MD.DS.getDomainName(_i, _j, cb); //重新执行函数
- }
- //如果这个域名没有存在,那么执行回调函数
- else {
- //判断第三个参数的类型,如果是数组,执行数组第一个,剩下的是函数参数。例如:[函数名,[参数一,参数二]]。
- if (U.UF.C.objectToString(cb) == "[object Array]") {
- //回调参数的第一个永远是新的dns字符串
- cb[1].unshift(_dns);
- cb && cb[0](cb[1]);
- }
- //如果是函数,直接执行函数。//回调参数的第一个永远是新的dns字符串
- else if (U.UF.C.isFunction(cb)) {
- cb(_dns);
- }
- }
- });
- }
- }
- /**
- * 数据监测
- * @param object type 文档类型
- * @param object info 当前文档信息
- */
- U.MD.DS.dataCheck = function (type, info) {
- switch (type) {
- case "folder": //判断是否是文件夹类型
- var _data = U.MD.DS.currentFileInfo = U.MD.DS.dataFormatFilter(info, ['UserDirectoryID', 'UserallDirectoryName', 'UserId']);
- U.A.Request("http://cd.1473.cn/php", ["db.1473.cn", "UseStudio_DNS", 'GetDomainfromFileldId', info.UserDirectoryID, info.UserId], function (r) {
- if (r.value.length != 0) {
- var _res = r.value[0];
- window.open('http://' + _res.AppId + '.1473.cn/' + _res.Domain + '/');
- return;
- }
- U.MD.DS.autoCreateDomain(_data, "disk");
- });
- break;
- }
- }
- /**
- * 站点生产链接初始化,生成默认域名
- * @param object wordinfo 当前文档信息
- */
- U.MD.DS.createDefaultDomainInit = function (wordinfo, domaintype, callback) {
- var cbJson = [].slice.call(arguments, arguments.length - 1);
- typeof cbJson[0] === 'function' && (U.MD.DS.DnsInfo.CallBack = cbJson[0]);
- //未登录处理,弹出登录框,登录或者注册
- if (US.userInfo.userid == undefined) {
- U.MD.U.L.login(3); //弹出登录框,登录或者注册
- }
- //登录处理,弹出域名管理系统,添加域名区域
- else {
- U.MD.DS.DnsInfo.DomainType = domaintype;
- U.MD.DS.createDefaultDomain(wordinfo, domaintype); //弹出域名管理系统,添加域名区域
- }
- }
- /**
- * 站点生产链接初始化,生成默认域名
- * @param object wordinfo 当前文档信息
- * @param boolen type 生成的方式,样式一样,数据稍有不同。
- */
- U.MD.DS.createDefaultDomain = function (wordinfo, domaintype) {
- var _wordinfo = wordinfo, //object参数值
- _fileid = _wordinfo.UserDirectoryID || _wordinfo.UserFilesID, //文件ID
- _userid = _wordinfo.UserId || _wordinfo.UserID, //用户ID
- _filename = _wordinfo.UserallDirectoryName || _wordinfo.UserFilesName, //文件名
- _usernickname = US.userInfo.username, //用户名
- _dns = $$("div", { "class": "U_MD_O_W_Paper8" }), //生产的最外层窗体
- _dnstitleinfo = $$("div", { "class": "U_MD_O_W_Paper8_Set" }, _dns), //窗体内第一层窗体,即DNS标题栏区域
- _dnstitlename = $$("div", { "class": "U_MD_O_W_Paper8_Set_Tag", "innerHTML": "目前域名" }, _dnstitleinfo), //标题文本
- _dnsname = $$("input", { "class": "U_MD_O_W_Paper8_Set_Name", "value": "暂无域名,请前往生成" }, _dnstitleinfo), //DNS名字
- _dnsael = $$("a", {
- id: "U_MD_O_W_Paper8_hrefA", href: "javascript:void(0)", innerText: '暂无域名,请前往生成', onclick: function () {
- if (this.innerText == '暂无域名,请前往生成') {
- U.MD.DS.dnsInit(wordinfo, domaintype)
- return false;
- }
- }
- }, _dnstitleinfo),
- _copyInp = $$("div", {
- "class": "U_MD_O_W_Paper8_Copy_btn", "innerText": "复制", "onclick": function () {
- if (_dnsname.value != '暂无域名,请前往生成') {
- _dnsname.select();
- document.execCommand("Copy");
- U.alert('复制成功!');
- } else {
- U.MD.DS.dnsInit(wordinfo, domaintype)
- // U.alert('请到域名管理中心设置!')
- }
- }
- }, _dnstitleinfo),
- _dnsinfo = $$("div", { "class": "U_MD_O_W_Paper8_Que" }, _dns), //窗体内第二层窗体,即DNS分享区域
- _sharewarp = $$("div", { "class": "U_MD_O_W_Paper8_Que_Code" }, _dnsinfo), //二维码层窗体
- _qr = $$("div", { "class": "U_MD_O_W_Paper8_Que_QR" }, _sharewarp), //二维码父亲元素
- _sharebtn = $$("div", { "class": "U_MD_O_W_Paper8_Que_Con", "innerHTML": "扫一扫 </br> 分享此文档给好友</br></br>第三方平台分享" }, _sharewarp), //分享显示层
- _thirdparty = $$("div", { "class": "U_MD_O_W_Paper8_Sanfang" }, _sharebtn), //第三方平台
- _weibo = $$("div", { "class": "U_MD_O_W_Paper8_Sanfang_Weibo", "onclick": function () { U.MD.DS.weiboShare(_dnsname, _filename, _usernickname); } }, _thirdparty), //分享微博按钮
- _qq = $$("div", { "class": "U_MD_O_W_Paper8_Sanfang_Kongjian", "onclick": function () { U.MD.DS.qqShare(_dnsname, _filename, _usernickname); } }, _thirdparty), //分享QQ按钮
- _sharebtn = $$("div", { "class": "U_MD_O_W_Paper8_Btn" }, _dnsinfo), //底部操作父亲层
- _cancel = $$("div", { "innerHTML": "取消", "onclick": function () { U.UF.F.closeWindow("#U_MD_O_W_Paper8"); }, "style": { "cursor": "pointer" } }, _sharebtn); //取消关闭按钮
- var _dnsset = $$("div", { "innerHTML": "到域名管理中心设置", "onclick": function () { U.MD.DS.dnsInit(_fileid, domaintype) }, "style": { "width": "135px", "cursor": "pointer" } }, _sharebtn); //前往域名设置
- U.MD.DS.creatDomain(0, 1, _userid, _fileid, _filename, _dnsname, _qr); //调用生成二维码函数
- new U.UF.UI.form("", _dns, { id: "U_MD_O_W_Paper8", style: { "width": "370px", "height": "auto" } }, { isenlarge: false, isnarrow: false }); //生产窗体
- }
- /**
- * 确定申请域名,向数据库发送请求。后期会修改此函数
- * @param number i 循环初始值
- * @param number j 循环结束值
- * @param string userid 用户id
- * @param string fileid 文件id
- * @param string filename 文件名
- * @param element filename 域名文本框
- * @param element qrcode 二维码元素
- */
- U.MD.DS.creatDomain = function (i, j, userid, fileid, filename, dnsname, qrcode) {
- U.MD.DS.getDomainName(i, j, function (dns) {
- var _userid = userid, //用户id
- _fileid = fileid, //获取文件ID
- _filename = filename, //获取文件名
- _endtime, //域名失效日期,默认当前日期加一个月
- _val, //定义变量
- _dns = dns, //生成后的域名字符串
- _dnstype, ////域名后缀类型
- _isfree, //是否免费 0 免费 1 付费
- _when; //是否是本页面申请的域名
- //递归循环判断当前域名是否重复,如果重复执行递归函数,如果没有重复进行函数数据库操作。每次循环只循环一次。
- //查询数据库,域名表是否有这个文件,查看该文件是否存在域名
- //这里查询数据库,需要修改。第一版先查询。判断U.MD.O.W.TF["fileinfo"].DnsInfo是否存在,如果存在可不用查询数据库
- U.A.Request("http://cd.1473.cn/php", ["db.1473.cn", "UseStudio_DNS", 'GetDomainfromFileldId', _fileid, userid], function (r) {
- if (r.value.length != 0) {
- dnsname.value = U.MD.DS.DnsInfo.DomainType + ".1473.cn/" + r.value[0].Domain;
- $('#U_MD_O_W_Paper8_hrefA')[0].innerText = U.MD.DS.DnsInfo.DomainType + ".1473.cn/" + r.value[0].Domain;
- $('#U_MD_O_W_Paper8_hrefA')[0].href = 'http://' + U.MD.DS.DnsInfo.DomainType + ".1473.cn/" + r.value[0].Domain;
- $('#U_MD_O_W_Paper8_hrefA')[0].target = "_Blank";
- top.U.MD.DS.DnsInfo[r.value[0].FileId] = r.value[0];
- }
- //长 - 宽 - 二维码颜色 - 背景颜色 - 输入的文字或者URL - 生成到的地方
- top.U.UF.QR.generate("117", "122", "black", "white", "http://" + $(dnsname)[0].value, $(qrcode)[0]);
- });
- });
- }
- /**
- * 生成域名结束日期
- */
- U.MD.DS.creatDomain.setEndTime = function () {
- var _d = new Date(); //获取当前系统时间
- _d.setMonth(_d.getMonth() + 1); //月数+1
- var _yy1 = _d.getFullYear(), //获取年份
- _mm1 = _d.getMonth() + 1, //因为getMonth()返回值是 0(一月) 到 11(十二月) 之间的一个整数。所以要给其加1
- _dd1 = _d.getDate(), //获取哪一天
- _endTime; //时间组合 年-月-日
- if (_mm1 < 10) {
- _mm1 = _mm1;
- }
- if (_dd1 < 10) {
- _dd1 = _dd1;
- }
- _endTime = _yy1 + '-' + _mm1 + '-' + _dd1; //时间组合 年-月-日
- return _endTime; //返回日期
- }
- /**
- * 域名管理中心初始化
- * 参数一: fileId
- */
- U.MD.DS.dnsInit = function (fileId, domaintype) {
- U.A.Request(US.CD, [US.DB, "UseStudio_Disk", "GetFileById", fileId], function (r) {
- if (r.value.length) {
- U.MD.DS.currentFileInfo = r.value[0];
- } else {
- U.alert('没有此文件的信息');
- }
- U.A.Request("http://cd.1473.cn/php", ["db.1473.cn", "UseStudio_DNS", "GetUserDns", US.userInfo.userid], function (r) {
- var _el = $("#U_MD_DM_B_Manage_Pop")[0],
- _userDomainData = r.value;
- for (var i = 0; i < _userDomainData.length; i++) {
- U.MD.DS.DnsInfo[_userDomainData[i].FileId] = _userDomainData[i]; //设置为全局
- }
- //如果不存在,创建域名系统元素层。
- if (!_el) {
- $(".U_MD_DM_M_Body")[0].style.display = "block";
- new U.UF.UI.form("域名管理中心", $(".U_MD_DM_M_Body")[0], { id: "U_MD_DM_B_Manage_Pop", style: { width: "1170px", height: "700px" } });
- U.MD.DS.myDomainAdmin("", 1, 10, $(".U_MD_DM_B_M_Content")[0]);
- $("#U_MD_DM_B_Manage_Pop div")[0].style.textIndent = "20px";
- }
- U.MD.DS.DnsInfo.ThisFileId = U.MD.DS.currentFileInfo.UserFilesID; //记录当前文件id
- U.MD.DS.DnsInfo.DomainType = domaintype;
- U.MD.DS.userInit(); //域名管理中心用户个人信息初始化
- U.MD.DS.topDomain(U.MD.DS.currentFileInfo); //顶级域名初始化
- U.MD.DS.DomainNamerec();
- //Uform窗体调用
- $(".U_MD_DM_B_T_Sea_button").bind("click", function () { //绑定搜索域名事件
- U.MD.DS.topDomain.search(U.MD.DS.currentFileInfo); //搜索域名函数
- });
- $(".U_MD_DM_B_T_Sea_Input").bind("keyup", function () { //绑定键盘点击事件
- U.MD.DS.topDomain.inputKeyUp(this, U.MD.DS.currentFileInfo); //判断只能输入字母和数字
- });
- $(".U_MD_DM_B_M_S_Input").bind("keyup", function () { //绑定键盘点击事件
- U.MD.DS.myDomainAdmin.inputKeyUp(this); //给文本框添加按下回车按键,进行搜索
- });
- U.UF.F.topWindow(_el); //元素置顶
- });
- });
- }
- /**
- * 重置域名内容显示
- */
- U.MD.DS.DomainNamerec = function () {
- var _name = U.MD.DS.DnsInfo[U.MD.DS.DnsInfo.ThisFileId] ? U.MD.DS.DnsInfo[U.MD.DS.DnsInfo.ThisFileId].Domain.split('.')[0] : ''; //获取域名名称
- U.A.Request("http://cd.1473.cn/php", ["db.1473.cn", "UseStudio_DNS", "GetLoadDomain", _name], function (r) {
- var _value = r.value;
- var _arr = _value[0].res.split(','), //分割推荐字符串
- _recommend = $(".U_MD_DM_B_T_Ul")[0]; //推荐域名添加元素
- _recommend.children[0].innerHTML = ''; //清空ul内容
- for (var i = 0; i < _arr.length - 1; i++) { //循环打印域名
- var _li = $$('li', { innerText: U.MD.DS.DnsInfo.DomainType + ".1473.cn/" + _arr[i] }, _recommend.children[0]); //创建li标签显示域名
- $$("div", {
- "className": "U_MD_DM_B_T_Pro_use", style: { cssText: "float:right" }, "innerHTML": "立即使用", "name": _arr[i], "onclick": function () { //创建'立即使用'按钮,并绑定点击事件
- U.MD.DS.useThisDomainsOnclick(U.MD.DS.currentFileInfo, this.name) //进行替换或新建提示
- }
- }, _li);
- }
- _recommend.style.display = "block";
- })
- }
- /**
- * 域名管理中心用户个人信息初始化
- */
- U.MD.DS.userInit = function () {
- //设置用户昵称
- $("#username")[0].innerHTML = US.userInfo.UserNickName;
- //设置用户头像
- $("#userhead")[0].innerHTML = '<img src = ' + U.MD.C.getHeadImage(US.userInfo.UserImageHead) + ' onerror="javascript:this.src = \'/img/UserHead/UseHead.jpg\'">';
- $('#U_MD_DM_B_T_Type')[0].innerText = U.MD.DS.DnsInfo.DomainType; //当前文档域名类型
- }
- /**
- * 顶级域名初始化信息
- * @param object wordinfo 当前文件信息
- */
- U.MD.DS.topDomain = function (wordinfo) {
- $("#Site")[0].innerHTML = wordinfo.UserFilesName;
- //当前域名
- $("#DnsName")[0].innerHTML = (U.MD.DS.DnsInfo[wordinfo.UserFilesID] && U.MD.DS.DnsInfo.DomainType + ".1473.cn/" + U.MD.DS.DnsInfo[wordinfo.UserFilesID].Domain) || '无';
- }
- /**
- * 域名管理系统顶部导航条切换页面
- * @param object el 当前文件信息
- */
- U.MD.DS.changePage = function (el) {
- var _parent = el.parentNode,
- _allchild = $(_parent).Child(),
- _allwarp = $(".U_MD_DM_B_Topcont").Child(),
- _index = el.getAttribute("index");
- for (var i = 0; i < _allchild.length; i++) {
- _allchild[i].className = "U_MD_DM_B_N_R_Nav_li";
- _allwarp[i].style.display = "none";
- }
- $(el).addClass("li_active");
- _allwarp[_index].style.display = "block";
- }
- /**
- * 输入框键盘按下事件
- * @param elements el 文件名
- */
- U.MD.DS.topDomain.inputKeyUp = function (el, wordinfo) {
- var _val = el.value; //输入框的值
- el.value = _val.replace(/[\s\W\.\/]/ig, ''); //只能输入英文和数字
- if (event.keyCode == 13 || event.keyCode == 10) {
- U.MD.DS.topDomain.search(wordinfo);
- }
- }
- /**
- * 顶级域名,搜索功能
- * @param object wordinfo 当前文件信息
- */
- U.MD.DS.topDomain.search = function (wordinfo) {
- var _searchvalue = $(".U_MD_DM_B_T_Sea_Input")[0].value.trim(),
- _reg = /^[0-9a-zA-Z]+$/
- //判断搜索的内容是否为空值
- if (_searchvalue == "") {
- U.Alert("请输入域名");
- }
- //判断输入框内容是否为数字或者字母
- else if (!_reg.test(_searchvalue)) {
- U.Alert("请输入数字或者字母");
- } else if (_searchvalue.length <= 4) {
- U.Alert("最少输入5位!!!");
- }
- //如果以上条件都符合,查询用户输入的域名是否可用
- else {
- var p, //创建的P标签
- _span, //创建的span标签
- _use, //创建的div标签
- _dns = _searchvalue, //用户搜索的域名
- _parent = $(".U_MD_DM_B_T_Pro")[0]; //p标签,span标签的父亲元素
- _parent.innerHTML = "";
- //如果查询的域名和当前域名一致,提示用户当前域名可使用,不去查询数据库。
- if (/*wordinfo.DnsInfo.Domain ==*/!_dns) {
- //U.Alert("您当前的域名为" + wordinfo.DnsInfo.Domain + ",无需更改");
- //创建一个p标签用于显示用户输入的域名
- _p = $$("p", { "innerHTML": _dns }, _parent);
- //创建一个span标签用于显示用户输入的域名是否可用
- _span = $$("span", { "innerHTML": "您当前的域名为" + wordinfo.DnsInfo.Domain + ",无需更改" }, _parent);
- //_use = $$("div", { "className": "U_MD_DM_B_T_Pro_use", "innerHTML": "立即使用", "onclick": function () { U.MD.DS.useThisDomainsOnclick(wordinfo) } }, _parent);
- }
- else {
- //往数据库查询是否存在这个值
- U.A.Request("http://cd.1473.cn/php", ["db.1473.cn", "UseStudio_DNS", "GetRecommend", _dns], function (r) {
- var _value = r.value;
- //清空显示栏的内容
- _parent.innerHTML = "";
- //创建一个p标签用于显示用户输入的域名
- _p = $$("p", { "innerHTML": U.MD.DS.DnsInfo.DomainType + ".1473.cn/" + _dns }, _parent);
- //创建一个span标签用于显示用户输入的域名是否可用
- _span = $$("span", {}, _parent);
- ////如果数据库返回的值是空
- if (_value[0].UserId) {
- _span.innerHTML = "此域名已经被人用了,在换个试试?"
- }
- //如果数据库返回的值不是空
- else {
- _span.innerHTML = "此域名可以使用";
- _use = $$("div", {
- "className": "U_MD_DM_B_T_Pro_use", "innerHTML": "立即使用", "name": _dns, "onclick": function () {
- U.MD.DS.useThisDomainsOnclick(U.MD.DS.currentFileInfo, this.name)
- }
- }, _parent);
- // _use = $$("div", { "className": "U_MD_DM_B_T_Pro_use", "innerHTML": "立即使用", "onclick": function () { U.MD.DS.useThisDomains(wordinfo, function (wordinfo) { U.MD.DS.createDefaultDomain(wordinfo, false) }) } }, _parent);
- }
- var _arr = _value[0].res.split(' '), //分割推荐字符串
- _recommend = $(".U_MD_DM_B_T_Ul")[0]; //推荐域名添加元素
- _recommend.children[0].innerHTML = ''; //清空ul内容
- for (var i = 0; i < _arr.length - 1; i++) { //循环打印域名
- var _li = $$('li', { innerText: U.MD.DS.DnsInfo.DomainType + ".1473.cn/" + _arr[i] }, _recommend.children[0]);
- $$("div", {
- "className": "U_MD_DM_B_T_Pro_use", style: { cssText: "float:right" }, "innerHTML": "立即使用", "name": _arr[i], "onclick": function () {
- U.MD.DS.useThisDomainsOnclick(U.MD.DS.currentFileInfo, this.name) //进行操作提示
- }
- }, _li);
- }
- _recommend.style.display = 'block'; //显示
- });
- }
- }
- }
- /**
- * 微博分享
- * @param string dnsname dns名字
- * @param string filename 文件名
- * @param string username 用户名
- */
- U.MD.DS.weiboShare = function (dnsname, filename, username) {
- var WBtitle = "这个文档超赞的,赶快分享给大家吧!【" + username + "——(分享自-互联办公)】";
- var sharesinastring = 'http://v.t.sina.com.cn/share/share.php?title=' + WBtitle + '&url=' + dnsname.innerHTML + '&content=utf-8&sourceUrl=' + dnsname.innerHTML;
- window.open(sharesinastring, 'newwindow', 'height=500,width=800,top=300,left=300');
- }
- /**
- * QQ空间分享
- * @param string dnsname dns名字
- * @param string filename 文件名
- * @param string username 用户名
- */
- U.MD.DS.qqShare = function (dnsname, filename, username) {
- var KJtitle = "分享是种乐趣,所以让我们成为传播乐趣的人吧!【" + username + "——(分享自-互联办公)】";
- var shareqqzonestring = 'http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?summary=' + filename + '&title=' + KJtitle + '&url=' + dnsname.innerHTML;
- window.open(shareqqzonestring, 'newwindow', 'height=500,width=800,top=300,left=300');
- }
- /**
- * 顶级域名,搜索功能
- * @param object wordinfo 当前文件信息
- */
- U.MD.DS.useThisDomainsOnclick = function (wordinfo, dns) {
- U.MD.DS.useThisDomains(wordinfo, dns);
- }
- /**
- * 顶级域名,搜索功能
- * @param object wordinfo 当前文件信息
- */
- U.MD.DS.useThisDomains = function (wordinfo, dns, cb) {
- var str = U.MD.DS.DnsInfo[wordinfo.UserFilesID] ? "是否确定修改?" : "是否新建域名?";
- U.UF.UI.confirm(str, U.UF.C.closure(function (wordinfo, dns) { U.MD.DS.useThisDomains.asyn(wordinfo, dns, cb); }, [wordinfo, dns, cb]));
- }
- U.MD.DS.useThisDomains.asyn = function (wordinfo, dns, cb) {
- if (!U.MD.DS.DnsInfo[wordinfo.UserFilesID]) {
- var _fileId = wordinfo.UserFilesID, //文档id
- _fileName = wordinfo.UserFilesName, //文档名
- _dnstype = U.MD.DS.DnsInfo.DomainType, //文档类型
- _endTime = U.MD.DS.creatDomain.setEndTime(), //设置过期时间
- _isfree = 0, //是否免费
- _dns = dns, //dns名字
- _userid = wordinfo.UserId, //用户id
- _when = 1;
- U.A.Request("http://cd.1473.cn/net", ["db.1473.cn", "UseStudio_DNS", 'InsertDnsinfo', _fileId, _fileName, _dnstype, _endTime, _isfree, _dns, _userid, _when], function (r) {
- if (r.value && r.value[0].DnsId) {
- $('#DnsName')[0].innerHTML = U.MD.DS.DnsInfo.DomainType + ".1473.cn/" + r.value[0].Domain; //显示域名至HTML页面
- top.U.MD.DS.DnsInfo[r.value[0].FileId] = r.value[0]; //设置当前的域名的id
- //U.MD.DS.CreateDnsSuccess(r.value); //弹出对话框
- if (U.UF.C.isFunction(cb)) {
- cb(r.value[0])
- } else {
- U.MD.DS.createDefaultDomainInit(wordinfo, _dnstype, null);
- }
- r.value[0].ExpirationTime = U.UF.D.getYearMonthDay(r.value[0].ExpirationTime); //转格式
- r.value[0].SetTime = U.UF.D.getFullTime(r.value[0].SetTime); //转格式
- var _li = $$("li", { "id": r.value[0].DnsId, className: "U_MD_DM_B_M_Content_currentFile" }, $('.U_MD_DM_B_M_Content')[0]); //同步
- U.MD.DS.myDomainAdmin.updateLi(r.value[0], _li); //同步到我的管理
- $('.U_MD_DM_B_T_Sea_Input')[0].value = r.value[0].Domain
- $('.U_MD_DM_B_T_Sea_button')[0].click();
- typeof U.MD.DS.DnsInfo.CallBack.addDomain === 'function' && U.MD.DS.DnsInfo.CallBack.addDomain(r.value[0]);
- }
- });
- } else {
- var _fileid = U.MD.DS.DnsInfo.ThisFileId, //文件id
- _dnsid = U.MD.DS.DnsInfo[_fileid].DnsId, //dns id
- _uid = U.MD.DS.DnsInfo[_fileid].UserId, //用户 id
- _dns = dns, //dns字符串
- _filename = U.MD.DS.DnsInfo[_fileid].FileName, //文件名
- _url = U.MD.DS.DnsInfo[_fileid].ContentUrl, //
- _type = U.MD.DS.DnsInfo.DomainType, //域名类型
- _settime = U.MD.DS.DnsInfo[_fileid].SetTime, //设置时间
- _expirationtime = U.MD.DS.DnsInfo[_fileid].ExpirationTime, //到期时间
- _category = U.MD.DS.DnsInfo[_fileid].Category,
- _whether = U.MD.DS.DnsInfo[_fileid].Whether;
- U.A.Request("http://cd.1473.cn/php", ["db.1473.cn", "UseStudio_DNS", "UpdateDnsinfo", _dnsid, _uid, _dns, _fileid, _filename, _url, _type, _settime, _expirationtime, _category, _whether], function (r) { //更新当前域名的信息
- if (r.value.length > 0) {
- U.MD.DS.DnsInfo[r.value[0].FileId] = r.value[0]; //更新全局属性储存的域名信息
- wordinfo.DnsInfo = r.value[0]; //当前域名的信息
- //U.MD.DS.CreateDnsSuccess(r.value); //添加或修改域名成功后的提示框
- if (U.UF.C.isFunction(cb)) {
- cb(r.value[0])
- } else {
- U.MD.DS.createDefaultDomainInit(wordinfo, _type);
- }
- var _li = $('#' + r.value[0].DnsId)[0]; //获取li标签啊
- _li.innerHTML = ""; //清空内容
- U.MD.DS.myDomainAdmin.updateLi(r.value[0], _li); //同步到我的管理
- $('.U_MD_DM_B_T_Sea_Input')[0].value = r.value[0].Domain
- $('.U_MD_DM_B_T_Sea_button')[0].click()// 点击顶级域名模块的搜索
- typeof U.MD.DS.DnsInfo.CallBack.modifyDomain === 'function' && U.MD.DS.DnsInfo.CallBack.modifyDomain(r.value[0]);
- }
- });
- }
- }
- /**
- * 添加或修改域名成功后的提示框
- * @param object value 当前文件信息
- **/
- U.MD.DS.CreateDnsSuccess = function (value) {
- var _contentEl = $$('div'); //整个大的div
- $$('p', { innerText: "设置成功", style: { cssText: "padding-top:14px;text-align:center;font-size:16px" } }, _contentEl); //文字
- var _DomainBox = $$('div', { style: { cssText: "margin:6px 34px 0;padding-bottom:14px; border-bottom:1px solid #999;font-size:14px; overflow: hidden;" } }, _contentEl);
- var _inp = $$('input', { value: U.MD.DS.DnsInfo.DomainType + ".1473.cn/" + value[0].Domain, style: { cssText: "position:absolute; left:-400px" } }, _DomainBox) //显示域名的文字
- $$('a', { href: "http://" + _inp.value, target: '_blank', innerText: _inp.value, style: { cssText: "text-decoration:none; color: #2c5ca4; border-bottom: 1px solid #2c5ca4; font-weight: 700;" } }, _DomainBox);
- $$('div', {
- innerText: "复制", style: { cssText: "float: right; padding:0 10px; background-color:rgb(51, 153, 255); border: 1px solid rgb(121, 121, 121); color: #ffffff;" }, onclick: function () {
- _inp.select(); //选中复制框的内容
- document.execCommand("copy"); // 复制
- U.Alert("复制成功"); // 弹出提示
- }
- }, _DomainBox); //复制框
- var _el = $$('div', { style: { cssText: "margin-top:24px; padding:0 40px;overflow: hidden;" } }, _contentEl) //第二层el
- var _Domain = $$('div', { style: { cssText: "float:left" } }, _el) //二维码存放位置
- $$('p', { innerText: "扫一扫", style: { cssText: "margin-left:134px;" } }, _el); //文字
- $$('p', { innerText: "分享此文档给好友", style: { cssText: "margin-left: 134px; margin-top:6px;" } }, _el); //文字
- var _btnA = $$('div', { style: { cssText: "margin-top:22px;padding:0 20px;text-align:right;" } }, _contentEl); //按钮放置区
- top.U.UF.QR.generate("117", "122", "black", "white", _inp.value, _Domain); //生成二位吗
- $('.U_MD_O_W_Paper8_Set_Name').length && ($('.U_MD_O_W_Paper8_Set_Name')[0].value = U.MD.DS.DnsInfo.DomainType + ".1473.cn/" + value[0].Domain); //同步文字
- $('#U_MD_O_W_Paper8_hrefA').length && ($('#U_MD_O_W_Paper8_hrefA')[0].innerText = U.MD.DS.DnsInfo.DomainType + ".1473.cn/" + value[0].Domain);
- $('#U_MD_O_W_Paper8_hrefA').length && ($('#U_MD_O_W_Paper8_hrefA')[0].href = 'http://' + U.MD.DS.DnsInfo.DomainType + ".1473.cn/" + value[0].Domain);
- $('#DnsName')[0].innerText = U.MD.DS.DnsInfo.DomainType + ".1473.cn/" + value[0].Domain//同步文字
- new U.UF.UI.form("提示", _contentEl, { id: "U_MD_DM_B_Manage_Alt", style: { width: "310px", height: "275px" } }); //生成提示框
- }
- //#region 我的域名管理区域
- /**
- * 我的域名管理
- * @param string pageindex 当前页码数
- * @param string pagesize 当前页码数数据量大小
- */
- U.MD.DS.myDomainAdmin = function (value, pageindex, pagesize, el) {
- //获取数据
- U.A.Request("http://cd.1473.cn/php", ["db.1473.cn", "UseStudio_DNS", "GetMyAdminByUidPage", US.userInfo.userid, value, pageindex, pagesize], function (r) {
- var data = r.value;
- el.innerHTML = "";
- U.MD.DS.myDomainAdmin.printHtml(data, el);
- })
- }
- /**
- * 我的域名管理,打印数据
- * @param string pageindex 当前页码数
- * @param string pagesize 当前页码数数据量大小
- */
- U.MD.DS.myDomainAdmin.printHtml = function (data, el) {
- var _content = el, //父亲元素,以下创建的li元素追加在此父亲元素上。
- _li, //元素最外层li
- _update,
- _operation,
- dns, ss, t, tp;
- _content.style.display = "block";
- //如果没有数据,提示暂无数据
- if (data.length <= 0) {
- _li = $$("li", {}, _content);
- $$("div", { "class": "U_MD_DM_B_M_A_name", "innerHTML": "暂无数据", "style": { "width": "100%" } }, _li);
- }
- //如果有数据,for循环打印数据。
- else {
- for (var i = 0; i < data.length; i++) {
- if (U.MD.DS.DnsInfo[U.MD.DS.DnsInfo.ThisFileId] && (U.MD.DS.DnsInfo[U.MD.DS.DnsInfo.ThisFileId].DnsId == data[i].DnsId)) {
- _li = $$("li", { "id": data[i].DnsId, className: "U_MD_DM_B_M_Content_currentFile" }, _content);
- } else {
- _li = $$("li", { "id": data[i].DnsId }, _content);
- }
- U.MD.DS.myDomainAdmin.updateLi(data[i], _li);
- }
- }
- }
- U.MD.DS.myDomainAdmin.updateLi = function (data, addli) {
- var dns = data.Domain;
- $$("div", { "class": "U_MD_DM_B_M_A_name", "innerHTML": data.FileName }, addli);
- var _domainType = $$("div", { "class": "U_MD_DM_B_M_A_Ttype", "innerHTML": data.AppId }, addli);
- $$("div", { "class": "U_MD_DM_B_M_A_Stime", "innerHTML": data.SetTime }, addli);
- $$("div", { "class": "U_MD_DM_B_M_A_Dtime", "innerHTML": data.ExpirationTime }, addli);
- $$("div", { "class": "U_MD_DM_B_M_A_Ggenre", "innerHTML": data.Category == "0" ? "免费" : "付费" }, addli);
- $$("div", { "class": "U_MD_DM_B_M_A_Rrealm", "innerHTML": data.AppId + ".1473.cn/" + data.Domain, "style": { "display": "block" } }, addli);
- // Inputimg = $$("div", { "class": "U_MD_DM_B_M_A_R_Input_Img" }, Rinput);
- _operation = $$("div", { "class": "U_MD_DM_B_M_A_Hhandle" }, addli);
- _a = $$("a", {
- id: data.FileId, "innerHTML": "修改", "onclick": function () {/*U.MD.DS.myDomainAdmin.modify(this, data)*/
- var _this = this,
- _sqlFunc = _domainType.innerText == 'disk' ? 'GetDirectroyById' : 'GetFileById';
- U.A.Request(US.CD, [US.DB, "UseStudio_Disk", _sqlFunc, this.id], function (rs) {
- if (!rs.value.length) {
- U.Alert('文件不存在')
- return;
- }
- if (_domainType.innerText == 'disk') {
- U.MD.DS.currentFileInfo = U.MD.DS.dataFormatFilter(rs.value[0], ['UserDirectoryID', 'UserDirectoryName', 'UserID']);
- } else {
- U.MD.DS.currentFileInfo = U.MD.DS.dataFormatFilter(rs.value[0], ['UserFilesID', 'UserFilesName', 'UserID']);
- }
- U.MD.DS.DnsInfo.ThisFileId = U.MD.DS.currentFileInfo.UserFilesID; // 更改当前域名
- U.A.Request("http://cd.1473.cn/php", ["db.1473.cn", "UseStudio_DNS", "GetDnsInfoByFileId", U.MD.DS.DnsInfo.ThisFileId], function (r) {
- var _clickDomainType = U.MD.DS.currentFileInfo.AppId = r.value[0].AppId, // 点击的域名的类型
- _lastClickDomain = r.value[0].Domain, //当前域名
- _lastChooseEl = $('.U_MD_DM_B_M_Content_currentFile')[0];
- if ($('.U_MD_DM_B_T_Sea_Input')[0].value.length >= 5) //如果搜索框有超过5个字符
- $('.U_MD_DM_B_T_Sea_button')[0].click(); //点击搜索按钮
- else
- if (_lastClickDomain != U.MD.DS.DnsInfo[U.MD.DS.DnsInfo.ThisFileId].Domain.split('.')[0]) //点击修改的域名不等于当前域名
- U.MD.DS.DomainNamerec(); //推荐域名
- if (U.MD.DS.DnsInfo.DomainType != _clickDomainType) { //判断当前文档的类型,和点击修改文档的类型是否一致
- U.MD.DS.DnsInfo.DomainType = _clickDomainType; //更改域名类型
- $('.U_MD_DM_B_T_Sea_text')[0].innerText = U.MD.DS.DnsInfo.DomainType + ".1473.cn/";
- }
- U.MD.DS.topDomain(U.MD.DS.currentFileInfo); //当前域名
- _lastChooseEl && (_lastChooseEl.className = "");
- _this.parentNode.parentNode.className = "U_MD_DM_B_M_Content_currentFile";
- $('#U_MD_DM_B_N_R_Nav')[0].children[0].click(); //点击顶级域名按钮var _clickDomainType = U.MD.DS.DnsInfo[this.id].AppId, // 点击的域名的类型
- })
- });
- }
- }, _operation);
- data.Category == "0" ? $$("a", {
- id: data.DnsId, "innerHTML": "删除", "onclick": function () {
- U.MD.DS.myDomainAdmin.delect(data);
- }
- }, _operation) : "";
- $$("a", { id: data.DnsId, "innerHTML": "预览", "onclick": function () { U.MD.DS.myDomainAdmin.open(data.AppId + ".1473.cn/" + data.Domain) } }, _operation);
- }
- /**
- * 我的域名管理,删除功能。
- * @param object dnsinfo 当前需要删除的域名信息
- */
- U.MD.DS.myDomainAdmin.delect = function (dnsinfo) {
- U.UF.UI.confirm("是否不再使用此域名?",
- function () {
- var _did = dnsinfo.DnsId, //域名id
- _flieid = dnsinfo.FileId; //文件id
- //查询数据
- U.A.Request("http://cd.1473.cn/php", ["db.1473.cn", "UseStudio_DNS", "DeleteDnsInfo", _did], function (r) {
- $("#" + _did).remove(); //删掉指定dom元素
- if ($(".U_MD_DM_B_M_Content li").length <= 0) {
- var _li = $$("li", {}, $(".U_MD_DM_B_M_Content")[0]);
- $$("div", { "class": "U_MD_DM_B_M_A_name", "innerHTML": "暂无数据", "style": { "width": "100%" } }, _li);
- }
- if (U.MD.DS.DnsInfo.ThisFileId == _flieid) {
- $('#DnsName')[0].innerText = "无"; //同步数据
- $('.U_MD_O_W_Paper8_Set_Name').length && ($('.U_MD_O_W_Paper8_Set_Name')[0].value = "暂无域名,请前往生成"); //同步数据
- $('#U_MD_O_W_Paper8_hrefA').length && ($('#U_MD_O_W_Paper8_hrefA')[0].innerText = "暂无域名,请前往生成", $('#U_MD_O_W_Paper8_hrefA')[0].href = ''); //同步数据
- }
- U.MD.DS.DnsInfo.CallBack.deleteDomain(U.MD.DS.DnsInfo[_flieid]);
- delete U.MD.DS.DnsInfo[_flieid]; //删除在U.MD.DS.DnsInfo中存储的域名信息。
- });
- });
- }
- /**
- * 我的域名管理,执行修改函数。
- * @param elements el 文件名
- * @param elements dnsinfo 当前域名信息
- */
- U.MD.DS.myDomainAdmin.modify = function (e, dnsinfo) {
- console.log(dnsinfo);
- var _el = e;
- if (_el.innerHTML == "修改") {
- var _parentelement = $(_el).Parent(2),
- _frontelement = _parentelement.getElementsByClassName("U_MD_DM_B_M_A_Rrealm")[0],
- _afterelement = _parentelement.getElementsByClassName("U_MD_DM_B_M_A_RInput")[0];
- _frontelement.style.display = "none";
- _afterelement.style.display = "block";
- _el.innerHTML = "修改完成";
- }
- else {
- var _input = $(_el).Parent(2).getElementsByClassName("U_MD_DM_B_M_A_RInput")[0].getElementsByClassName("U_MD_DM_B_M_A_R_Input")[0];
- U.MD.DS.myDomainAdmin.modify.doFunction(_input, dnsinfo);
- _el.innerHTML = "修改";
- }
- }
- /**
- * 我的域名管理,输入框键盘按下事件
- * @param elements el 输入框
- * @param elements _a 修改的Dom元素
- * @param object dnsinfo 当前域名信息
- */
- U.MD.DS.myDomainAdmin.modify.inputKeyUp = function (el, _a, dnsinfo) {
- var _val = el.value; //输入框的值
- el.value = _val.replace(/[\s\W\.\/]/ig, ''); //只能输入英文和数字
- if (event.keyCode == 13 || event.keyCode == 10) {
- console.log(dnsinfo);
- U.MD.DS.myDomainAdmin.modify.doFunction(el, dnsinfo);
- _a.innerHTML = "修改";
- }
- }
- /**
- * 我的域名管理,执行修改函数,触发的函数。
- * @param elements el 输入框
- * @param object dnsinfo 当前域名信息
- */
- U.MD.DS.myDomainAdmin.modify.doFunction = function (el, dnsinfo) {
- var _dns = el.value;
- //往数据库查询是否存在这个值
- U.A.Request("http://cd.1473.cn/php", ["db.1473.cn", "UseStudio_DNS", "SearchDomain", _dns], function (r) {
- if (r.value != 0) {
- U.Alert("此域名已经被人用了");
- }
- //如果数据库返回的值不是空
- else {
- var _dnsid = dnsinfo.DnsId, //dns id
- _uid = dnsinfo.UserId,
- _fileid = dnsinfo.FileId, //文件id
- _filename = dnsinfo.FileName, //文件名
- _url = dnsinfo.ContentUrl,
- _type = dnsinfo.Type, //域名类型
- _settime = dnsinfo.SetTime, //设置时间
- _expirationtime = dnsinfo.ExpirationTime, //结束时间
- _category = dnsinfo.Category,
- _whether = dnsinfo.Whether;
- U.A.Request("http://cd.1473.cn/php", ["db.1473.cn", "UseStudio_DNS", "UpdateDnsinfo", _dnsid, _uid, _dns + ".1473.cn", _fileid, _filename, _url, _type, _settime, _expirationtime, _category, _whether], function (r) { //更新域名
- if (r.value) {
- var _parent = $(el).Parent();
- _parent.style.display = "none";
- _parent.previousElementSibling.innerHTML = _dns + "." + dnsinfo.Domain.split(".")[1] + dnsinfo.Domain.split(".")[2];
- _parent.previousElementSibling.style.display = "block";
- U.MD.DS.DnsInfo[_fileid] = r.value[0];
- }
- });
- }
- });
- }
- /**
- * 输入框键盘按下事件
- * @param elements el 文件名
- */
- U.MD.DS.myDomainAdmin.inputKeyUp = function (el) {
- var _val = el.value; //输入框的值
- if (event.keyCode == 13 || event.keyCode == 10) {
- U.MD.DS.myDomainAdmin.search(1, 10);
- }
- }
- /**
- * 我的域名管理,搜索函数
- */
- U.MD.DS.myDomainAdmin.search = function () {
- var _searchvalue = $(".U_MD_DM_B_M_S_Input")[0].value.trim()
- //判断搜索的内容是否为空值
- if (_searchvalue == "") {
- U.Alert("请输入域名");
- }
- else {
- var _el = $(".U_MD_DM_B_M_Admin")[1];
- _el.style.display = "block";
- _el.previousElementSibling.style.display = "none";
- U.MD.DS.myDomainAdmin(_searchvalue, 1, 10, $(".U_MD_DM_B_M_Content")[1]);
- $(".U_MD_DM_B_M_S_Button")[1].style.display = "block";
- }
- }
- /**
- * 我的域名管理,搜索后的返回
- */
- U.MD.DS.myDomainAdmin.search.back = function (el) {
- $(".U_MD_DM_B_M_Admin")[1].style.display = "none";
- $(".U_MD_DM_B_M_Admin")[0].style.display = "block";
- $(".U_MD_DM_B_M_S_Input")[0].value = "";
- el.style.display = "none";
- }
- /**
- * 我的域名管理,跳转链接。
- */
- U.MD.DS.myDomainAdmin.open = function (name) {
- window.open("http://" + name);
- }
- U.MD.DS.setCallBack = function (json) {
- for (var i in json) {
- var _hsaattr = ['addDomain', 'deleteDomain', 'modifyDomain'].indexOf(i)
- if (_hsaattr != -1 && typeof json[i] === 'function')
- U.MD.DS.DnsInfo.CallBack[i] = json[i]
- }
- }
- /**
- * 自动生成域名
- */
- U.MD.DS.autoCreateDomain = function (file, type, cb) {
- var _maker = U.MD.DS.random();
- U.MD.DS.DnsInfo.DomainType = type;
- U.MD.DS.addDomain(file, _maker, function (dnsinfo) {
- cb && cb(dnsinfo);
- top.window.open("http://" + dnsinfo.AppId + ".1473.cn/" + dnsinfo.Domain);
- });
- }
- U.MD.DS.random = function () {
- return (~~(Math.random() * (1 << 30))).toString(36);
- }
- U.MD.DS.dataFormatFilter = function (info, getDataItem) {
- var _newObj = {},
- _itemArr = ['UserFilesID', 'UserFilesName', 'UserID', 'AppId'];
- for (var i = 0; i < getDataItem.length; i++) {
- _newObj[_itemArr[i]] = info[getDataItem[i]];
- }
- return _newObj;
- }
- U.MD.DS.addDomain = function (wordinfo, dns, cb) {
- var _fileId = wordinfo.UserFilesID, //文档id
- _fileName = wordinfo.UserFilesName, //文档名
- _dnstype = U.MD.DS.DnsInfo.DomainType, //文档类型
- _endTime = U.MD.DS.creatDomain.setEndTime(), //设置过期时间
- _isfree = 0, //是否免费
- _dns = dns, //dns名字
- _userid = wordinfo.UserID, //用户id
- _when = 1;
- U.A.Request("http://cd.1473.cn/net", ["db.1473.cn", "UseStudio_DNS", 'InsertDnsinfo', _fileId, _fileName, _dnstype, _endTime, _isfree, _dns, _userid, _when], function (r) {
- if (r.value && r.value[0].DnsId) {
- $('#DnsName')[0].innerHTML = U.MD.DS.DnsInfo.DomainType + ".1473.cn/" + r.value[0].Domain; //显示域名至HTML页面
- top.U.MD.DS.DnsInfo[r.value[0].FileId] = r.value[0]; //设置当前的域名的id
- //U.MD.DS.CreateDnsSuccess(r.value); //弹出对话框
- if (U.UF.C.isFunction(cb)) {
- cb(r.value[0])
- } else {
- U.MD.DS.createDefaultDomainInit(wordinfo, _dnstype, null);
- }
- r.value[0].ExpirationTime = U.UF.D.getYearMonthDay(r.value[0].ExpirationTime); //转格式
- r.value[0].SetTime = U.UF.D.getFullTime(r.value[0].SetTime); //转格式
- var _li = $$("li", { "id": r.value[0].DnsId, className: "U_MD_DM_B_M_Content_currentFile" }, $('.U_MD_DM_B_M_Content')[0]); //同步
- U.MD.DS.myDomainAdmin.updateLi(r.value[0], _li); //同步到我的管理
- $('.U_MD_DM_B_T_Sea_Input')[0].value = r.value[0].Domain
- $('.U_MD_DM_B_T_Sea_button')[0].click();
- typeof U.MD.DS.DnsInfo.CallBack.addDomain === 'function' && U.MD.DS.DnsInfo.CallBack.addDomain(r.value[0]);
- }
- });
- }
- //#endregion
|