123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- export const baseConfig = {
- h5: {
- rewriteFun: true,
- paramsToQuery: false,
- loading: true,
- hinderTab: false,
- vueRouterDev: false,
- useUniConfig: true,
- keepUniIntercept: false,
- vueNext: false,
- replaceStyle: false,
- resetStyle: () => JSON.parse('{}'),
- mode: 'hash',
- base: '/',
- linkActiveClass: 'router-link-active',
- linkExactActiveClass: 'router-link-exact-active',
- scrollBehavior: (to, from, savedPostion) => savedPostion,
- fallback: true,
- },
- APP: {
- holdTabbar: true,
- loddingPageStyle: () => JSON.parse('{"backgroundColor":"#FFF"}'),
- loddingPageHook: (view) => { plus.navigator.closeSplashscreen(); view.show(); },
- animation: { animationType: 'pop-in', animationDuration: 300 },
- switchPageOutTime: 1000,
- },
- debugger: false,
- encodeURI: true,
- routerBeforeEach: () => {},
- routerAfterEach: () => {},
- routes: [],
- };
- export const methods = {
- push: 'navigateTo',
- replace: 'redirectTo',
- replaceAll: 'reLaunch',
- pushTab: 'switchTab',
- back: 'navigateBack',
- };
- export const H5FnTypeToggle = {
- push: 'push',
- replace: 'replace',
- replaceAll: 'replace',
- pushTab: 'replace',
- };
- export const lifeCycle = {
- beforeHooks: [],
- afterHooks: [],
- routerHooks: [],
- routerbeforeHooks: [],
- routerAfterHooks: [],
- };
- export const Global = {
- $parseQuery: null,
- Router: {},
- vueRouter: {},
- addedRoutes: [],
- RouterReadyPromise: () => {},
- H5RouterReady: null,
- backLayerC: 1,
- LockStatus: false,
- };
- export const uniAppHook = {
- indexVue: {},
- toutiaoIndexThis: {},
- appVue: {},
- onLaunch: { fun: [], args: {}, isHijack: false },
- onShow: { fun: [], args: {}, isHijack: false },
- variationFuns: ['onReady', 'onUnload'],
- waitHooks: {},
- indexCallHooks: ['onLoad', 'onReady', 'created', 'onShow'],
- needHooks: ['onLoad', 'onReady', 'onShow', 'created', 'onHide', 'onUnload', 'onResize'],
- pageReady: false,
- onLaunched: false,
- };
- export const appletsConfig = {
- onLaunchEd: false,
- };
- export const route = function (object = {}) {
- return {
- ...object,
- params: {},
- query: {},
- };
- };
|