Browse Source

引入app

shish 4 years ago
parent
commit
c0465df02f
5 changed files with 973 additions and 550 deletions
  1. 939 519
      ghsApp/package-lock.json
  2. 2 0
      ghsApp/package.json
  3. 2 1
      ghsApp/src/App.vue
  4. 5 0
      ghsApp/src/constant/index.js
  5. 25 30
      ghsApp/src/manifest.json

File diff suppressed because it is too large
+ 939 - 519
ghsApp/package-lock.json


+ 2 - 0
ghsApp/package.json

@@ -46,7 +46,9 @@
     "vuex": "^3.0.1"
     "vuex": "^3.0.1"
   },
   },
   "devDependencies": {
   "devDependencies": {
+    "@dcloudio/uni-cli-i18n": "^2.0.1-32920211122003",
     "@dcloudio/uni-cli-shared": "^2.0.0-25120200103006",
     "@dcloudio/uni-cli-shared": "^2.0.0-25120200103006",
+    "@dcloudio/uni-i18n": "^2.0.1-32920211122003",
     "@dcloudio/uni-migration": "^2.0.0-25120200103006",
     "@dcloudio/uni-migration": "^2.0.0-25120200103006",
     "@dcloudio/uni-template-compiler": "^2.0.0-25120200103006",
     "@dcloudio/uni-template-compiler": "^2.0.0-25120200103006",
     "@dcloudio/vue-cli-plugin-hbuilderx": "^2.0.0-25120200103006",
     "@dcloudio/vue-cli-plugin-hbuilderx": "^2.0.0-25120200103006",

+ 2 - 1
ghsApp/src/App.vue

@@ -36,10 +36,11 @@ export default {
 		if (process.env.NODE_ENV == 'production') {
 		if (process.env.NODE_ENV == 'production') {
 			uni.removeStorageSync('shopUser')
 			uni.removeStorageSync('shopUser')
 		}
 		}
+		const extConfig = {}
 		// #ifdef MP-WEIXIN
 		// #ifdef MP-WEIXIN
 		// wxLoginFn()
 		// wxLoginFn()
 		// uni.clearStorage()
 		// uni.clearStorage()
-		const extConfig = wx.getExtConfigSync ? wx.getExtConfigSync() : {}
+		extConfig = wx.getExtConfigSync ? wx.getExtConfigSync() : {}
 		uni.setStorageSync('account', extConfig.account)
 		uni.setStorageSync('account', extConfig.account)
 		// #endif
 		// #endif
 
 

+ 5 - 0
ghsApp/src/constant/index.js

@@ -3,6 +3,11 @@ import { ProjectName } from '@/config'
 // #ifdef MP-WEIXIN
 // #ifdef MP-WEIXIN
 const extConfig = wx.getExtConfigSync ? wx.getExtConfigSync() : {}
 const extConfig = wx.getExtConfigSync ? wx.getExtConfigSync() : {}
 // #endif
 // #endif
+
+//#ifdef APP-PLUS
+const extConfig = {}
+//#endif
+
 // 常量索引
 // 常量索引
 const envVal = {
 const envVal = {
 	// #ifdef H5
 	// #ifdef H5

+ 25 - 30
ghsApp/src/manifest.json

@@ -1,7 +1,7 @@
 {
 {
-    "name" : "供应商",
-    "appid" : "",
-    "description" : "应用描述",
+    "name" : "销花宝",
+    "appid" : "__UNI__BD781B0",
+    "description" : "批发进销存及财务管理系统",
     "versionName" : "1.0.0",
     "versionName" : "1.0.0",
     "versionCode" : "100",
     "versionCode" : "100",
     "transformPx" : true,
     "transformPx" : true,
@@ -17,14 +17,7 @@
             "autoclose" : true,
             "autoclose" : true,
             "delay" : 0
             "delay" : 0
         },
         },
-        "modules" : {
-            "OAuth" : {},
-            "Payment" : {},
-            "Push" : {},
-            "Share" : {},
-            "Speech" : {},
-            "VideoPlayer" : {}
-        },
+        "modules" : {},
         /* 应用发布信息 */
         /* 应用发布信息 */
         "distribute" : {
         "distribute" : {
             /* android打包配置 */
             /* android打包配置 */
@@ -63,7 +56,8 @@
                     "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>",
                     "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>",
                     "<uses-permission android:name=\"android.permission.WRITE_SMS\"/>",
                     "<uses-permission android:name=\"android.permission.WRITE_SMS\"/>",
                     "<uses-permission android:name=\"android.permission.RECEIVE_USER_PRESENT\"/>"
                     "<uses-permission android:name=\"android.permission.RECEIVE_USER_PRESENT\"/>"
-                ]
+                ],
+                "autoSdkPermissions" : true
             },
             },
             /* ios打包配置 */
             /* ios打包配置 */
             "ios" : {
             "ios" : {
@@ -74,7 +68,11 @@
             "sdkConfigs" : {
             "sdkConfigs" : {
                 "speech" : {
                 "speech" : {
                     "ifly" : {}
                     "ifly" : {}
-                }
+                },
+                "push" : {
+                    "unipush" : {}
+                },
+                "share" : {}
             },
             },
             "orientation" : [ "portrait-primary" ]
             "orientation" : [ "portrait-primary" ]
         }
         }
@@ -109,23 +107,23 @@
             // "mode" : "history",
             // "mode" : "history",
             "base" : "/"
             "base" : "/"
         },
         },
-        "async": {
-            "timeout": 200000
+        "async" : {
+            "timeout" : 20000
         },
         },
-        "optimization": {
-            "treeShaking": {
-                "enable": true
+        "optimization" : {
+            "treeShaking" : {
+                "enable" : true
             }
             }
         },
         },
-        "devServer": {
-            "port": 81,
-            "proxy": {
-                "/api": {
-                    "target": "http://api.shop.hzghd.com",
-                    "secure": false,
-                    "changeOrigin": true,
-                    "pathRewrite": {
-                        "^/api": ""
+        "devServer" : {
+            "port" : 81,
+            "proxy" : {
+                "/api" : {
+                    "target" : "http://api.shop.hzghd.com",
+                    "secure" : false,
+                    "changeOrigin" : true,
+                    "pathRewrite" : {
+                        "^/api" : ""
                     }
                     }
                 }
                 }
             }
             }
@@ -136,9 +134,6 @@
                     "key" : ""
                     "key" : ""
                 }
                 }
             }
             }
-        },
-        "async" : {
-            "timeout" : 20000
         }
         }
     }
     }
 }
 }

Some files were not shown because too many files changed in this diff