Browse Source

fix:目录结构调整

chenzhen2 1 year ago
parent
commit
124b119c58

+ 4 - 5
project.config.json

@@ -39,14 +39,13 @@
   "miniprogramRoot": "weapp/",
   "srcMiniprogramRoot": "weapp/",
   "condition": {},
-  "libVersion": "3.0.0",
-  "packOptions": {
-    "ignore": [],
-    "include": []
-  },
   "editorSetting": {
     "tabIndent": "insertSpaces",
     "tabSize": 2
   },
+  "packOptions": {
+    "ignore": [],
+    "include": []
+  },
   "appid": "wxda2ef261ac3cca32"
 }

+ 2 - 2
project.private.config.json

@@ -2,11 +2,11 @@
   "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
   "setting": {
     "urlCheck": false,
-    "bigPackageSizeSupport": false,
+    "bigPackageSizeSupport": true,
     "autoAudits": true,
     "compileHotReLoad": true,
     "preloadBackgroundData": false
   },
   "libVersion": "3.0.1",
-  "projectname": "sagaclound-wepy"
+  "projectname": "sagacloud-sagacare-weChat"
 }

+ 12 - 13
src/app.wpy

@@ -10,19 +10,19 @@
 </style>
 
 <script>
-import wepy from '@wepy/core'
-import eventHub from './common/eventHub'
-import vuex from '@wepy/x'
+import wepy from '@wepy/core';
+import eventHub from './common/eventHub';
+import vuex from '@wepy/x';
 
-wepy.use(vuex)
+wepy.use(vuex);
 
 wepy.app({
   hooks: {
     // App 级别 hook,对整个 App 生效
     // 同时存在 Page hook 和 App hook 时,优先执行 Page hook,返回值再交由 App hook 处
-    'before-setData': function (dirty) {
-    //   console.log('setData dirty: ', dirty);
-      return dirty
+    'before-setData': function(dirty) {
+      //   console.log('setData dirty: ', dirty);
+      return dirty;
     }
   },
   globalData: {
@@ -31,27 +31,26 @@ wepy.app({
 
   onLaunch() {
     // this.testAsync();
-   // eventHub.$on('app-launch', (...args) => {
+    // eventHub.$on('app-launch', (...args) => {
     //  console.log('app-launch event emitted, the params are:');
     //  console.log(args);
-   // });
+    // });
   },
 
-  methods: {
-  }
-})
+  methods: {}
+});
 </script>
 <config>
 {
     pages: [
       'pages/index',
-      'pages/home/index',
       'pages/bindTenant/index'
     ],
     "subpackages":[
      {
         "root": "packagesEnv/",
         "pages": [
+          'pages/home/index',
           'pages/officehome/index',
           'pages/officehome/detail',
           'pages/officehome/demo',

src/pages/home/index.wpy → src/packagesEnv/pages/home/index.wpy


File diff suppressed because it is too large
+ 0 - 103
src/pages/auth/ indexCopy.wpy


+ 0 - 2
src/pages/bindTenant/index.wpy

@@ -26,10 +26,8 @@
 
 <script>
 import wepy from '@wepy/core';
-import eventHub from '@/common/eventHub';
 import { mapState } from '@wepy/x';
 import store from '@/store';
-import testMixin from '@/mixins/test';
 import { setUserInfoByAuth } from '@/service/user';
 
 wepy.page({

File diff suppressed because it is too large
+ 2 - 3
src/pages/index.wpy