|
|
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/Loading/index"],{2658:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r("2f62"),o=(r("aa63"),i(r("1a48")),i(r("0415")),i(r("39ce"))),a=r("b6d1");function i(e){return e&&e.__esModule?e:{default:e}}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var f={computed:(0,n.mapGetters)(["userInfo"]),name:"Loading",data:function(){return{}},onShow:function(){var e=this;console.log("getUser",this.userInfo);var t=(0,a.handleQrCode)();if(t||(t=(0,a.handleUrlParam)((0,a.getCurrentPageUrlWithArgs)())),console.log(t),console.log("判断是否是分销"),t){var r=parseInt(t.spread);r&&o.default.set("spread",r)}if("app"!=this.$deviceType&&"weixinh5"!=this.$deviceType){if(this.$store.getters.token)return console.log("登录状态存在,直接进页面"),void this.toLaunch();console.log("进行登录操作"),(0,a.login)().finally((function(){1==e.userInfo.isPromoter?e.$yrouter.reLaunch({path:"/pages/serviceTeacher/index"}):e.$yrouter.switchTab({path:"/pages/home/index"})}))}else this.$yrouter.switchTab({path:"/pages/home/index"})},methods:u(u({},(0,n.mapActions)(["changeAuthorization","setUserInfo","getUser"])),{},{toLaunch:function(){var e=this;console.log("loading home"),this.changeAuthorization(!1);var t=o.default.get("redirect").replace(/\ /g,"");o.default.remove("redirect"),t&&-1!=t.indexOf("/pages")?this.$yrouter.replace({path:"/pages"+t.split("/pages")[1]}):(0,a.login)().finally((function(){e.$yrouter.switchTab({path:"/pages/home/index"})}))}})};t.default=f},"78fc":function(e,t,r){"use strict";r.r(t);var n=r("2658"),o=r.n(n);for(var a in n)"default"!==a&&function(e){r.d(t,e,(function(){return n[e]}))}(a);t["default"]=o.a},"99aa":function(e,t,r){},b908:function(e,t,r){"use strict";var n;r.d(t,"b",(function(){return o})),r.d(t,"c",(function(){return a})),r.d(t,"a",(function(){return n}));var o=function(){var e=this,t=e.$createElement;e._self._c},a=[]},cb24:function(e,t,r){"use strict";var n=r("99aa"),o=r.n(n);o.a},d356:function(e,t,r){"use strict";(function(e){r("ef82");n(r("66fd"));var t=n(r("f39b"));function n(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,r("543d")["createPage"])},f39b:function(e,t,r){"use strict";r.r(t);var n=r("b908"),o=r("78fc");for(var a in o)"default"!==a&&function(e){r.d(t,e,(function(){return o[e]}))}(a);r("cb24");var i,c=r("f0c5"),u=Object(c["a"])(o["default"],n["b"],n["c"],!1,null,"7049dc28",null,!1,n["a"],i);t["default"]=u.exports}},[["d356","common/runtime","common/vendor"]]]);
|