h5.33f0e200.js 7.1 KB

1
  1. (function(e){function t(t){for(var r,a,u=t[0],i=t[1],s=t[2],f=0,l=[];f<u.length;f++)a=u[f],o[a]&&l.push(o[a][0]),o[a]=0;for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r]);d&&d(t);while(l.length)l.shift()();return c.push.apply(c,s||[]),n()}function n(){for(var e,t=0;t<c.length;t++){for(var n=c[t],r=!0,a=1;a<n.length;a++){var u=n[a];0!==o[u]&&(r=!1)}r&&(c.splice(t--,1),e=i(i.s=n[0]))}return e}var r={},a={h5:0},o={h5:0},c=[];function u(e){return i.p+"js/"+({}[e]||e)+"."+{"chunk-2c06dfd2":"2f24cda4","chunk-369c7fde":"6979e4fa","chunk-4ae53135":"cb56044f","chunk-87e4d9de":"2c36834f","chunk-27827e9c":"877bbf28","chunk-2bfa1569":"d2af7a1d","chunk-dc040b34":"4a17ab7f"}[e]+".js"}function i(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.e=function(e){var t=[],n={"chunk-2c06dfd2":1,"chunk-369c7fde":1,"chunk-4ae53135":1,"chunk-87e4d9de":1,"chunk-27827e9c":1,"chunk-2bfa1569":1,"chunk-dc040b34":1};a[e]?t.push(a[e]):0!==a[e]&&n[e]&&t.push(a[e]=new Promise(function(t,n){for(var r="css/"+({}[e]||e)+"."+{"chunk-2c06dfd2":"d4c88e50","chunk-369c7fde":"384c55e4","chunk-4ae53135":"0dc1cd14","chunk-87e4d9de":"76262530","chunk-27827e9c":"61ded1e5","chunk-2bfa1569":"900602ea","chunk-dc040b34":"b12cdbb4"}[e]+".css",o=i.p+r,c=document.getElementsByTagName("link"),u=0;u<c.length;u++){var s=c[u],f=s.getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(f===r||f===o))return t()}var l=document.getElementsByTagName("style");for(u=0;u<l.length;u++){s=l[u],f=s.getAttribute("data-href");if(f===r||f===o)return t()}var d=document.createElement("link");d.rel="stylesheet",d.type="text/css",d.onload=t,d.onerror=function(t){var r=t&&t.target&&t.target.src||o,c=new Error("Loading CSS chunk "+e+" failed.\n("+r+")");c.request=r,delete a[e],d.parentNode.removeChild(d),n(c)},d.href=o;var h=document.getElementsByTagName("head")[0];h.appendChild(d)}).then(function(){a[e]=0}));var r=o[e];if(0!==r)if(r)t.push(r[2]);else{var c=new Promise(function(t,n){r=o[e]=[t,n]});t.push(r[2]=c);var s,f=document.getElementsByTagName("head")[0],l=document.createElement("script");l.charset="utf-8",l.timeout=120,i.nc&&l.setAttribute("nonce",i.nc),l.src=u(e),s=function(t){l.onerror=l.onload=null,clearTimeout(d);var n=o[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src,c=new Error("Loading chunk "+e+" failed.\n("+r+": "+a+")");c.type=r,c.request=a,n[1](c)}o[e]=void 0}};var d=setTimeout(function(){s({type:"timeout",target:l})},12e4);l.onerror=l.onload=s,f.appendChild(l)}return Promise.all(t)},i.m=e,i.c=r,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/dist/",i.oe=function(e){throw console.error(e),e};var s=window["webpackJsonp"]=window["webpackJsonp"]||[],f=s.push.bind(s);s.push=t,s=s.slice();for(var l=0;l<s.length;l++)t(s[l]);var d=f;c.push([6,"chunk-vendors","chunk-common"]),n()})({6:function(e,t,n){e.exports=n("ab82")},ab82:function(e,t,n){"use strict";n.r(t);n("9e1f"),n("450d");var r=n("6ed5"),a=n.n(r),o=(n("cadf"),n("551c"),n("097d"),n("2b0e")),c=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[n("div",{staticClass:"pub-title"},[e._v("MeeChat")]),n("div",{staticClass:"router-wrap",class:{bottom:!e.navShow}},[n("router-view")],1),e.navShow?n("div",{staticClass:"pub-nav"},[n("router-link",{staticClass:"nav-item",attrs:{to:"/"}},[n("i",{staticClass:"chat-icon"}),n("span",{staticClass:"title"},[e._v("聊天")])]),n("router-link",{staticClass:"nav-item",attrs:{to:"/me"}},[n("i",{staticClass:"me-icon"}),n("span",{staticClass:"title"},[e._v("我的")])])],1):e._e()])},u=[],i=(n("96cf"),n("1da1")),s=n("be94"),f=(n("7f7f"),n("8476")),l=n("33f8"),d=n("2f62"),h={name:"App",computed:{navShow:function(){return"groupChat"!==this.$route.name&&"pmChat"!==this.$route.name}},methods:Object(s["a"])({},Object(d["b"])(["setScatter","setAccount","doScatterLogin","doContractLogin","initSocket"])),created:function(){var e=Object(i["a"])(regeneratorRuntime.mark(function e(){var t=this;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:f["a"].scatter.connect("MEE_CHAT").then(function(){var e=Object(i["a"])(regeneratorRuntime.mark(function e(n){return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(!n){e.next=16;break}return t.setScatter(f["a"].scatter),window.ScatterJS=null,e.prev=3,e.next=6,t.doScatterLogin();case 6:return e.next=8,t.doContractLogin();case 8:return e.next=10,t.initSocket();case 10:e.next=14;break;case 12:e.prev=12,e.t0=e["catch"](3);case 14:e.next=18;break;case 16:Object(l["q"])(t.$t("installScatter"),"Scatter"),t.setAccount("");case 18:case"end":return e.stop()}},e,this,[[3,12]])}));return function(t){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},p=h,v=(n("d212"),n("2877")),m=Object(v["a"])(p,c,u,!1,null,null,null);m.options.__file="App.vue";var b=m.exports,g=n("1c04"),k=n("c375"),w=n("4bc7"),y=n("6032"),S=n("43e0"),C=n("5a09"),j=n("21f7"),x=n("8f20"),O=n("3488"),_=n("9729"),A=n("4eb5"),E=n.n(A),T=n("3537"),P=n("682a"),B=n.n(P),N=n("9483");function q(e){requestAnimationFrame(q),B.a.update(e)}o["default"].use(w["a"],g["a"]),o["default"].use(y["a"],g["a"]),o["default"].use(S["a"],g["a"]),o["default"].use(C["a"],g["a"]),o["default"].use(x["a"],g["a"]),o["default"].use(O["a"],g["a"]),o["default"].use(_["a"]),o["default"].use(E.a),o["default"].use(T["a"]),o["default"].use(j["a"]),o["default"].config.productionTip=!1,new o["default"]({render:function(e){return e(b)},router:k["a"],store:g["a"]}).$mount("#app"),requestAnimationFrame(q);var L=!1;Object(N["a"])("/sw.js",{ready:function(){console.log("App is being served from cache by a service worker.\nFor more details, visit https://goo.gl/AFskqB")},registered:function(){console.log("Service worker has been registered.")},cached:function(){console.log("Content has been cached for offline use.")},updatefound:function(){L=!0,console.log("New content is downloading.")},updated:function(){L&&a.a.confirm("新的内容已更新完毕,立即刷新页面?","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(function(){location.reload()&&window.location.reload()}).catch(function(){})},offline:function(){console.log("No internet connection found. App is running in offline mode.")},error:function(e){console.error("Error during service worker registration:",e)}})},d212:function(e,t,n){"use strict";var r=n("f88c"),a=n.n(r);a.a},f88c:function(e,t,n){}});