123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185 |
- var isReady = false;
- var onReadyCallbacks = [];
- var isServiceReady = false;
- var onServiceReadyCallbacks = [];
- var __uniConfig = {
- "pages": ["pages/index/index", "pages/center/center", "pages/login/login", "pages/login/code", "pages/login/account", "pages/login/problem", "pages/profile/setting", "pages/profile/profile", "pages/profile/password", "pages/search/search", "pages/notice/notice", "pages/profile/aboutMe", "pages/search/searchList", "pages/detail/detail", "pages/detail/addHouse", "pages/detail/preHouse"],
- "window": {
- "navigationBarTextStyle": "black",
- "navigationBarTitleText": "World",
- "navigationBarBackgroundColor": "#ffffff",
- "backgroundColor": "#ffffff"
- },
- "tabBar": {
- "color": "#909399",
- "selectedColor": "#2979ff",
- "borderStyle": "#909399",
- "backgroundColor": "#ffffff",
- "list": [{
- "pagePath": "pages/index/index",
- "iconPath": "static/index.png",
- "selectedIconPath": "static/index-selected.png",
- "text": "首页"
- }, {
- "pagePath": "pages/center/center",
- "iconPath": "static/center.png",
- "selectedIconPath": "static/center-selected.png",
- "text": "我"
- }]
- },
- "nvueCompiler": "uni-app",
- "nvueStyleCompiler": "weex",
- "renderer": "auto",
- "splashscreen": {"alwaysShowBeforeRender": true, "autoclose": false},
- "appname": "一心房产",
- "compilerVersion": "3.3.5",
- "entryPagePath": "pages/index/index",
- "networkTimeout": {"request": 60000, "connectSocket": 60000, "uploadFile": 60000, "downloadFile": 60000}
- };
- var __uniRoutes = [{
- "path": "/pages/index/index",
- "meta": {"isQuit": true, "isTabBar": true},
- "window": {
- "navigationStyle": "custom",
- "navigationBarTitleText": "首页",
- "enablePullDownRefresh": true,
- "pullToRefresh": {"support": true, "color": "#2979ff", "style": "circle"}
- }
- }, {
- "path": "/pages/center/center",
- "meta": {"isQuit": true, "isTabBar": true},
- "window": {"navigationStyle": "custom", "navigationBarTitleText": "我"}
- }, {
- "path": "/pages/login/login",
- "meta": {},
- "window": {"navigationStyle": "custom", "navigationBarTitleText": "登录", "enablePullDownRefresh": false}
- }, {
- "path": "/pages/login/code",
- "meta": {},
- "window": {"navigationBarTitleText": "验证码", "enablePullDownRefresh": false}
- }, {
- "path": "/pages/login/account",
- "meta": {},
- "window": {"navigationBarTitleText": "密码登录", "enablePullDownRefresh": false}
- }, {
- "path": "/pages/login/problem",
- "meta": {},
- "window": {"navigationBarTitleText": "常见问题", "enablePullDownRefresh": false}
- }, {
- "path": "/pages/profile/setting",
- "meta": {},
- "window": {"navigationStyle": "custom", "navigationBarTitleText": "", "enablePullDownRefresh": false}
- }, {
- "path": "/pages/profile/profile",
- "meta": {},
- "window": {"navigationStyle": "custom", "navigationBarTitleText": "", "enablePullDownRefresh": false}
- }, {
- "path": "/pages/profile/password",
- "meta": {},
- "window": {"navigationBarTitleText": "修改密码", "enablePullDownRefresh": false}
- }, {
- "path": "/pages/search/search",
- "meta": {},
- "window": {"navigationBarTitleText": "搜索", "enablePullDownRefresh": false}
- }, {
- "path": "/pages/notice/notice",
- "meta": {},
- "window": {"navigationBarTitleText": "通知", "enablePullDownRefresh": false}
- }, {
- "path": "/pages/profile/aboutMe",
- "meta": {},
- "window": {"navigationBarTitleText": "关于我", "enablePullDownRefresh": false, "navigationStyle": "custom"}
- }, {
- "path": "/pages/search/searchList",
- "meta": {},
- "window": {"navigationBarTitleText": "房源列表", "enablePullDownRefresh": true}
- }, {
- "path": "/pages/detail/detail",
- "meta": {},
- "window": {"navigationStyle": "custom", "navigationBarTitleText": "房源详情", "enablePullDownRefresh": false}
- }, {
- "path": "/pages/detail/addHouse",
- "meta": {},
- "window": {"navigationBarTitleText": "新增房源", "enablePullDownRefresh": false}
- }, {
- "path": "/pages/detail/preHouse",
- "meta": {},
- "window": {"navigationStyle": "custom", "navigationBarTitleText": "预增房源", "enablePullDownRefresh": false}
- }];
- __uniConfig.onReady = function (callback) {
- if (__uniConfig.ready) {
- callback()
- } else {
- onReadyCallbacks.push(callback)
- }
- };
- Object.defineProperty(__uniConfig, "ready", {
- get: function () {
- return isReady
- }, set: function (val) {
- isReady = val;
- if (!isReady) {
- return
- }
- const callbacks = onReadyCallbacks.slice(0);
- onReadyCallbacks.length = 0;
- callbacks.forEach(function (callback) {
- callback()
- })
- }
- });
- __uniConfig.onServiceReady = function (callback) {
- if (__uniConfig.serviceReady) {
- callback()
- } else {
- onServiceReadyCallbacks.push(callback)
- }
- };
- Object.defineProperty(__uniConfig, "serviceReady", {
- get: function () {
- return isServiceReady
- }, set: function (val) {
- isServiceReady = val;
- if (!isServiceReady) {
- return
- }
- const callbacks = onServiceReadyCallbacks.slice(0);
- onServiceReadyCallbacks.length = 0;
- callbacks.forEach(function (callback) {
- callback()
- })
- }
- });
- service.register("uni-app-config", {
- create(a, b, c) {
- if (!__uniConfig.viewport) {
- var d = b.weex.config.env.scale, e = b.weex.config.env.deviceWidth, f = Math.ceil(e / d);
- Object.assign(__uniConfig, {viewport: f, defaultFontSize: Math.round(f / 20)})
- }
- return {
- instance: {
- __uniConfig: __uniConfig,
- __uniRoutes: __uniRoutes,
- global: void 0,
- window: void 0,
- document: void 0,
- frames: void 0,
- self: void 0,
- location: void 0,
- navigator: void 0,
- localStorage: void 0,
- history: void 0,
- Caches: void 0,
- screen: void 0,
- alert: void 0,
- confirm: void 0,
- prompt: void 0,
- fetch: void 0,
- XMLHttpRequest: void 0,
- WebSocket: void 0,
- webkit: void 0,
- print: void 0
- }
- }
- }
- });
|