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
5.3 KiB
1 line
5.3 KiB
3 years ago
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/main"],{"1c4c":function(t,e,n){"use strict";var o=n("d1df"),a=n.n(o);a.a},"4c24":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={onLaunch:function(t){this.setMenuHeight(),this.autoUpdate()},globalData:{baseURL:"http://192.168.0.114:8092/api/",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=n}).call(this,n("543d")["default"])},8491:function(t,e,n){"use strict";(function(t){n("ef82");var e=s(n("66fd")),o=s(n("a6b0")),a=s(n("0415")),i=(s(n("ff85")),s(n("39ce")),n("b6d1")),r=n("daea"),u=s(n("fc53")),c=s(n("46cb"));function s(t){return t&&t.__esModule?t:{default:t}}function l(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 f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function d(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var p=function(){n.e("components/colorui/components
|