123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375 |
- ! function(e) {
- var n = {};
- function t(o) { if (n[o]) return n[o].exports; var i = n[o] = { i: o, l: !1, exports: {} }; return e[o].call(i.exports, i, i.exports, t), i.l = !0, i.exports }
- t.m = e, t.c = n, t.d = function(e, n, o) { t.o(e, n) || Object.defineProperty(e, n, { enumerable: !0, get: o }) }, t.r = function(e) { "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e, "__esModule", { value: !0 }) }, t.t = function(e, n) {
- if (1 & n && (e = t(e)), 8 & n) return e;
- if (4 & n && "object" == typeof e && e && e.__esModule) return e;
- var o = Object.create(null);
- if (t.r(o), Object.defineProperty(o, "default", { enumerable: !0, value: e }), 2 & n && "string" != typeof e)
- for (var i in e) t.d(o, i, function(n) { return e[n] }.bind(null, i));
- return o
- }, t.n = function(e) { var n = e && e.__esModule ? function() { return e.default } : function() { return e }; return t.d(n, "a", n), n }, t.o = function(e, n) { return Object.prototype.hasOwnProperty.call(e, n) }, t.p = "D:\\works\\2_code\\orderchannel\\src\\main\\webapp./douyin/rbtagr12uni/v1/dist/", t(t.s = 0)
- }([function(e, n, t) {
- "use strict";
- function o(e, n, t, o) {
- var i = "";
- null != o && 0 != o || (i = "温馨提示");
- var a = $('<div class="overlay overlay-alert"></div>'),
- r = $('<div class="dialog-alert"><h1>' + i + '</h1><div class="content">' + e + '</div><div class="actions"> <div class="btn">' + (null == t || "" == t ? "关闭" : t) + "</div></div></div>");
- $("body").css("overflow", "hidden"), a.appendTo($(document.body)), r.appendTo($(document.body)), 1 == n && r.find(".btn").remove(), r.close = function() { $("body").css("overflow", "auto"), a.remove(), r.remove(), r = null };
- var c = $.Deferred();
- return r.find(".btn").on("click", (function() { r.close(), c.resolve(r) })), c
- }
- function i(e) {
- window.$loading && window.$loading.trigger("close"), $("body").css("overflow", "hidden");
- var n = e || "处理中,请稍后...",
- t = $('<div class="overlay overlay-loading"></div>'),
- o = $('<div class="loading"> <div class="content">' + n + "</div></div>");
- return t.appendTo($(document.body)), o.appendTo($(document.body)), o.on("close", (function() { $("body").css("overflow", "auto"), t.remove(), o.remove(), o = null })), window.$loading = o, o
- }
- function a(e) { e ? e.trigger("close") : window.$loading && window.$loading.trigger("close") }
- function r(e) { $(e || document.body).data("use", "0") }
- t.r(n), Date.remainMillis = function() { var e = new Date; return 60 * (23 - e.getHours()) * 60 * 1e3 + 60 * (59 - e.getMinutes()) * 1e3 + 1e3 * (59 - e.getSeconds()) }, Date.remainMillisMonth = function() {
- var e = new Date,
- n = e.getMonth();
- return e.setMonth(n + 1), e.setDate(0), e.getDate(), e.getDate() - (new Date).getDate()
- }, Date.from = function(e) { var n = e.replace(/-/g, "/"); return n = n.replace(/(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})/, "$1/$2/$3 $4:$5:$6"), new Date(n) }, Date.prototype.format = function(e) { var n = { "M+": this.getMonth() + 1, "d+": this.getDate(), "h+": this.getHours(), "m+": this.getMinutes(), "s+": this.getSeconds(), "q+": Math.floor((this.getMonth() + 3) / 3), S: this.getMilliseconds() }; for (var t in /(y+)/.test(e) && (e = e.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length))), n) new RegExp("(" + t + ")").test(e) && (e = e.replace(RegExp.$1, 1 == RegExp.$1.length ? n[t] : ("00" + n[t]).substr(("" + n[t]).length))); return e };
- var c = {},
- l = {},
- s = {},
- d = {},
- u = null;
- function v(e, n, t) {
- var i = $.Deferred();
- if (!(null != e.attr("n") && e.attr("n") > 0)) {
- var a = e.find(".usermob").val();
- if (null == a || "" == a.trim()) return o("请输入联通手机号码"), i.reject(), i;
- if (!a.startsWith("1") || 11 != a.length) return o("手机号码格式不正确"), i.reject(), i;
- var r = { fes: c.fes, sou: c.sou, fog: l.fog, usermob: a, smstype: n };
- d.usermob = a;
- var s = 60;
- e.attr("n", s), $.ajax({ url: u + "/sms/send", type: "POST", contentType: "application/json", data: JSON.stringify(r) }).then((function(n) {
- if ("0000" != n.resultCode) return s = 0, e.attr("n", s), void o(n.errorInfo);
- var t = e.find(".sendcode");
- t.is("input") ? t.val("{}s".replace("{}", s)) : t.text("{}s".replace("{}", s)), t.addClass("sendcode-wait");
- var i = setInterval((function() { s -= 1, e.attr("n", s), t.is("input") ? t.val("{}s".replace("{}", s)) : t.text("{}s".replace("{}", s)), 0 === s && (clearInterval(i), t.is("input") ? t.val("获取验证码") : t.text("获取验证码"), e.attr("n", s), t.removeClass("sendcode-wait")) }), 1e3);
- try { window.HtmlPageVisitor && window.HtmlPageVisitor.setMp(d.usermob) } catch (e) {}
- }))
- }
- }
- function f(e, n) {
- var t = $.Deferred(),
- i = e.find(".usermob").val(),
- a = e.find(".smscode").val();
- if (null == n && (n = !1), null == i || "" == i.trim()) return o("请输入联通手机号码"), t.reject(), t;
- if (null == a || "" == a.trim()) return o("请输入验证码"), t.reject(), t;
- if (6 != a.length) return o("短信验证码不正确"), t.reject(), t;
- var r = { fes: c.fes, sou: c.sou, fog: l.fog, code: a, usermob: i };
- return $.ajax({ url: u + "/checkvercode", type: "POST", contentType: "application/json", data: JSON.stringify(r) }).then((function(a) {
- switch (e.find(".smscode").val(""), a.resultCode) {
- case "0000":
- d.userid = a.userid, d.usermob = i, d.usertime = (new Date).getTime(), n || (e.find(".usermob").val(""), e.find(".usermob").val("")), t.resolve(a.userid);
- break;
- default:
- o(a.errorInfo), t.reject(a)
- }
- })).fail((function(e) { t.reject("服务调用异常") })), t
- }
- var p = !0;
- function m(e) {
- var n = { fog: l.fog || fog || "", userid: e || d.userid };
- $.ajax({ url: u + "/decodeUserid", type: "POST", contentType: "application/json", data: JSON.stringify(n) }).then((function(e) { "0" == e.resultCode && (d.usermob = e.usermob) }))
- }
- function b(e) { var n = { fog: l.fog || e || "", channel: "" }; return $.ajax({ url: u + "/ini/gensign", type: "POST", contentType: "application/json", data: JSON.stringify(n) }) }
- function w(e) { localStorage.setItem("user" + l.productid, JSON.stringify(d)), localStorage.setItem("time" + l.productid, e || (new Date).getTime() + "") }
- function g(e) {
- if (c.userid) return d.userid = c.userid, void(d.usermob = c.usermob);
- try {
- var n = localStorage.getItem("time" + l.productid);
- if (n) {
- if ((new Date).getTime() <= parseFloat(n) + (e || 36e5)) {
- var t = localStorage.getItem("user" + l.productid);
- null != t && ((d = JSON.parse(t)).userid = d.userid, d.usermob = d.usermob)
- } else localStorage.removeItem("time" + l.productid), localStorage.removeItem("user" + l.productid);
- return d
- }
- localStorage.removeItem("time" + l.productid), localStorage.removeItem("user" + l.productid)
- } catch (e) {}
- }
- function h() {
- var e = window.document.location.href,
- n = window.document.location.pathname,
- t = e.indexOf(n),
- o = e.substring(0, t),
- i = n.substring(0, n.substr(1).indexOf("/") + 1);
- return u = o + i, o + i
- }
- function y(e) {
- if ("https://800.wo.cn/orderchannel/hd/Dy/order202005.html?fes=jh7" != window.location.href) {
- window.location.href.indexOf("jiangtao") >= 0 && alert(window.location.href);
- var n = new RegExp("(^|&)" + e + "=([^&]*)(&|$)"),
- t = window.location.search.substr(1).match(n);
- if (null != t) return t[2];
- switch (e) {
- case "con":
- return "1";
- case "freeflow_token":
- return "";
- default:
- var o = h() + "/404.html";
- $(location).attr("href", o)
- }
- } else window.location.href = "https://800.wo.cn/orderchannel/hd/Dy/order202005.html?fes=jh7&sou=12"
- }
- function x(e, n, t, o) {
- var i = k("uuid"),
- a = k("vvid");
- if (null != i && "" != i.trim() || T("uuid", i = O(), Date.remainMillis()), null != a && "" != a.trim() || T("vvid", a = O(), -1), null != e && "" != e) {
- var r = { operid: e, uuid: i, vvid: a, fog: l.fog, userid: d.userid, fes: c.fes, sou: c.sou, url: encodeURIComponent(t || window.location.href), remark: encodeURIComponent(n || "") };
- $.ajax({ url: u + "/burypoint/logid", type: "POST", contentType: "application/json", data: JSON.stringify(r) }).then((function(e) {}))
- }
- }
- function k(e) { var n, t = new RegExp("(^| )" + e + "=([^;]*)(;|$)"); return (n = document.cookie.match(t)) ? unescape(n[2]) : null }
- function T(e, n, t) {
- t = null == t ? 0 : t;
- var o = new Date;
- t < 0 ? document.cookie = e + "=" + escape(n) : (o.setTime(o.getTime() + t), document.cookie = e + "=" + escape(n) + ";expires=" + o.toGMTString())
- }
- function O() { return "xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g, (function(e) { var n = 16 * Math.random() | 0; return ("x" == e ? n : 3 & n | 8).toString(16) })) }
- function I() {
- var e = navigator.userAgent.indexOf("Baidu") > -1;
- if (e) return e;
- var n = navigator.userAgent.indexOf("OPR") > -1,
- t = navigator.userAgent.indexOf("Firefox") > -1,
- o = navigator.userAgent.indexOf("UCBrowser");
- if (!n || !t || !o) return !1;
- var i = navigator.userAgent.indexOf("MicroMessenger") > -1,
- a = navigator.userAgent.indexOf("Safari") > -1,
- r = navigator.userAgent.indexOf("Chrome") > -1;
- return i || e || a || r
- }
- t(1);
- function P(e) {
- var n = function() {
- var e = $('<div class="overlay"></div>'),
- n = $('<div id="section-must-read" class="section-must-read"> <div class="agr-title"> </div> <div class="close"></div> <div class="agr-content">' + D + '</div> <div class="action"> <div class="btn cancel" style="background:#FAABD3">我已经阅读并同意规则(5s)</div> </div></div>');
- e.appendTo($(document.body)), n.appendTo($(document.body)), $("body").css("overflow", "hidden"), n.close = function() { e.remove(), n.remove(), $("body").css("overflow", "auto") }, n.hide = function() { n.close() }, n.show = function() { e.css("display", "block"), n.css("display", "block") }, n.find(".close").unbind("click").on("click", (function() { n.close(), r() }));
- var t = 4,
- o = self.setInterval((function() { 0 == t ? (window.clearInterval(o), n.find(".cancel").css("background", "#FF0083"), n.find(".cancel").html("我已经阅读并同意规则")) : n.find(".cancel").html("我已经阅读并同意规则(" + t-- + "s)") }), 1e3);
- return e.on("click", (function() { n.close(), r() })), n
- }();
- n.find(".cancel").unbind("click").on("click", (function() {
- "我已经阅读并同意规则" == n.find(".cancel").html() && (n.close(), r(), function(e, n, t, r, s, u) {
- var v, f, w, g;
- p = !1, null != e && null == l.fog && (l.fog = e), t || $("body").css("overflow", "hidden"), window.location.href.indexOf("https://800.wo.cn/orderchannel") >= 0 ? (v = "https://800.wo.cn/cap/CAP-AUTH.html", f = "https://800.wo.cn/") : window.location.href.indexOf("https://800.wo.cn/festivalchannel") >= 0 ? (v = "https://800.wo.cn/festivalcap/CAP-AUTH.html", f = "https://800.wo.cn/") : window.location.href.indexOf("http://localhost") >= 0 ? (v = "http://localhost:8088/cap/CAP-AUTH.html", f = "http://localhost:8088/") : window.location.href.indexOf("http://127.0.0.1") >= 0 ? (v = "http://127.0.0.1:8088/cap/CAP-AUTH.html", f = "http://127.0.0.1:8088/") : window.location.href.indexOf("http://100.0.4.69:3344") >= 0 ? (v = "http://100.0.4.69:3344/cap/CAP-AUTH.html", f = "http://100.0.4.69:3344/") : window.location.href.indexOf("http://100.0.4.69:8282") >= 0 ? (v = "http://100.0.4.69:8282/cap/CAP-AUTH.html", f = "http://100.0.4.69:8282/") : (v = "https://800.wo.cn/festivalcap/CAP-AUTH.html", f = "https://800.wo.cn/"), null != $("#nanyanad").val() && (v += "?ad=" + $("#nanyanad").val()), (w = $("#uniauthframe").length >= 1 ? $("#uniauthframe").attr("src", v) : $('<iframe id="uniauthframe" src="' + v + '"></iframe>')).css({ width: "100%", height: "100%", position: "fixed", top: 0, left: 0, margin: 0, padding: 0, "-webkit-overflow-scrolling": "touch", border: "0px" }), i(), w.on("load", (function() { $capoverlay.remove(), b(e).then((function(e) { a(), e.orderChannel = c.fes + "_" + c.sou, null != n && "" != n && (e.productName = n), null != u && "" != u && (e.capTemplet = u); try { w[0].contentWindow.postMessage(JSON.stringify(e), f) } catch (e) {} })) })), navigator.userAgent.indexOf("MicroMessenger") >= 0 && (window.capTimer = setInterval((function() { g = document.documentElement.scrollTop || document.body.scrollTop, g -= 1, window.top.scrollTo(0, g), g += 1, window.top.scrollTo(0, g) }), 200));
- window.$capoverlay = $('<div class="overlay" style="z-index: 0"></div>'), $capoverlay.appendTo($(document.body)), 0 == $("#uniauthframe").length ? $("body").append(w) : w.css("position", "unset").css("min-height", "10rem");
- var h = $.Deferred();
- return window.addEventListener("message", (function e(n) {
- var t = JSON.parse(n.data);
- switch (t.resultcode) {
- case "0":
- w.remove(), $capoverlay.remove(), window.removeEventListener("message", e), $("body").css("overflow", "auto"), clearInterval(window.capTimer), d.token = t.token, d.userid = decodeURIComponent(t.userid), d.userid1 = t.userid1, d.usermob = t.usermob, d.usertime = (new Date).getTime(), s && m();
- try { window.HtmlPageVisitor && window.HtmlPageVisitor.setMp(t.usermob) } catch (e) {}
- h.resolve(d);
- break;
- case "9001":
- w.remove(), $capoverlay.remove(), window.removeEventListener("message", e), clearInterval(window.capTimer), $("body").css("overflow", "auto"), h.reject(t), null != r && r && !p && ("1" == c.test && alert(navigator.userAgent), I() && (p = !0, history.back()));
- break;
- case "0001":
- case "0003":
- case "0006":
- case "4444":
- break;
- case "99999":
- t.operid && x(t.operid), t.ea && WoAnalytics.addPoint({ ad: $("#nanyanad").val(), ett: "open", ea: t.ea + $("#nanyanlabel").val(), ct: "web", pm: parseInt(y("sou"), 32) });
- break;
- default:
- w.remove(), $capoverlay.remove(), window.removeEventListener("message", e), $("body").css("overflow", "auto"), clearInterval(window.capTimer), o(t.errorinfo), h.reject(t)
- }
- })), h
- }().then((function(n) {
- console.log(e), r(),
- function(e, n, t, r) {
- i("处理中,请稍后..."),
- function(e, n, t, o) { var i = { fes: c.fes, sou: c.sou, fog: l.fog, token: n, userid: e || d.userid, usermob: t || d.usermob, useraccount: "", f: c.F, ringid: o || c.ringid }; return $.ajax({ url: u + "/comm/order", type: "POST", contentType: "application/json", data: JSON.stringify(i) }) }(e, n, t, r).done((function(e) {
- switch (a(), e.resultCode) {
- case "0000":
- return w(), L("订购成功"), void WoAnalytics.addPoint({ ad: $("#nanyanad").val(), ett: "click", ea: "order_success" + $("#nanyanlabel").val(), ct: "web", pm: parseInt(c.sou, 32) });
- case "0013":
- o("该号码归属省分2/3G暂未开通此产品!"), WoAnalytics.addPoint({ ad: $("#nanyanad").val(), ett: "click", ea: "order_failure" + $("#nanyanlabel").val(), ct: "web", pm: parseInt(c.sou, 32) });
- break;
- case "6611":
- o("错误代码(6611),订购失败,请重试!"), WoAnalytics.addPoint({ ad: $("#nanyanad").val(), ett: "click", ea: "order_failure" + $("#nanyanlabel").val(), ct: "web", pm: parseInt(c.sou, 32) });
- break;
- case "6615":
- o("订购失败,请确定用户套餐!"), WoAnalytics.addPoint({ ad: $("#nanyanad").val(), ett: "click", ea: "order_failure" + $("#nanyanlabel").val(), ct: "web", pm: parseInt(c.sou, 32) });
- break;
- case "6622":
- o("您已经订购了本产品~"), w(), WoAnalytics.addPoint({ ad: $("#nanyanad").val(), ett: "click", ea: "order_failure" + $("#nanyanlabel").val(), ct: "web", pm: parseInt(c.sou, 32) });
- break;
- default:
- o(e.errorInfo + ",订购失败,请确定用户套餐!"), WoAnalytics.addPoint({ ad: $("#nanyanad").val(), ett: "click", ea: "order_failure" + $("#nanyanlabel").val(), ct: "web", pm: parseInt(c.sou, 32) })
- }
- })).fail((function(e) { a(), console.log(e) }))
- }(n.userid, n.token, n.usermob, e || c.ringid)
- })).fail((function(e) { r() })), WoAnalytics.addPoint({ ad: $("#nanyanad").val(), ett: "click", ea: "order_click_order_btn" + $("#nanyanlabel").val(), ct: "web", pm: parseInt(c.sou, 32) }))
- })), n.find(".close").unbind("click").on("click", (function() { n.close(), r() }))
- }
- function S(e) {
- for (var n = 0; n < window.rbtMvList.length; n++)
- if (window.rbtMvList[n].label == e) {
- var t = parseInt($("#" + e).attr("total")),
- o = parseInt($("#" + e).attr("showcount"));
- if (o == parseInt($("#" + e).attr("oldshowcount")) + 6) { $("#" + e).attr("oldshowcount", o); break }
- if ("1" == window.rbtMvList[n].shown) continue;
- $("#" + e).attr("showcount", o + 1), window.rbtMvList[n].shown = "1";
- var i = $('<div class="rbt-item"> <div class="rbt-main" src="' + window.rbtMvList[n].videUrl + '" poster="' + window.rbtMvList[n].coverUrl + '" contentid="' + window.rbtMvList[n].contentid + '" contentname="' + window.rbtMvList[n].contentname + '"> <img class="rbt-cover" src="' + window.rbtMvList[n].coverUrl + '"> <img class="rbt-play" src="v1/images/icon-play.png"> <div class="btn btn-setting">设为彩铃</div> </div> <div class="rbt-title">' + window.rbtMvList[n].contentname + "</div></div>");
- if (i.find(".rbt-play").unbind("click").on("click", (function(e) {
- var n = $(e.target).parent().attr("src"),
- t = $(e.target).parent().attr("poster");
- j(n, $(e.target).parent().attr("contentid"), $(e.target).parent().attr("contentname"), t)
- })), i.find(".btn-setting").on("click", (function() { M($(event.target).parent().attr("contentid"), $(event.target).parent().attr("contentname")) })), i.appendTo($("#rbtmv-content")), t == o + 1) $('<div class="no-more"><div class="line"></div><div class="title">已经到底啦</div><div class="line"></div></div>').appendTo($("#rbtmv-content"))
- }
- }
- function M(e, n) {
- if (null != e && "" != e.trim()) {
- var t = g();
- null != t && null != t.userid ? _(t.userid, null, e, n) : function(e, n) {
- var t = $('<div class="overlay"></div>'),
- i = $('<div class="fixed-center section-setting"> <div class="content"> <div class="form-group"> <input class="mobile" maxLength="11" type="tel" placeholder="输入联通手机号码"> </div> </div> <div class="actions"> <div class="btn btn-lg btn-primary">去设置</div> </div></div>');
- t.appendTo($(document.body)), i.appendTo($(document.body)), i.close = function() { t.remove(), i.remove() }, i.find(".btn").on("click", (function(t) {
- var a = i.find(".mobile").val();
- null != a && 11 == a.length ? (i.close(), _(null, a, e, n)) : o("请输入正确的手机号码!")
- })), t.on("click", (function() { i.close() }))
- }(e, n)
- } else o("请选择一个视频彩铃!")
- }
- function A(e, n) {
- C("确认设置“" + n + "” 为" + (d.usermob.substr(0, 3) + "xxxx" + d.usermob.substr(7, 4)) + "的视频彩铃吗?", (function() {
- i(),
- function(e, n) { var t = { fes: c.fes, sou: c.sou, fog: l.fog, userid: n || d.userid, ringid: e }; return $.ajax({ url: u + "/rbtmv/setting", type: "POST", contentType: "application/json", data: JSON.stringify(t) }) }(e).done((function(e) { a(), "0000" == e.resultCode ? (L("设置成功"), WoAnalytics.addPoint({ ad: $("#nanyanad").val(), ett: "click", ea: "draw_success" + $("#nanyanlabel").val(), ct: "web", pm: parseInt(c.sou, 32) })) : (o(e.errorInfo), WoAnalytics.addPoint({ ad: $("#nanyanad").val(), ett: "click", ea: "draw_failure" + $("#nanyanlabel").val(), ct: "web", pm: parseInt(c.sou, 32) })), WoAnalytics.addPoint({ ad: $("#nanyanad").val(), ett: "click", ea: "draw_click_confirm_btn" + $("#nanyanlabel").val(), ct: "web", pm: parseInt(c.sou, 32) }) }))
- }))
- }
- function _(e, n, t, r) {
- g(), null == d || null == d.userid || "0000" != d.orderStatus && "0001" != d.orderStatus ? (i(), function(e, n) { var t = { fes: c.fes, sou: c.sou, fog: l.fog, userid: e || d.userid, usermob: n || d.usermob }; return $.ajax({ url: u + "/comm/queryorder", type: "POST", contentType: "application/json", data: JSON.stringify(t) }) }(e, n).then((function(l) {
- switch (a(), l.resultCode) {
- case "0000":
- case "0001":
- null != d && null != d.userid && (d.orderStatus = l.resultCode, w()), e ? A(t, r) : function(e, n, t) {
- var o = $('<div class="overlay"></div>'),
- r = $('<div class="fixed-center section-setting"> <div class="content"> <div class="form-group"> <input type="hidden" class="usermob" value="' + e + '"> <input class="code smscode" maxLength="6" type="tel" placeholder="输入联通验证码"> <input class="send sendcode" type="button" value="发送验证码"> </div> </div> <div class="actions"> <div class="btn close">取消</div> <div class="btn btn-primary login">确认</div> </div></div>');
- o.appendTo($(document.body)), r.appendTo($(document.body)), r.find(".close").unbind("click").on("click", (function() { r.close() })), r.find(".sendcode").on("click", (function() { v(r, "drawlogin"), WoAnalytics.addPoint({ ad: $("#nanyanad").val(), ett: "click", ea: "draw_click_send_sms_code_btn" + $("#nanyanlabel").val(), ct: "web", pm: parseInt(c.sou, 32) }) })), r.find(".login").on("click", (function() { i(), f(r).done((function() { a(), w(), r.close(), A(n, t) })).fail((function() { a() })) })), r.find(".sendcode").trigger("click"), $("body").css("overflow", "hidden"), r.close = function() { o.remove(), r.remove(), r = null, $("body").css("overflow", "auto") }
- }(n, t, r);
- break;
- case "9201":
- C("您未订购视频彩铃包产品", (function() { P(t) }), "取消", "去订购");
- break;
- default:
- o(l.errorInfo)
- }
- }))) : A(t, r)
- }
- function j(e, n, t, o) {
- var i = $('<div class="section-preview"> <div class="content"> <div class="close"><span>《</span>返回</div> <video src="' + e + '" poster="' + o + '"></video> <div class="play"></div> <div class="dail"></div> <div class="setting">设为视频彩铃</div> <a class="must-know" href="https://m.10155.com/h5/mactivity/terminal.html">设置须知</a> </div></div>');
- i.appendTo($(document.body)), i.close = function() { i.remove() };
- var a = i.find("video"),
- r = i.find(".play");
- return a.on("play", (function() { r.css("display", "none") })), a.on("pause", (function() { r.css("display", "block") })), a.on("ended", (function() { r.css("display", "block") })), a.on("click", (function() { a.prop("paused") ? a[0].play() : a[0].pause() })), r.on("click", (function() { a[0].play() })), i.find(".setting").on("click", (function() { M(n, t) })), i.find(".close").on("click", (function() { i.close() })), i
- }
- i(),
- function() {
- window.root = h(),
- function() {
- var e, n, t = window.location.search.substring(1),
- o = 0;
- for (; t.length > 0 && -1 != (e = t.indexOf("=", o));) {
- -1 == (n = t.indexOf("&", e + 1)) && (n = t.length);
- var i = t.substring(o, e),
- a = t.substring(e + 1, n);
- c[i] = decodeURIComponent(a), o = n + 1
- }
- }(), $("#useraccount_tt").attr("value", y("freeflow_token"));
- var e = { fes: c.fes, sou: c.sou, orderId: c.orderId },
- n = $.Deferred();
- return $.ajax({ url: u + "/ini/getstyle", type: "POST", contentType: "application/json", data: JSON.stringify(e), timeout: 1e4 }).then((function(e) {
- var t = JSON.parse(e);
- if ("0000" != t.resultCode) return window.location.href = window.root + "/404.html", n.reject(), n;
- for (l = t.product[0], i = 0; i < t.product.length; i++) s[t.product[i].productid] = t.product[i];
- $("#fog_" + l.url).attr("value", l.fog);
- for (var o = l.icon.split(","), i = 0; i < o.length; i++) 0 == i && $("#sendsms_order_" + l.url).attr("value", o[i]), 1 == i && $("#sendsms_cancel_" + l.url).attr("value", o[i]), 2 == i && $("#sendsms_yuyue_" + l.url).attr("value", o[i]);
- n.resolve(t)
- }), (function(e, n, t) { console.log(n), "timeout" === n && (window.location.href = h() + "/hot.html?cb=" + encodeURIComponent(window.location.href)) })), n
- }().then((function(e) {
- var n, t;
- a(), l = e.product[0], e.festival, (n = "2021073001", t = { productid: n, fog: l.fog }, $.ajax({ url: u + "/rbtmv/findRbtMvs", type: "POST", contentType: "application/json", data: JSON.stringify(t) })).then((function(e) {
- window.rbtMvList = JSON.parse(e).data, window.rbtMvListLength = JSON.parse(e).data.length;
- for (var n = 0; n < window.rbtMvList.length; n++) window.rbtMvList[n].shown = "0";
- ! function(e) {
- $("#rbt-item-box").empty();
- for (var n = {}, t = 0; t < window.rbtMvList.length; t++) null == n[window.rbtMvList[t].label] && (n[window.rbtMvList[t].label] = "其它");
- var o = [];
- $.each(n, (function(e, n) { "热门" == e ? (o[o.length] = o[0], o[0] = e) : o[o.length] = e })), $.each(o, (function(n, t) {
- var o = $('<div id="' + t + '" class="item" total="0" showcount="0" oldshowcount="0">' + t + "</div>");
- for (null == e && "热门" == t && (o.addClass("item-active"), e = "热门"), o.on("click", (function(e) {
- if (!$(e.target).hasClass("item-active")) {
- $("#rbt-item-box .item-active").removeClass("item-active"), $(e.target).addClass("item-active"), $(e.target).attr("showcount", "0"), $(e.target).attr("oldshowcount", "0"), $("#rbtmv-container").attr("scrollTop", 0), $("#rbtmv-content").empty();
- for (var n = 0; n < window.rbtMvList.length; n++) window.rbtMvList[n].shown = "0";
- S($(e.target).html())
- }
- })), n = 0; n < window.rbtMvList.length; n++)
- if (window.rbtMvList[n].label == t) {
- var i = o.attr("total");
- o.attr("total", parseInt(i) + 1)
- }
- o.appendTo($("#rbt-item-box"))
- })), S(e)
- }()
- })).fail((function(e) {})), $("#btn-order").unbind("click").on("click", (function() { var e; "1" != $(e || document.body).data("use") && ($(e || document.body).data("use", "1"), 1) && P(null) })), $("#open-agr").unbind("click").on("click", (function() {
- var e, n;
- e = $('<div class="overlay"></div>'), n = $('<div id="section-agr" class="section-agr"> <div class="agr-title"> <div class="close"></div> </div> <div class="agr-content">' + D + "</div></div>"), e.appendTo($(document.body)), n.appendTo($(document.body)), $("body").css("overflow", "hidden"), n.close = function() { e.remove(), n.remove(), $("body").css("overflow", "auto") }, n.hide = function() { n.close() }, n.show = function() { e.css("display", "block"), n.css("display", "block") }, n.find(".close").unbind("click").on("click", (function() { n.close() }))
- })), location.href.indexOf("/cancel") >= 0 ? (x("110002"), WoAnalytics.addPoint({ ad: $("#nanyanad").val(), ett: "open", ea: "cancel_open" + $("#nanyanlabel").val(), ct: "web", pm: parseInt(c.sou, 32) })) : location.href.indexOf("/draw") >= 0 ? (x("110003"), WoAnalytics.addPoint({ ad: $("#nanyanad").val(), ett: "open", ea: "draw_open" + $("#nanyanlabel").val(), ct: "web", pm: parseInt(c.sou, 32) })) : location.href.indexOf("/flow") >= 0 ? (x("110004"), WoAnalytics.addPoint({ ad: $("#nanyanad").val(), ett: "open", ea: "flow_open" + $("#nanyanlabel").val(), ct: "web", pm: parseInt(c.sou, 32) })) : location.href.indexOf("/active") >= 0 ? (x("110005"), WoAnalytics.addPoint({ ad: $("#nanyanad").val(), ett: "open", ea: "active_open" + $("#nanyanlabel").val(), ct: "web", pm: parseInt(c.sou, 32) })) : location.href.indexOf("/refund") >= 0 ? x("110006") : (x("110001"), WoAnalytics.addPoint({ ad: $("#nanyanad").val(), ett: "open", ea: "order_open" + $("#nanyanlabel").val(), ct: "web", pm: parseInt(c.sou, 32) }))
- }));
- var D = ' <div class="title">业务说明</div> <div class="content"> <ul> <li>1.本产品为协议产品,协议期12个月,协议期内,用户每月可享受15GB专属定向流量和抖音视频彩铃不限次设置权益; </li> <li>2.订购成功后,协议期内将自动从话费中扣除相应费用,直至协议期结束;</li> <li>3.协议期满前如用户未办理取消则协议自动顺延;</li> <li>4.该产品在协议期内无法操作退订,如需提前解约,请前往线下营业厅处理,协议期内退订需缴纳违约金,违约金计算:履约月份数*优惠金额3元; </li> <li>5.该产品中的抖音视频彩铃仅支持适配终端使用,适配手机终端型号可在温馨提示的视频彩铃说明中查看; </li> <li>6.达量限速套餐用户订购当前定向流量产品,包内定向流量不提升原套餐限速阈值和网速,不能作为限速后解限的加速包使用,依然执行基础套餐限速阈值的约定; </li> <li>7.该产品内定向流量仅限当月使用,未使用部分不能延续、累加至次月及以后各月使用,且服从联通套餐流量封顶统一限制;</li> <li>8.请在UNINET、3GNET 、WONET手机接入点环境下访问使用,其他接入点将无法正常使用定向流量;</li> <li>9.关于产品使用过程中有任何疑问可咨询联通客服:10010; </li> <li>10.对我们有任何意见和建议,点此<a href="https://account.bol.wo.cn/v2/feedback?clientId=directflow" style="color: #266cd6">反馈</a>。</li> </ul> </div> <div class="title">流量说明</div> <div class="content"> <ul> <li>1.定向流量适用范围包含:抖音短视频、今日头条、⻄瓜视频、火山小视频、多闪、懂⻋帝、图虫、皮皮虾、海豚股票、海豚财富、gogokid、轻颜、好好学习、⻜聊、时光相册、 半次元、⻜书、激萌、番茄畅听APP使用; </li> <li>2.定向流量适用范围不包含:发起直播及上传视频;第三方提供的广告、视频、图片;下载/缓存客户端及第三方链接视频所产生的流量; </li> <li>3.若您的套餐(如蚂蚁宝卡、阿里宝卡、钉钉宝卡或工商银行e卡等)流量使用范围包含头条系相关产品,将优先使用套餐内的专属定向流量,用罄后即消耗该产品包内的定向流量。</li> </ul> </div> <div class="title">视频彩铃说明</div> <div class="content"> <ul> <li>1.中国联通手机4G、5G套餐用户(其中5G腾讯王卡用户入网第三个月起)可以享受抖音视频彩铃服务;</li> <li>2.视频彩铃功能开通是设置/订购视频彩铃的前提,如果用户不支持视频彩铃功能开通,则无法设置 /订购视频彩铃;</li> <li>3.部分省分4G/5G联通用户如有一号多端IVPN服务,则不支持视频彩铃功能开通,即不支持视频彩铃业务使用;目前已有23个省分已支持一号多端IVPN服务同时使用视频彩铃业务,包括河南、湖北、浙江、四川、海南、河北、山东、山西、上海、江苏、福建、北京、江西、辽宁、吉林、内蒙古、广东、天津、湖南、贵州、陕西、广西、黑龙江;</li> <li>4.订购该产品用户可通过抖音APP客户端进入视频彩铃专区,享受音视频彩铃不限次设置服务,同时可通过页面进行彩铃DIY;</li> <li>5.成功设置视频彩铃后,其他人拨打已订购该产品的设备电话时,Ta就能看到已设置的视频;</li> <li>6.成功设置视频彩铃后,他人来电时看到已订购该产品设备的视频彩铃有2个条件:①Ta的终端支持播放中国联通视频彩铃;②Ta开通了VoLTE网络并拨打您电话时处于VoLTE网络下,手机信号显示HD或5G(编辑短信“DGVOLTE”至10010免费开通);注:仅支持联通用户间拨打观看;</li> <li>7.手机终端型号支持拨打呈现视频彩铃适用机型可通过关注“沃音乐”微信公众号发送“终端”进行查询或点击链接<a href="https://m.10155.com/h5/mactivity/terminal.html">https://m.10155.com/h5/mactivity/terminal.html</a>了解适配机型。</li> </ul> </div>';
- function L(e) {
- var n = $('<div class="overlay"></div>'),
- t = $('<div class="fixed-center section-setting section-alert"> <div class="content"> <div class="status"> <div class="status-icon"></div> <span class="status-name">' + e + '</span> </div> </div> <div class="actions"> <div class="btn btn-lg btn-primary">知道了</div> </div></div>');
- return n.appendTo($(document.body)), t.appendTo($(document.body)), t.find(".btn").unbind("click").on("click", (function() { t.close() })), t.close = function() { n.remove(), t.remove(), t = null, $("body").css("overflow", "auto") }, $("body").css("overflow", "hidden"), t
- }
- function C(e, n, t, o) {
- var i = $('<div class="overlay"></div>'),
- a = $('<div class="fixed-center section-message"> <div class="content">' + e + '</div> <div class="actions"> <div class="btn close btn-primary">' + (t || "取消") + '</div> <div class="btn okay btn-info">' + (o || "确认") + "</div> </div></div>");
- return i.appendTo($(document.body)), a.appendTo($(document.body)), a.find(".close").unbind("click").on("click", (function() { a.close() })), a.find(".okay").unbind("click").on("click", (function() { n && n(), a.close() })), a.close = function() { i.remove(), a.remove(), a = null }, a
- }
- $("#rbtmv-container").on("touchmove", (function(e) { $("#rbtmv-content").height() + $("#rbtmv-content").scrollTop() >= $("#rbtmv-container").height() && S($(".item-active")[0].id) })), $("#rbtmv-container").on("touchstart", (function(e) { $("#rbtmv-content").height() + $("#rbtmv-content").scrollTop() >= $("#rbtmv-container").height() && S($(".item-active")[0].id) }));
- var N = 0;
- let W = null;
- function E() { $("#rbtmv-content").scrollTop() == N && (console.log("滚动停止"), clearTimeout(W), $("#rbtmv-content").height() + $("#rbtmv-content").scrollTop() >= $("#rbtmv-container").height() - 200 && S()) }
- $("#rbtmv-content").on("scroll", (function(e) { clearTimeout(W), W = setTimeout(E, 100), N = $("#rbtmv-content").scrollTop() }))
- }, function(e, n) {}]);
|