123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351 |
- Namespace.register("U.MD.U.NP");
- U.MD.U.NP.GN = { "2d9c5d2d-e6e5-4a40-8064-f93a98d0e647": { "Url": "http://pay.1473.cn/?f=hbt&=hbt", "TT": ["U_MD_U_NP_XI U_MD_U_NP_XIH", "", "好笔头", "云笔记产品", "好笔头业务云笔记专为企业团队量身打造,致力为企业团队提供最好、最适合的云笔记产品,记客户,记工作,记知识,重要工作备忘提醒,专为改善企业团队工作效率而生,同时团队围绕笔记交流协作,提高团队执行和分享效率。", "U_MD_U_NP_XWCB U_MD_U_NP_XWCBB"] }, "7bc6d08c-7db3-4ef4-8a39-595a4967a189": { "Url": "http://pay.1473.cn/?f=zh&zh=", "TT": ["U_MD_U_NP_XI U_MD_U_NP_XIZ", "", "中恒科技", "兼容生产CD", "深圳市中恒科技实业有限公司坐落于具有中国光盘生产基地之誉称的广东省深圳市,是一家兼容生产CD-R,DVD-R可录入式空白光盘的中外合资企业,总投资3千万美元。第一期拥有10条具有国际先进水平的生产线,年产量可达6千万元。", "U_MD_U_NP_XWCB U_MD_U_NP_XWCBD"] }, "ea0efe2e-9167-4698-b9b5-31c27ad5eb73": { "Url": "http://pay.1473.cn/?f=sp&sp=", "TT": ["U_MD_U_NP_XI U_MD_U_NP_XIB", "", "声博配音公司", "各个语种的深圳配音", "声博配音公司拥有全新数字专业录音棚,资深音频工程师、录音师、音乐制作人等。 成立以来,公司在一直致力于中文及各个语种的深圳配音业务、音乐制作等。 为国内外客户录制了大量影视动画、广告、专题等。在深圳配音行业内树立了良好的口碑。", "U_MD_U_NP_XWCB U_MD_U_NP_XWCBB"] }, "fd01dd1b-9c87-4e4f-a3fb-af1b91bf56f8": { "Url": "/#!/tg/", "TT": ["U_MD_U_NP_XI U_MD_U_NP_XIY", "", "云端桌面", "体验崭新的云服务", "云端桌面远离单机,基于互联网。提供免费存储,让你远离U盘,排除U盘丢失和携带的麻烦。云端的资源都是共享的,你可以随时获取好友共享的资源。", "U_MD_U_NP_XWCB U_MD_U_NP_XWCBY"] }, "ea0efe2e-9167-4698-b9b5-31c27ad5eb73": { "Url": "http://pay.1473.cn/?f=sp&sp=", "TT": ["U_MD_U_NP_XI U_MD_U_NP_XIB", "", "声博配音公司", "各个语种的深圳配音", "声博配音公司拥有全新数字专业录音棚,资深音频工程师、录音师、音乐制作人等。 成立以来,公司在一直致力于中文及各个语种的深圳配音业务、音乐制作等。 为国内外客户录制了大量影视动画、广告、专题等。在深圳配音行业内树立了良好的口碑。", "U_MD_U_NP_XWCB U_MD_U_NP_XWCBB"] }, "90f7c5ca-f7ab-4f31-8869-7275b8e8955c": { "Url": "http://pay.1473.cn/?f=bz&bz=", "TT": ["U_MD_U_NP_XI U_MD_U_NP_XID", "", "北京邮电大学", "高新技术产业发展", "北京邮电大学深圳研究院(简称深圳研究院)是依照国家有关法律、行政法规和深圳市人民政府深府办[2000]39号文件以及关于进一步扶持高新技术产业发展的若干规定成立的北京邮电大学全资事业法人机构。", "U_MD_U_NP_XWCB U_MD_U_NP_XWCBD"] } }
- U.MD.U.NP.TF; //
- //---------------------------------------------------------------------------用户数据加载----------------------------------------------------------------------------
- //-------------------------------------------------------加载数据
- U.MD.U.NP.DTG = function () {
- var _UDPD = U.selectEl("#U_MD_U_NP")[0]; //推广框
- U.UF.F.windowTopCenter(_UDPD); //居中
- // U.MD.D.T.WindowRestore(_UDPD, null, "推广"); //创建任务栏链接
- }
- //-----------------------------------------------------推广介绍
- U.MD.U.NP.DTGOD = function (TGID) {
- var _UDTD = U.selectEl("#U_MD_U_NP_XW")[0],
- _UDAD = U.selectEl("div", _UDTD),
- _UGN = U.MD.U.NP.GN[TGID]["TT"];
- for (var i = 0; i < _UGN.length; i++) {
- if (i == 1) {
- continue;
- }
- if (i > 0 && i < _UGN.length - 1) {
- _UDAD[i].innerHTML = _UGN[i];
- }
- else {
- _UDAD[i].className = _UGN[i] + " U_MD_U_NP_I";
- }
- }
- _UDAD[_UDAD.length - 2].onclick = function () {
- U.MD.U.NP.GTGURL(TGID);
- }; //点击获取推广地址
- }
- //-----------------------------------------------------------------------------有效点击
- //加载该用户已有的推广数据
- U.MD.U.NP.NTG = function (T) {
- if (!U.MD.U.L.isLogin()) {
- if (US.userInfo.TGD && US.userInfo.TGD["NTG"] && T == null) {
- U.MD.U.NP.PLTG(US.userInfo.TGD["NTG"]);
- U.MD.U.NP.LTTG(US.userInfo.TGD["YXT"]);
- U.selectEl("#U_MD_U_NP_DPI")[0].innerText = "";
- U.MD.U.NP.GTGFW(0);
- }
- else {
- U.A.Request("UseStudioPay.GetUserAllTG", [US.userInfo.userid], U.MD.U.NP.AsynNTG, [$("#U_MD_U_NP_A")[0]]);
- // U.selectEl("#U_MD_U_NP_A")[0].onscroll = U.UF.EV.scrollLoad({ 'AF': U.MD.U.NP.GFWTG }).SCH();
- U.UF.EV.scrollLoad($("#U_MD_U_NP_A")[0], function () {
- U.MD.U.NP.GFWTG
- });
- } //异步获取
- }
- }
- //异步获取推广数据
- U.MD.U.NP.AsynNTG = function (r) {
- var _context = r.context;
- r = r.value;
- if (US.userInfo.TGD == null) { US.userInfo.TGD = {} };
- US.userInfo.TGD["NTG"] = r[0];
- US.userInfo.TGD["YXT"] = U.MD.U.NP.DT(r[1]); //区分有效统计和注册
- US.userInfo.TGD["YXD"] = [r[2]];
- U.MD.U.NP.NTG();
- }
- //区分有效统计 点击和注册
- U.MD.U.NP.DT = function (UTL) {
- var i, j, _TF = [];
- for (i = 0; i < UTL.length; i++) {
- _TF[i] = []; _TF[i].push(UTL[i]);
- for (j = i + 1; j < UTL.length; j++) {
- if (UTL[j]["TGUserInfoID"] == UTL[i]["TGUserInfoID"]) {
- _TF[i].push(UTL[j]); UTL.splice(j, 1);
- }
- }
- }
- return _TF;
- }
- //用户已有的推广数据
- U.MD.U.NP.PLTG = function (UTL) {
- var i, j, k,
- _UDPD = U.selectEl("#U_MD_U_NP_DTD")[0],
- _el, _UDTD, _UDI,
- _UDFD = $$("frag"),
- _UAFD = [],
- _UAT = ["disk", "photo", "music", "video", "blog"];
- _UDPD.innerText = "";
- if (UTL.length > 0) {
- U.selectEl("#U_MD_U_NP_DUN")[0].innerHTML = US.userInfo.TrueName || US.userInfo.UserNickName; //用户推广名
- for (i = 0; i < UTL.length; i++) {
- _UAFD.push(UTL[i]["TY"] + UTL[i]["TGUserInfoID"]); //基础推广地址
- if (UTL[i]["TGID"] == "fd01dd1b-9c87-4e4f-a3fb-af1b91bf56f8") {
- for (j = 0; j < _UAT.length; j++) {
- _UAFD.push(US.DOMAIN + "#!/" + _UAT[j] + "/" + US.userInfo.username);
- }
- }
- _el = $$("div", { "className": "U_MD_U_NP_DTDD" }, _UDFD);
- $$("div", { "className": "U_MD_U_NP_DTDDN", "innerHTML": U.MD.U.NP.GN[UTL[i]["TGID"]]["TT"][2] + ':' }, _el);
- for (k = 0; k < _UAFD.length; k++) {
- _UDTD = $$("div", { "className": "U_MD_U_NP_DTDDA" }, _el);
- _UDI = $$("input",
- {
- "className": "U_MD_U_NP_DTDDS",
- "readOnly": "true",
- "value": _UAFD[k],
- "oncopy": function () {
- U.UF.EV.stopBubble();
- U.UF.C.copy("retElement.value");
- }
- }, _UDTD);
- $$("div",
- {
- "innerHTML": "复制",
- "className": "U_MD_U_NP_DTDDF",
- "style":
- {
- "cssText": "float:right"
- },
- "onclick": function () {
- U.UF.EV.stopBubble();
- U.UF.C.copy(_UDI.value);
- }
- }, _UDTD); //复制按钮
- }
- _UAFD.splice(0, _UAFD.length);
- }
- _UDPD.appendChild(_UDFD);
- }
- else { _UDPD.innerText = "没有推广分类文类"; }
- }
- //打印有效统计
- U.MD.U.NP.LTTG = function (UTL) {
- var _UDPD = U.selectEl("#U_MD_U_NP_DWP")[0],
- _el, _UDTD, _UDSD,
- _UDFD = $$("frag");
- _UDPD.innerText = "";
- for (var i = 0; i < UTL.length; i++) {
- _el = $$("div", { "className": "U_MD_U_NP_DWP" }, _UDFD);
- _UDTD = $$("div", { "className": "U_MD_U_NP_DWY" }, _el);
- $$("div", { "className": "U_MD_U_NP_DWYN", "innerHTML": U.MD.U.NP.GN[UTL[i][0]["TGID"]]["TT"][2] + "点击次数" }, _UDTD);
- $$("div", { "className": "U_MD_U_NP_DWYS", "innerHTML": UTL[i][0]["C"] }, _UDTD);
- _UDSD = $$("div", { "className": "U_MD_U_NP_DWY" }, _el);
- $$("div", { "className": "U_MD_U_NP_DWYN", "innerHTML": U.MD.U.NP.GN[UTL[i][0]["TGID"]]["TT"][2] + "成功注册" }, _UDSD);
- $$("div", { "className": "U_MD_U_NP_DWYS", "innerHTML": UTL[i][1] ? UTL[i][1]["C"] : "0" }, _UDSD);
- }
- _UDPD.appendChild(_UDFD);
- }
- //---------------------------------------------------------------------有效地址
- //滚动加载访问地址
- U.MD.U.NP.GFWTG = function () {
- if (U.MD.U.NP.GTGFW.call(this, (this.P + 1)).length == 0) {
- this.P -= 1;
- this.TF = false;
- return false;
- }
- }
- //获取打印有效数据
- U.MD.U.NP.GTGFW = function (P) {
- var _UTL = U.MD.U.NP.GYXFW(P);
- if (_UTL) { U.MD.U.NP.FWTG(_UTL); }
- else {
- var _FP = Math.floor(P / 5);
- U.A.Request("UseStudioPay.GetTGYXSL", [US.userInfo.userid, _FP * 50, (_FP + 1) * 50 - 1], U.MD.U.NP.AsynGTGFW, ["", P, this]);
- return [];
- }
- return _UTL;
- }
- //异步获取
- U.MD.U.NP.AsynGTGFW = function (r) {
- var _context = r.context;
- r = r.value;
- US.userInfo.TGD["YXD"].push(r);
- U.MD.U.NP.GTGFW(_context[1]);
- _context[2].TF = true;
- }
- //获取有效数据
- U.MD.U.NP.GYXFW = function (P) {
- if (US.userInfo.TGD) {
- var _UTGP = US.userInfo.TGD["YXD"],
- TP = Math.floor(P / 5), FP = (P - TP * 5);
- if (_UTGP[TP]) {
- return _UTGP[TP].slice(FP * 10, (FP + 1) * 10);
- }
- }
- }
- //访问地址打印
- U.MD.U.NP.FWTG = function (UTL) {
- if (UTL.length > 0) {
- var _UDPD = U.selectEl("#U_MD_U_NP_DPI")[0],
- _el,
- _UTD,
- _UDFD = $$("frag");
- for (var i = 0; i < UTL.length; i++) {
- eval("0,_UTD =" + UTL[i]["TGAdress"]);
- _el = $$("div", { "className": "U_MD_U_NP_DPH U_MD_U_NP_DPIF", "style": { "backgroundColor": "White" } }, _UDPD);
- $$("div", { "className": "U_MD_D_Text_Abbreviation", "style": { "marginLeft": "0px" }, "innerHTML": UTL[i]["UserIp"] }, _el);
- $$("div", { "className": "U_MD_D_Text_Abbreviation", "innerHTML": _UTD["province"] + " " + _UTD["city"] }, _el);
- $$("div", { "className": "U_MD_D_Text_Abbreviation", "innerHTML": U.UF.D.getYearMonthDay(UTL[i]["Time"], "String") }, _el);
- $$("div", { "className": "U_MD_D_Text_Abbreviation", "innerHTML": U.MD.U.NP.GN[UTL[i]["TGID"]]["TT"][2] }, _el);
- $$("div", { "className": "U_MD_D_Text_Abbreviation", "innerHTML": UTL[i]["IsRegistration"] ? "成功" : "失败", "style": { "color": UTL[i]["IsRegistration"] ? "Red" : "" } }, _el);
- }
- _UDPD.appendChild(_UDFD);
- }
- }
- //-----------------------------------------------------------------排名
- //获取排名
- U.MD.U.NP.GPMTG = function (TF) {
- if (US.userInfo.TGD && US.userInfo.TGD["TGP"] && TF == null) {
- U.MD.U.NP.PMTG(US.userInfo.TGD["TGP"]);
- }
- else {
- U.A.Request("UseStudioPay.GetTGPM", [], U.MD.U.NP.AsynGPMTG, [$("#U_MD_U_NP_A")[0]]);
- }
- }
- //异步获取排名
- U.MD.U.NP.AsynGPMTG = function (r) {
- r = r.value;
- if (US.userInfo.TGD == null) { US.userInfo.TGD = {} };
- US.userInfo.TGD["TGP"] = r;
- U.MD.U.NP.GPMTG(); //打印排名
- }
- //打印用户排名
- U.MD.U.NP.PMTG = function (UTL) {
- var _UDPD = U.selectEl("#U_MD_U_NP_PG")[0],
- _el, _UDTD,
- _UDFD = $$("frag");
- _UDPD.innerText = "";
- for (var i = 0; i < UTL.length; i++) {
- _el = $$("div", { "className": "U_MD_U_NP_PH" + (i < 3 ? "" : " U_MD_U_NP_PHV") }, _UDFD);
- $$("div", { "className": "U_MD_U_NP_PHM", "innerHTML": (i + 1 < 10 ? "0" : "") + (i + 1) + ".", "style": { "color": i == 0 ? "#e06767" : "" } }, _el);
- _UDTD = $$("div", { "className": (i < 3 ? "U_MD_U_NP_PHH" : "U_MD_U_NP_PHHM") }, _el);
- $$("img",
- {
- "className": (i < 3 ? "U_MD_U_NP_PHHI" : "U_MD_U_NP_PHHIO"),
- "alt": UTL[i]["TrueName"] || UTL[i]["UserName"],
- "src": U.MD.C.getHeadImage(UTL[i].UserThumbnailImageHead),
- "onclick": [U.MD.U.V.POUW, [UTL[i]["UserID"]]]
- }, _UDTD);
- $$("div", { "className": "U_MD_U_NP_PHHS U_MD_D_Text_Abbreviation" + (i < 3 ? "" : " U_MD_U_NP_PHHSM"), "innerHTML": UTL[i]["TrueName"] || UTL[i]["UserName"] }, _UDTD);
- $$("div", { "className": "U_MD_U_NP_PHHS U_MD_D_Text_Abbreviation" + (i < 3 ? "" : " U_MD_U_NP_PHHSM"), "innerHTML": U.MD.U.NP.GN[UTL[i]["TGID"]]["TT"][2] }, _UDTD);
- }
- _UDPD.appendChild(_UDFD);
- }
- //----------------------------------------------------------------------辅助功能
- //添加用户访问地址
- //例子:2013年的推广,暂时没有使用
- U.MD.U.NP.AddUr = function (TGID) {
- U.A.Request("UseStudioPay.SetYXTG", [TGID, U.UF.C.jsonToStr(US.city)], U.MD.U.NP.AsynAddUr, [""]);
- }
- //通过用户id添加用户访问地址
- //例:
- U.MD.U.NP.AddUrID = function (userid) {
- U.A.Request("UseStudioPay.SetYXTGBYUID", [userid, U.UF.C.jsonToStr(US.city)], U.MD.U.NP.AsynAddUr, [""]);
- }
- //获取用户访问地址
- U.MD.U.NP.AsynAddUr = function (r) {
- r = r.value;
- U.MD.U.NP.TF = r;
- U.MD.U.NP.TGR(); //发送注册信息
- }
- //添加推广地址
- U.MD.U.NP.GTGURL = function (TGID) {
- if (!U.MD.U.L.isLogin()) {//必须登录获取用户信息
- if (US.userInfo.TGD && US.userInfo.TGD["NTG"] && U.MD.U.NP.GISTGURL(TGID)) {
- U.MD.U.NP.STG(1, U.selectEl("#U_MD_U_NP_A")[0]);
- return false;
- } //查看地址
- U.alert("正在获取中..."); //提示用户等待
- U.A.Request("UseStudioPay.SetUserTG", [US.userInfo.userid, TGID], U.MD.U.NP.AsynGTGURL, ["", TGID]); //添加用户注册信息
- }
- }
- //异步添加推广地址
- U.MD.U.NP.AsynGTGURL = function (r) {
- _context = r.context;
- r = r.value
- if (r) {
- if (US.userInfo.TGD && US.userInfo.TGD["NTG"]) {
- r = r.toLocaleLowerCase();
- var _ET = new U.MD.U.NP.TGE[_context[1], r, U.MD.U.NP.GN[_context[1]]["Url"]];
- };
- US.userInfo.TGD["NTG"].push(_ET);
- }
- U.MD.U.NP.STG(1, U.selectEl("#U_MD_U_NP_A")[0]); //查看地址
- }
- //获取推广地址是否存在
- U.MD.U.NP.GISTGURL = function (TGID) {
- var _UNTG = US.userInfo.TGD["NTG"];
- for (var i = 0; i < _UNTG.length; i++) {
- if (_UNTG[i]["TGID"] == TGID) {
- return _UNTG[i];
- }
- }
- return false;
- }
- //成功注册,添加推广信息,
- U.MD.U.NP.TGR = function () {
- if (U.MD.U.NP.TF && US.userInfo.userid) {//添加用户注册信息
- U.A.Request("UseStudioPay.UpAddR", [U.MD.U.NP.TF], function () { }, []);
- U.MD.U.NP.TF = false; //取消重复
- }
- }
- //推广切换
- U.MD.U.NP.STG = function (TF, UTFD) {
- TF = TF + 1; //显示的div
- var _UTAD = U.UF.EL.getChildrenNoText(UTFD.childNodes); //获取所有的子元素
- for (var i = 1; i < _UTAD.length; i++) {
- if (TF == 2 && US.userInfo.userid == null) {
- break;
- };
- if (TF == i) {
- _UTAD[i].style.display = "block";
- }
- else {
- _UTAD[i].style.display = "none";
- }
- }
- if (TF == 3) {
- U.MD.U.NP.GPMTG();
- } //查看排名
- else if (TF > 1) {
- if (!U.MD.U.L.isLogin()) {
- U.MD.U.NP.NTG();
- }
- } //用户推广资料
- }
- //-------------------------------------------------------------------辅助函数--------------------------------------------------------------
- //用户推广的实体
- U.MD.U.NP.TGE = function (E) {
- this.TGID = E[0];
- this.TGUserInfoID = E[1];
- this.TY = E[2];
- }
|