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 lines
5.7 KiB

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/main"],{"051c":function(t,e,n){},"4c24":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n("daea"),a={onLaunch:function(t){this.setMenuHeight(),this.autoUpdate()},globalData:{baseURL:o.VUE_APP_API_URL+"/",userInfo:null,navHeight:0,navTopHeight:0,menuTop:0,menuHeight:0,CustomBar:0,isIphoneX:!1,inviterId:null,systemInfo:null},onShow:function(e){t.hideTabBar();var n={};if(e.query.q){var o=e.query.q;o&&(-1!=o.indexOf("?")&&(o=o.split("?")[1].replace(/=/g,":").replace(/&/g,",").split(",").map((function(t,e){return t=t.split(":"),'"'.concat(t[0],'":"').concat(t[1],'"')})).join(","),n=JSON.parse("{"+o+"}")),console.log("query1",n),this.globalData.inviterId=n.id)}else n=e.query,console.log("query2",n),this.globalData.inviterId=n.id},methods:{autoUpdate:function(){if(t.canIUse("getUpdateManager")){var e=t.getUpdateManager();e.onCheckForUpdate((function(n){n.hasUpdate&&(e.onUpdateReady((function(){console.log(new Date),t.showModal({title:"更新提示",content:"新版本已经准备好,是否重启应用?",success:function(t){t.confirm&&e.applyUpdate()}})})),e.onUpdateFailed((function(){t.showModal({title:"已经有新版本了哟~",content:"新版本已经上线啦~,请您删除当前小程序,重新搜索打开哟~"})})))}))}else t.showModal({title:"提示",content:"当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试。"})},setMenuHeight:function(){var e=this;t.getSystemInfo({success:function(t){console.log(t),e.globalData.navTopHeight=t.statusBarHeight,e.globalData.CustomBar=t.statusBarHeight+45,e.globalData.systemInfo=t;var n=t.model;(/iphone\sx/i.test(n)||/iphone/i.test(n)&&/unknown/.test(n)||/iphone\s11/i.test(n)||/iphone\s12/i.test(n))&&(e.globalData.isIphoneX=!0)}});var n=t.getMenuButtonBoundingClientRect();this.globalData.menuTop=n.top,this.globalData.menuHeight=n.height,this.globalData.navHeight=n.height+(n.top-this.globalData.navTopHeight)},getInfo:function(){this.http("get","userinfo").then((function(e){if(e.data.success){t.setStorageSync("userInfo",e.data.data);var n=getCurrentPages().pop();n.getUser&&n.getUser()}else t.showToast({title:e.data.msg,icon:"none",duration:2e3}),setTimeout((function(){t.navigateTo({url:"/pages/authorization/index"})}),2e3)}))},http:function(e,n,o){var a=this,i={"content-type":"application/json",version:"2.0",Authorization:"Bearer "+t.getStorageSync("login_status")||!1};return new Promise((function(r,u){t.showLoading({title:"正在加载中..."}),t.request({url:a.globalData.baseURL+n,method:e,header:i,data:o||{},success:function(e){if(t.hideLoading(),!e.data.success&&401==e.data.status){var n=getCurrentPages().pop();console.log(n.$page.fullPath),t.setStorageSync("redirect",n.$page.fullPath),t.navigateTo({url:"/pages/authorization/index"})}r(e)},fail:function(){t.hideLoading(),t.showToast({title:"服务器错误,请稍后再试!",icon:"none"}),u(err)}})}))}}};e.default=a}).call(this,n("543d")["default"])},8491:function(t,e,n){"use strict";(function(t){n("ef82");var e=l(n("66fd")),o=l(n("a6b0")),a=l(n("0415")),i=l(n("4703")),r=(l(n("ff85")),l(n("39ce")),n("b6d1")),u=n("daea"),c=l(n("fc53")),s=l(n("46cb"));function l(t){return t&&t.__esModule?t:{default:t}}function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var g=function(){n.e("components/colorui/components/cu-custom").then(function(){return resolve(n("6c37"))}.bind(null,n)).catch(n.oe)};e.default.component("cu-custom",g),e.default.config.productionTip=!1,e.default.config.devtools=!1,e.default.prototype.$validator=function(t){return new i.default(t)},e.default.use(c.default),e.default.mixin(s.default),e.default.config.productionTip=!1,o.default.mpType="app",e.default.prototype.$store=a.default;var h=new e.default(d(d({},o.default),{},{store:a.default}));Object.defineProperty(e.default.prototype,"$yrouter",{get:function(){return r._router}}),Object.defineProperty(e.default.prototype,"$yroute",{get:function(){return this._route}});var b="";b="routine",e.default.prototype.$deviceType=b,e.default.mixin({onLoad:function(){var t=this.$root.$mp;this._route=(0,r.parseRoute)(t)},onShow:function(){r._router.app=this,r._router.currentRoute=this._route},computed:{$VUE_APP_RESOURCES_URL:function(){return u.VUE_APP_RESOURCES_URL}}}),a.default.commit("updateDevicetype",b),e.default.prototype.$VUE_APP_API_URL=u.VUE_APP_API_URL,e.default.component("cu-custom",g),t(h).$mount()}).call(this,n("543d")["createApp"])},"982d":function(t,e,n){"use strict";n.r(e);var o=n("4c24"),a=n.n(o);for(var i in o)"default"!==i&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e["default"]=a.a},a6b0:function(t,e,n){"use strict";n.r(e);var o=n("982d");for(var a in o)"default"!==a&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("ed54"),n("a821");var i,r,u,c,s=n("f0c5"),l=Object(s["a"])(o["default"],i,r,!1,null,"853c80b6",null,!1,u,c);e["default"]=l.exports},a821:function(t,e,n){"use strict";var o=n("b07b"),a=n.n(o);a.a},b07b:function(t,e,n){},ed54:function(t,e,n){"use strict";var o=n("051c"),a=n.n(o);a.a}},[["8491","common/runtime","common/vendor"]]]);