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.

1 line
3.1 KiB

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/Loading/index"],{2456: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=[]},"2a30":function(e,t,r){"use strict";r.r(t);var n=r("2456"),o=r("e303");for(var a in o)"default"!==a&&function(e){r.d(t,e,(function(){return o[e]}))}(a);r("dee8");var i,c=r("f0c5"),u=Object(c["a"])(o["default"],n["b"],n["c"],!1,null,"2b480ba4",null,!1,n["a"],i);t["default"]=u.exports},"4af2":function(e,t,r){},"97f2":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r("2f62"),o=(r("6e63"),i(r("bac4")),i(r("1aa7")),i(r("93d0"))),a=r("8c38");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},c487:function(e,t,r){"use strict";(function(e){r("0371");n(r("66fd"));var t=n(r("2a30"));function n(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,r("543d")["createPage"])},dee8:function(e,t,r){"use strict";var n=r("4af2"),o=r.n(n);o.a},e303:function(e,t,r){"use strict";r.r(t);var n=r("97f2"),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}},[["c487","common/runtime","common/vendor"]]]);