You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
weixin-chat/static/app/js/chat.bundle.js

1 line
270 KiB

!function (t) { var r = {}; function n(A) { if (r[A]) return r[A].exports; var e = r[A] = { i: A, l: !1, exports: {} }; return t[A].call(e.exports, e, e.exports, n), e.l = !0, e.exports } n.m = t, n.c = r, n.d = function (A, e, t) { n.o(A, e) || Object.defineProperty(A, e, { enumerable: !0, get: t }) }, n.r = function (A) { "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(A, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(A, "__esModule", { value: !0 }) }, n.t = function (e, A) { if (1 & A && (e = n(e)), 8 & A) return e; if (4 & A && "object" == typeof e && e && e.__esModule) return e; var t = Object.create(null); if (n.r(t), Object.defineProperty(t, "default", { enumerable: !0, value: e }), 2 & A && "string" != typeof e) for (var r in e) n.d(t, r, function (A) { return e[A] }.bind(null, r)); return t }, n.n = function (A) { var e = A && A.__esModule ? function () { return A.default } : function () { return A }; return n.d(e, "a", e), e }, n.o = function (A, e) { return Object.prototype.hasOwnProperty.call(A, e) }, n.p = "/assets/", n(n.s = 16) }([function (A, e) { A.exports = function (A) { function e(A) { "undefined" != typeof console && (console.error || console.log)("[Script Loader]", A) } try { "undefined" != typeof execScript && "undefined" != typeof attachEvent && "undefined" == typeof addEventListener ? execScript(A) : "undefined" != typeof eval ? eval.call(null, A) : e("EvalError: No eval function available") } catch (A) { e(A) } } }, function (A, e, t) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }), e.default = { set: function (A, e) { localStorage.setItem(A, JSON.stringify(e)) }, get: function (A) { return JSON.parse(localStorage.getItem(A)) }, remove: function (A) { localStorage.removeItem(A) } } }, function (A, e, t) { "use strict"; var r = s(t(3)), n = s(t(1)), B = s(t(4)); function s(A) { return A && A.__esModule ? A : { default: A } } A.exports = { run: function (e) { new Vue({ el: "#vueApp", mounted: function () { "function" == typeof e.mounted && e.mounted.call(this); var A = n.default.get("phone"), A = (A && (this.phone = A), new Date); this.phone.time_hour = 10 <= A.getHours() ? A.getHours() : "0" + A.getHours().toString(), this.phone.time_mini = 10 <= A.getMinutes() ? A.getMinutes() : "0" + A.getMinutes().toString(), this.___(), $(".phone").width(this.phone.mode.width), $(".phone").height(this.phone.mode.height), $(".phone-content").css("transform", "scale(" + this.phone.mode.zoom + ")"), $(".phone-wrap").width(this.phone.mode.width * this.phone.mode.zoom), $(".phone-wrap").height(this.phone.mode.height * this.phone.mode.zoom), window.user = {}, localforage.getItem("app").then(function (e) { e && e.auth && e.auth.token && $.ajax({ url: "", async: !1, type: "post", beforeSend: function (A) { A.setRequestHeader("Authorization", "bearer " + e.auth.token) }, success: function (A) { window.user = A.result, $("#username").html(window.user.username), "1" === window.user.vip && window.user.vipDatetime >= (new Date).getTime() / 1e3 || "1" === window.user.vip && !window.user.vipDatetime ? window.user.noMask = !0 : window.user.noMask = !1 } }) }).catch(function (A) { }); try { setInterval(function () { }, 50) } catch (A) { } }, data: Object.assign({ phone: { single: 4, wifi: 1, wifi_single: 3, time_hour: "12", time_mini: "02", battery_charge: 0, battery_amount: 60, ear: 0, mode: { width: 1125, height: 2436, radio: 3, zoom: .26 } } }, e.data), methods: Object.assign({ save: function () { var e = this; e.__(); var A = $("#phone").find(".phone-body").scrollTop(), t = $("#phone").clone().addClass("iPhoneX").get(0); $("body").append(t), $(t).find(".phone-body").scrollTop(A), $(".content-wrapper").addClass("loading"), setTimeout(function () { (0, r.default)(t, { scale: 1, scrollY: 0, scrollX: 0 }).then(function (A) { $("#lightBoxToggle").data("zui.lightbox").show(e.canvas2image(A)), $(t).remove(), $(".content-wrapper").removeClass("loading") }) }, 200) }, moneyFormat: function (A, e, t, r, n) { e = isNaN(e = Math.abs(e)) ? 2 : e, t = void 0 !== t ? t