main.pobu.js 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375
  1. ! function(e) {
  2. var n = {};
  3. 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 }
  4. 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) {
  5. if (1 & n && (e = t(e)), 8 & n) return e;
  6. if (4 & n && "object" == typeof e && e && e.__esModule) return e;
  7. var o = Object.create(null);
  8. if (t.r(o), Object.defineProperty(o, "default", { enumerable: !0, value: e }), 2 & n && "string" != typeof e)
  9. for (var i in e) t.d(o, i, function(n) { return e[n] }.bind(null, i));
  10. return o
  11. }, 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)
  12. }([function(e, n, t) {
  13. "use strict";
  14. function o(e, n, t, o) {
  15. var i = "";
  16. null != o && 0 != o || (i = "温馨提示");
  17. var a = $('<div class="overlay overlay-alert"></div>'),
  18. 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>");
  19. $("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 };
  20. var c = $.Deferred();
  21. return r.find(".btn").on("click", (function() { r.close(), c.resolve(r) })), c
  22. }
  23. function i(e) {
  24. window.$loading && window.$loading.trigger("close"), $("body").css("overflow", "hidden");
  25. var n = e || "处理中,请稍后...",
  26. t = $('<div class="overlay overlay-loading"></div>'),
  27. o = $('<div class="loading"> <div class="content">' + n + "</div></div>");
  28. 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
  29. }
  30. function a(e) { e ? e.trigger("close") : window.$loading && window.$loading.trigger("close") }
  31. function r(e) { $(e || document.body).data("use", "0") }
  32. 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() {
  33. var e = new Date,
  34. n = e.getMonth();
  35. return e.setMonth(n + 1), e.setDate(0), e.getDate(), e.getDate() - (new Date).getDate()
  36. }, 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 };
  37. var c = {},
  38. l = {},
  39. s = {},
  40. d = {},
  41. u = null;
  42. function v(e, n, t) {
  43. var i = $.Deferred();
  44. if (!(null != e.attr("n") && e.attr("n") > 0)) {
  45. var a = e.find(".usermob").val();
  46. if (null == a || "" == a.trim()) return o("请输入联通手机号码"), i.reject(), i;
  47. if (!a.startsWith("1") || 11 != a.length) return o("手机号码格式不正确"), i.reject(), i;
  48. var r = { fes: c.fes, sou: c.sou, fog: l.fog, usermob: a, smstype: n };
  49. d.usermob = a;
  50. var s = 60;
  51. e.attr("n", s), $.ajax({ url: u + "/sms/send", type: "POST", contentType: "application/json", data: JSON.stringify(r) }).then((function(n) {
  52. if ("0000" != n.resultCode) return s = 0, e.attr("n", s), void o(n.errorInfo);
  53. var t = e.find(".sendcode");
  54. t.is("input") ? t.val("{}s".replace("{}", s)) : t.text("{}s".replace("{}", s)), t.addClass("sendcode-wait");
  55. 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);
  56. try { window.HtmlPageVisitor && window.HtmlPageVisitor.setMp(d.usermob) } catch (e) {}
  57. }))
  58. }
  59. }
  60. function f(e, n) {
  61. var t = $.Deferred(),
  62. i = e.find(".usermob").val(),
  63. a = e.find(".smscode").val();
  64. if (null == n && (n = !1), null == i || "" == i.trim()) return o("请输入联通手机号码"), t.reject(), t;
  65. if (null == a || "" == a.trim()) return o("请输入验证码"), t.reject(), t;
  66. if (6 != a.length) return o("短信验证码不正确"), t.reject(), t;
  67. var r = { fes: c.fes, sou: c.sou, fog: l.fog, code: a, usermob: i };
  68. return $.ajax({ url: u + "/checkvercode", type: "POST", contentType: "application/json", data: JSON.stringify(r) }).then((function(a) {
  69. switch (e.find(".smscode").val(""), a.resultCode) {
  70. case "0000":
  71. 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);
  72. break;
  73. default:
  74. o(a.errorInfo), t.reject(a)
  75. }
  76. })).fail((function(e) { t.reject("服务调用异常") })), t
  77. }
  78. var p = !0;
  79. function m(e) {
  80. var n = { fog: l.fog || fog || "", userid: e || d.userid };
  81. $.ajax({ url: u + "/decodeUserid", type: "POST", contentType: "application/json", data: JSON.stringify(n) }).then((function(e) { "0" == e.resultCode && (d.usermob = e.usermob) }))
  82. }
  83. 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) }) }
  84. function w(e) { localStorage.setItem("user" + l.productid, JSON.stringify(d)), localStorage.setItem("time" + l.productid, e || (new Date).getTime() + "") }
  85. function g(e) {
  86. if (c.userid) return d.userid = c.userid, void(d.usermob = c.usermob);
  87. try {
  88. var n = localStorage.getItem("time" + l.productid);
  89. if (n) {
  90. if ((new Date).getTime() <= parseFloat(n) + (e || 36e5)) {
  91. var t = localStorage.getItem("user" + l.productid);
  92. null != t && ((d = JSON.parse(t)).userid = d.userid, d.usermob = d.usermob)
  93. } else localStorage.removeItem("time" + l.productid), localStorage.removeItem("user" + l.productid);
  94. return d
  95. }
  96. localStorage.removeItem("time" + l.productid), localStorage.removeItem("user" + l.productid)
  97. } catch (e) {}
  98. }
  99. function h() {
  100. var e = window.document.location.href,
  101. n = window.document.location.pathname,
  102. t = e.indexOf(n),
  103. o = e.substring(0, t),
  104. i = n.substring(0, n.substr(1).indexOf("/") + 1);
  105. return u = o + i, o + i
  106. }
  107. function y(e) {
  108. if ("https://800.wo.cn/orderchannel/hd/Dy/order202005.html?fes=jh7" != window.location.href) {
  109. window.location.href.indexOf("jiangtao") >= 0 && alert(window.location.href);
  110. var n = new RegExp("(^|&)" + e + "=([^&]*)(&|$)"),
  111. t = window.location.search.substr(1).match(n);
  112. if (null != t) return t[2];
  113. switch (e) {
  114. case "con":
  115. return "1";
  116. case "freeflow_token":
  117. return "";
  118. default:
  119. var o = h() + "/404.html";
  120. $(location).attr("href", o)
  121. }
  122. } else window.location.href = "https://800.wo.cn/orderchannel/hd/Dy/order202005.html?fes=jh7&sou=12"
  123. }
  124. function x(e, n, t, o) {
  125. var i = k("uuid"),
  126. a = k("vvid");
  127. if (null != i && "" != i.trim() || T("uuid", i = O(), Date.remainMillis()), null != a && "" != a.trim() || T("vvid", a = O(), -1), null != e && "" != e) {
  128. 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 || "") };
  129. $.ajax({ url: u + "/burypoint/logid", type: "POST", contentType: "application/json", data: JSON.stringify(r) }).then((function(e) {}))
  130. }
  131. }
  132. function k(e) { var n, t = new RegExp("(^| )" + e + "=([^;]*)(;|$)"); return (n = document.cookie.match(t)) ? unescape(n[2]) : null }
  133. function T(e, n, t) {
  134. t = null == t ? 0 : t;
  135. var o = new Date;
  136. t < 0 ? document.cookie = e + "=" + escape(n) : (o.setTime(o.getTime() + t), document.cookie = e + "=" + escape(n) + ";expires=" + o.toGMTString())
  137. }
  138. function O() { return "xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g, (function(e) { var n = 16 * Math.random() | 0; return ("x" == e ? n : 3 & n | 8).toString(16) })) }
  139. function I() {
  140. var e = navigator.userAgent.indexOf("Baidu") > -1;
  141. if (e) return e;
  142. var n = navigator.userAgent.indexOf("OPR") > -1,
  143. t = navigator.userAgent.indexOf("Firefox") > -1,
  144. o = navigator.userAgent.indexOf("UCBrowser");
  145. if (!n || !t || !o) return !1;
  146. var i = navigator.userAgent.indexOf("MicroMessenger") > -1,
  147. a = navigator.userAgent.indexOf("Safari") > -1,
  148. r = navigator.userAgent.indexOf("Chrome") > -1;
  149. return i || e || a || r
  150. }
  151. t(1);
  152. function P(e) {
  153. var n = function() {
  154. var e = $('<div class="overlay"></div>'),
  155. 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>');
  156. 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() }));
  157. var t = 4,
  158. 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);
  159. return e.on("click", (function() { n.close(), r() })), n
  160. }();
  161. n.find(".cancel").unbind("click").on("click", (function() {
  162. "我已经阅读并同意规则" == n.find(".cancel").html() && (n.close(), r(), function(e, n, t, r, s, u) {
  163. var v, f, w, g;
  164. 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));
  165. 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");
  166. var h = $.Deferred();
  167. return window.addEventListener("message", (function e(n) {
  168. var t = JSON.parse(n.data);
  169. switch (t.resultcode) {
  170. case "0":
  171. 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();
  172. try { window.HtmlPageVisitor && window.HtmlPageVisitor.setMp(t.usermob) } catch (e) {}
  173. h.resolve(d);
  174. break;
  175. case "9001":
  176. 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()));
  177. break;
  178. case "0001":
  179. case "0003":
  180. case "0006":
  181. case "4444":
  182. break;
  183. case "99999":
  184. 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) });
  185. break;
  186. default:
  187. w.remove(), $capoverlay.remove(), window.removeEventListener("message", e), $("body").css("overflow", "auto"), clearInterval(window.capTimer), o(t.errorinfo), h.reject(t)
  188. }
  189. })), h
  190. }().then((function(n) {
  191. console.log(e), r(),
  192. function(e, n, t, r) {
  193. i("处理中,请稍后..."),
  194. 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) {
  195. switch (a(), e.resultCode) {
  196. case "0000":
  197. return w(), L("订购成功"), void WoAnalytics.addPoint({ ad: $("#nanyanad").val(), ett: "click", ea: "order_success" + $("#nanyanlabel").val(), ct: "web", pm: parseInt(c.sou, 32) });
  198. case "0013":
  199. o("该号码归属省分2/3G暂未开通此产品!"), WoAnalytics.addPoint({ ad: $("#nanyanad").val(), ett: "click", ea: "order_failure" + $("#nanyanlabel").val(), ct: "web", pm: parseInt(c.sou, 32) });
  200. break;
  201. case "6611":
  202. o("错误代码(6611),订购失败,请重试!"), WoAnalytics.addPoint({ ad: $("#nanyanad").val(), ett: "click", ea: "order_failure" + $("#nanyanlabel").val(), ct: "web", pm: parseInt(c.sou, 32) });
  203. break;
  204. case "6615":
  205. o("订购失败,请确定用户套餐!"), WoAnalytics.addPoint({ ad: $("#nanyanad").val(), ett: "click", ea: "order_failure" + $("#nanyanlabel").val(), ct: "web", pm: parseInt(c.sou, 32) });
  206. break;
  207. case "6622":
  208. o("您已经订购了本产品~"), w(), WoAnalytics.addPoint({ ad: $("#nanyanad").val(), ett: "click", ea: "order_failure" + $("#nanyanlabel").val(), ct: "web", pm: parseInt(c.sou, 32) });
  209. break;
  210. default:
  211. o(e.errorInfo + ",订购失败,请确定用户套餐!"), WoAnalytics.addPoint({ ad: $("#nanyanad").val(), ett: "click", ea: "order_failure" + $("#nanyanlabel").val(), ct: "web", pm: parseInt(c.sou, 32) })
  212. }
  213. })).fail((function(e) { a(), console.log(e) }))
  214. }(n.userid, n.token, n.usermob, e || c.ringid)
  215. })).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) }))
  216. })), n.find(".close").unbind("click").on("click", (function() { n.close(), r() }))
  217. }
  218. function S(e) {
  219. for (var n = 0; n < window.rbtMvList.length; n++)
  220. if (window.rbtMvList[n].label == e) {
  221. var t = parseInt($("#" + e).attr("total")),
  222. o = parseInt($("#" + e).attr("showcount"));
  223. if (o == parseInt($("#" + e).attr("oldshowcount")) + 6) { $("#" + e).attr("oldshowcount", o); break }
  224. if ("1" == window.rbtMvList[n].shown) continue;
  225. $("#" + e).attr("showcount", o + 1), window.rbtMvList[n].shown = "1";
  226. 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>");
  227. if (i.find(".rbt-play").unbind("click").on("click", (function(e) {
  228. var n = $(e.target).parent().attr("src"),
  229. t = $(e.target).parent().attr("poster");
  230. j(n, $(e.target).parent().attr("contentid"), $(e.target).parent().attr("contentname"), t)
  231. })), 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"))
  232. }
  233. }
  234. function M(e, n) {
  235. if (null != e && "" != e.trim()) {
  236. var t = g();
  237. null != t && null != t.userid ? _(t.userid, null, e, n) : function(e, n) {
  238. var t = $('<div class="overlay"></div>'),
  239. 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>');
  240. t.appendTo($(document.body)), i.appendTo($(document.body)), i.close = function() { t.remove(), i.remove() }, i.find(".btn").on("click", (function(t) {
  241. var a = i.find(".mobile").val();
  242. null != a && 11 == a.length ? (i.close(), _(null, a, e, n)) : o("请输入正确的手机号码!")
  243. })), t.on("click", (function() { i.close() }))
  244. }(e, n)
  245. } else o("请选择一个视频彩铃!")
  246. }
  247. function A(e, n) {
  248. C("确认设置“" + n + "” 为" + (d.usermob.substr(0, 3) + "xxxx" + d.usermob.substr(7, 4)) + "的视频彩铃吗?", (function() {
  249. i(),
  250. 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) }) }))
  251. }))
  252. }
  253. function _(e, n, t, r) {
  254. 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) {
  255. switch (a(), l.resultCode) {
  256. case "0000":
  257. case "0001":
  258. null != d && null != d.userid && (d.orderStatus = l.resultCode, w()), e ? A(t, r) : function(e, n, t) {
  259. var o = $('<div class="overlay"></div>'),
  260. 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>');
  261. 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") }
  262. }(n, t, r);
  263. break;
  264. case "9201":
  265. C("您未订购视频彩铃包产品", (function() { P(t) }), "取消", "去订购");
  266. break;
  267. default:
  268. o(l.errorInfo)
  269. }
  270. }))) : A(t, r)
  271. }
  272. function j(e, n, t, o) {
  273. 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>');
  274. i.appendTo($(document.body)), i.close = function() { i.remove() };
  275. var a = i.find("video"),
  276. r = i.find(".play");
  277. 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
  278. }
  279. i(),
  280. function() {
  281. window.root = h(),
  282. function() {
  283. var e, n, t = window.location.search.substring(1),
  284. o = 0;
  285. for (; t.length > 0 && -1 != (e = t.indexOf("=", o));) {
  286. -1 == (n = t.indexOf("&", e + 1)) && (n = t.length);
  287. var i = t.substring(o, e),
  288. a = t.substring(e + 1, n);
  289. c[i] = decodeURIComponent(a), o = n + 1
  290. }
  291. }(), $("#useraccount_tt").attr("value", y("freeflow_token"));
  292. var e = { fes: c.fes, sou: c.sou, orderId: c.orderId },
  293. n = $.Deferred();
  294. return $.ajax({ url: u + "/ini/getstyle", type: "POST", contentType: "application/json", data: JSON.stringify(e), timeout: 1e4 }).then((function(e) {
  295. var t = JSON.parse(e);
  296. if ("0000" != t.resultCode) return window.location.href = window.root + "/404.html", n.reject(), n;
  297. for (l = t.product[0], i = 0; i < t.product.length; i++) s[t.product[i].productid] = t.product[i];
  298. $("#fog_" + l.url).attr("value", l.fog);
  299. 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]);
  300. n.resolve(t)
  301. }), (function(e, n, t) { console.log(n), "timeout" === n && (window.location.href = h() + "/hot.html?cb=" + encodeURIComponent(window.location.href)) })), n
  302. }().then((function(e) {
  303. var n, t;
  304. 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) {
  305. window.rbtMvList = JSON.parse(e).data, window.rbtMvListLength = JSON.parse(e).data.length;
  306. for (var n = 0; n < window.rbtMvList.length; n++) window.rbtMvList[n].shown = "0";
  307. ! function(e) {
  308. $("#rbt-item-box").empty();
  309. for (var n = {}, t = 0; t < window.rbtMvList.length; t++) null == n[window.rbtMvList[t].label] && (n[window.rbtMvList[t].label] = "其它");
  310. var o = [];
  311. $.each(n, (function(e, n) { "热门" == e ? (o[o.length] = o[0], o[0] = e) : o[o.length] = e })), $.each(o, (function(n, t) {
  312. var o = $('<div id="' + t + '" class="item" total="0" showcount="0" oldshowcount="0">' + t + "</div>");
  313. for (null == e && "热门" == t && (o.addClass("item-active"), e = "热门"), o.on("click", (function(e) {
  314. if (!$(e.target).hasClass("item-active")) {
  315. $("#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();
  316. for (var n = 0; n < window.rbtMvList.length; n++) window.rbtMvList[n].shown = "0";
  317. S($(e.target).html())
  318. }
  319. })), n = 0; n < window.rbtMvList.length; n++)
  320. if (window.rbtMvList[n].label == t) {
  321. var i = o.attr("total");
  322. o.attr("total", parseInt(i) + 1)
  323. }
  324. o.appendTo($("#rbt-item-box"))
  325. })), S(e)
  326. }()
  327. })).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() {
  328. var e, n;
  329. 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() }))
  330. })), 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) }))
  331. }));
  332. 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>';
  333. function L(e) {
  334. var n = $('<div class="overlay"></div>'),
  335. 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>');
  336. 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
  337. }
  338. function C(e, n, t, o) {
  339. var i = $('<div class="overlay"></div>'),
  340. 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>");
  341. 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
  342. }
  343. $("#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) }));
  344. var N = 0;
  345. let W = null;
  346. function E() { $("#rbtmv-content").scrollTop() == N && (console.log("滚动停止"), clearTimeout(W), $("#rbtmv-content").height() + $("#rbtmv-content").scrollTop() >= $("#rbtmv-container").height() - 200 && S()) }
  347. $("#rbtmv-content").on("scroll", (function(e) { clearTimeout(W), W = setTimeout(E, 100), N = $("#rbtmv-content").scrollTop() }))
  348. }, function(e, n) {}]);