parent
							
								
									460200b1c6
								
							
						
					
					
						commit
						1885b68a1b
					
				| @ -0,0 +1,2 @@ | |||||||
|  | /node_modules | ||||||
|  | /unpackage/dist | ||||||
| @ -0,0 +1,17 @@ | |||||||
|  | <script> | ||||||
|  | 	export default { | ||||||
|  | 		onLaunch: function() { | ||||||
|  | 			console.log('App Launch') | ||||||
|  | 		}, | ||||||
|  | 		onShow: function() { | ||||||
|  | 			console.log('App Show') | ||||||
|  | 		}, | ||||||
|  | 		onHide: function() { | ||||||
|  | 			console.log('App Hide') | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | </script> | ||||||
|  | 
 | ||||||
|  | <style> | ||||||
|  | 	/*每个页面公共css */ | ||||||
|  | </style> | ||||||
| @ -0,0 +1,20 @@ | |||||||
|  | <!DOCTYPE html> | ||||||
|  | <html lang="en"> | ||||||
|  |   <head> | ||||||
|  |     <meta charset="UTF-8" /> | ||||||
|  |     <script> | ||||||
|  |       var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || | ||||||
|  |         CSS.supports('top: constant(a)')) | ||||||
|  |       document.write( | ||||||
|  |         '<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + | ||||||
|  |         (coverSupport ? ', viewport-fit=cover' : '') + '" />') | ||||||
|  |     </script> | ||||||
|  |     <title></title> | ||||||
|  |     <!--preload-links--> | ||||||
|  |     <!--app-context--> | ||||||
|  |   </head> | ||||||
|  |   <body> | ||||||
|  |     <div id="app"><!--app-html--></div> | ||||||
|  |     <script type="module" src="/main.js"></script> | ||||||
|  |   </body> | ||||||
|  | </html> | ||||||
| @ -0,0 +1,22 @@ | |||||||
|  | import App from './App' | ||||||
|  | 
 | ||||||
|  | // #ifndef VUE3
 | ||||||
|  | import Vue from 'vue' | ||||||
|  | import './uni.promisify.adaptor' | ||||||
|  | Vue.config.productionTip = false | ||||||
|  | App.mpType = 'app' | ||||||
|  | const app = new Vue({ | ||||||
|  |   ...App | ||||||
|  | }) | ||||||
|  | app.$mount() | ||||||
|  | // #endif
 | ||||||
|  | 
 | ||||||
|  | // #ifdef VUE3
 | ||||||
|  | import { createSSRApp } from 'vue' | ||||||
|  | export function createApp() { | ||||||
|  |   const app = createSSRApp(App) | ||||||
|  |   return { | ||||||
|  |     app | ||||||
|  |   } | ||||||
|  | } | ||||||
|  | // #endif
 | ||||||
| @ -0,0 +1,72 @@ | |||||||
|  | { | ||||||
|  |     "name" : "航大菜品圈", | ||||||
|  |     "appid" : "__UNI__3904B82", | ||||||
|  |     "description" : "", | ||||||
|  |     "versionName" : "1.0.0", | ||||||
|  |     "versionCode" : "100", | ||||||
|  |     "transformPx" : false, | ||||||
|  |     /* 5+App特有相关 */ | ||||||
|  |     "app-plus" : { | ||||||
|  |         "usingComponents" : true, | ||||||
|  |         "nvueStyleCompiler" : "uni-app", | ||||||
|  |         "compilerVersion" : 3, | ||||||
|  |         "splashscreen" : { | ||||||
|  |             "alwaysShowBeforeRender" : true, | ||||||
|  |             "waiting" : true, | ||||||
|  |             "autoclose" : true, | ||||||
|  |             "delay" : 0 | ||||||
|  |         }, | ||||||
|  |         /* 模块配置 */ | ||||||
|  |         "modules" : {}, | ||||||
|  |         /* 应用发布信息 */ | ||||||
|  |         "distribute" : { | ||||||
|  |             /* android打包配置 */ | ||||||
|  |             "android" : { | ||||||
|  |                 "permissions" : [ | ||||||
|  |                     "<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>", | ||||||
|  |                     "<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>", | ||||||
|  |                     "<uses-permission android:name=\"android.permission.VIBRATE\"/>", | ||||||
|  |                     "<uses-permission android:name=\"android.permission.READ_LOGS\"/>", | ||||||
|  |                     "<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>", | ||||||
|  |                     "<uses-feature android:name=\"android.hardware.camera.autofocus\"/>", | ||||||
|  |                     "<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>", | ||||||
|  |                     "<uses-permission android:name=\"android.permission.CAMERA\"/>", | ||||||
|  |                     "<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>", | ||||||
|  |                     "<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>", | ||||||
|  |                     "<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>", | ||||||
|  |                     "<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>", | ||||||
|  |                     "<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>", | ||||||
|  |                     "<uses-feature android:name=\"android.hardware.camera\"/>", | ||||||
|  |                     "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>" | ||||||
|  |                 ] | ||||||
|  |             }, | ||||||
|  |             /* ios打包配置 */ | ||||||
|  |             "ios" : {}, | ||||||
|  |             /* SDK配置 */ | ||||||
|  |             "sdkConfigs" : {} | ||||||
|  |         } | ||||||
|  |     }, | ||||||
|  |     /* 快应用特有相关 */ | ||||||
|  |     "quickapp" : {}, | ||||||
|  |     /* 小程序特有相关 */ | ||||||
|  |     "mp-weixin" : { | ||||||
|  |         "appid" : "", | ||||||
|  |         "setting" : { | ||||||
|  |             "urlCheck" : false | ||||||
|  |         }, | ||||||
|  |         "usingComponents" : true | ||||||
|  |     }, | ||||||
|  |     "mp-alipay" : { | ||||||
|  |         "usingComponents" : true | ||||||
|  |     }, | ||||||
|  |     "mp-baidu" : { | ||||||
|  |         "usingComponents" : true | ||||||
|  |     }, | ||||||
|  |     "mp-toutiao" : { | ||||||
|  |         "usingComponents" : true | ||||||
|  |     }, | ||||||
|  |     "uniStatistics" : { | ||||||
|  |         "enable" : false | ||||||
|  |     }, | ||||||
|  |     "vueVersion" : "2" | ||||||
|  | } | ||||||
| @ -0,0 +1,52 @@ | |||||||
|  | <template> | ||||||
|  | 	<view class="content"> | ||||||
|  | 		<image class="logo" src="/static/logo.png"></image> | ||||||
|  | 		<view class="text-area"> | ||||||
|  | 			<text class="title">{{title}}</text> | ||||||
|  | 		</view> | ||||||
|  | 	</view> | ||||||
|  | </template> | ||||||
|  | 
 | ||||||
|  | <script> | ||||||
|  | 	export default { | ||||||
|  | 		data() { | ||||||
|  | 			return { | ||||||
|  | 				title: 'Hello' | ||||||
|  | 			} | ||||||
|  | 		}, | ||||||
|  | 		onLoad() { | ||||||
|  | 
 | ||||||
|  | 		}, | ||||||
|  | 		methods: { | ||||||
|  | 
 | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | </script> | ||||||
|  | 
 | ||||||
|  | <style> | ||||||
|  | 	.content { | ||||||
|  | 		display: flex; | ||||||
|  | 		flex-direction: column; | ||||||
|  | 		align-items: center; | ||||||
|  | 		justify-content: center; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	.logo { | ||||||
|  | 		height: 200rpx; | ||||||
|  | 		width: 200rpx; | ||||||
|  | 		margin-top: 200rpx; | ||||||
|  | 		margin-left: auto; | ||||||
|  | 		margin-right: auto; | ||||||
|  | 		margin-bottom: 50rpx; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	.text-area { | ||||||
|  | 		display: flex; | ||||||
|  | 		justify-content: center; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	.title { | ||||||
|  | 		font-size: 36rpx; | ||||||
|  | 		color: #8f8f94; | ||||||
|  | 	} | ||||||
|  | </style> | ||||||
| After Width: | Height: | Size: 3.9 KiB | 
| @ -0,0 +1,10 @@ | |||||||
|  | uni.addInterceptor({ | ||||||
|  |   returnValue (res) { | ||||||
|  |     if (!(!!res && (typeof res === "object" || typeof res === "function") && typeof res.then === "function")) { | ||||||
|  |       return res; | ||||||
|  |     } | ||||||
|  |     return new Promise((resolve, reject) => { | ||||||
|  |       res.then((res) => res[0] ? reject(res[0]) : resolve(res[1])); | ||||||
|  |     }); | ||||||
|  |   }, | ||||||
|  | }); | ||||||
| @ -0,0 +1,81 @@ | |||||||
|  | { | ||||||
|  |   "id": "uni-config-center", | ||||||
|  |   "displayName": "uni-config-center", | ||||||
|  |   "version": "0.0.3", | ||||||
|  |   "description": "uniCloud 配置中心", | ||||||
|  |   "keywords": [ | ||||||
|  |     "配置", | ||||||
|  |     "配置中心" | ||||||
|  | ], | ||||||
|  |   "repository": "", | ||||||
|  |   "engines": { | ||||||
|  |     "HBuilderX": "^3.1.0" | ||||||
|  |   }, | ||||||
|  | "dcloudext": { | ||||||
|  |     "sale": { | ||||||
|  |       "regular": { | ||||||
|  |         "price": "0.00" | ||||||
|  |       }, | ||||||
|  |       "sourcecode": { | ||||||
|  |         "price": "0.00" | ||||||
|  |       } | ||||||
|  |     }, | ||||||
|  |     "contact": { | ||||||
|  |       "qq": "" | ||||||
|  |     }, | ||||||
|  |     "declaration": { | ||||||
|  |       "ads": "无", | ||||||
|  |       "data": "无", | ||||||
|  |       "permissions": "无" | ||||||
|  |     }, | ||||||
|  |     "npmurl": "", | ||||||
|  |     "type": "unicloud-template-function" | ||||||
|  |   }, | ||||||
|  |   "directories": { | ||||||
|  |     "example": "../../../scripts/dist" | ||||||
|  |   }, | ||||||
|  |   "uni_modules": { | ||||||
|  |     "dependencies": [], | ||||||
|  |     "encrypt": [], | ||||||
|  |     "platforms": { | ||||||
|  |       "cloud": { | ||||||
|  |         "tcb": "y", | ||||||
|  |         "aliyun": "y" | ||||||
|  |       }, | ||||||
|  |       "client": { | ||||||
|  |         "App": { | ||||||
|  |           "app-vue": "u", | ||||||
|  |           "app-nvue": "u" | ||||||
|  |         }, | ||||||
|  |         "H5-mobile": { | ||||||
|  |           "Safari": "u", | ||||||
|  |           "Android Browser": "u", | ||||||
|  |           "微信浏览器(Android)": "u", | ||||||
|  |           "QQ浏览器(Android)": "u" | ||||||
|  |         }, | ||||||
|  |         "H5-pc": { | ||||||
|  |           "Chrome": "u", | ||||||
|  |           "IE": "u", | ||||||
|  |           "Edge": "u", | ||||||
|  |           "Firefox": "u", | ||||||
|  |           "Safari": "u" | ||||||
|  |         }, | ||||||
|  |         "小程序": { | ||||||
|  |           "微信": "u", | ||||||
|  |           "阿里": "u", | ||||||
|  |           "百度": "u", | ||||||
|  |           "字节跳动": "u", | ||||||
|  |           "QQ": "u" | ||||||
|  |         }, | ||||||
|  |         "快应用": { | ||||||
|  |           "华为": "u", | ||||||
|  |           "联盟": "u" | ||||||
|  |         }, | ||||||
|  |         "Vue": { | ||||||
|  |             "vue2": "y", | ||||||
|  |             "vue3": "u" | ||||||
|  |         } | ||||||
|  |       } | ||||||
|  |     } | ||||||
|  |   } | ||||||
|  | } | ||||||
											
												
													File diff suppressed because one or more lines are too long
												
											
										
									
								| @ -0,0 +1,9 @@ | |||||||
|  | { | ||||||
|  |   "name": "uni-config-center", | ||||||
|  |   "version": "0.0.3", | ||||||
|  |   "description": "配置中心", | ||||||
|  |   "main": "index.js", | ||||||
|  |   "keywords": [], | ||||||
|  |   "author": "DCloud", | ||||||
|  |   "license": "Apache-2.0" | ||||||
|  | } | ||||||
| @ -0,0 +1,84 @@ | |||||||
|  | { | ||||||
|  | 	"id": "uni-id-common", | ||||||
|  | 	"displayName": "uni-id-common", | ||||||
|  | 	"version": "1.0.16", | ||||||
|  | 	"description": "包含uni-id token生成、校验、刷新功能的云函数公共模块", | ||||||
|  | 	"keywords": [ | ||||||
|  |         "uni-id-common", | ||||||
|  |         "uniCloud", | ||||||
|  |         "token", | ||||||
|  |         "权限" | ||||||
|  |     ], | ||||||
|  | 	"repository": "https://gitcode.net/dcloud/uni-id-common", | ||||||
|  | 	"engines": { | ||||||
|  | 		"HBuilderX": "^3.1.0" | ||||||
|  | 	}, | ||||||
|  |     "dcloudext": { | ||||||
|  |         "sale": { | ||||||
|  | 			"regular": { | ||||||
|  | 				"price": "0.00" | ||||||
|  | 			}, | ||||||
|  | 			"sourcecode": { | ||||||
|  | 				"price": "0.00" | ||||||
|  | 			} | ||||||
|  | 		}, | ||||||
|  | 		"contact": { | ||||||
|  | 			"qq": "" | ||||||
|  | 		}, | ||||||
|  | 		"declaration": { | ||||||
|  | 			"ads": "无", | ||||||
|  | 			"data": "无", | ||||||
|  | 			"permissions": "无" | ||||||
|  | 		}, | ||||||
|  |         "npmurl": "", | ||||||
|  |         "type": "unicloud-template-function" | ||||||
|  | 	}, | ||||||
|  | 	"uni_modules": { | ||||||
|  | 		"dependencies": ["uni-config-center"], | ||||||
|  | 		"encrypt": [], | ||||||
|  | 		"platforms": { | ||||||
|  | 			"cloud": { | ||||||
|  | 				"tcb": "y", | ||||||
|  | 				"aliyun": "y" | ||||||
|  | 			}, | ||||||
|  | 			"client": { | ||||||
|  | 				"Vue": { | ||||||
|  | 					"vue2": "u", | ||||||
|  | 					"vue3": "u" | ||||||
|  | 				}, | ||||||
|  | 				"App": { | ||||||
|  | 					"app-vue": "u", | ||||||
|  | 					"app-nvue": "u" | ||||||
|  | 				}, | ||||||
|  | 				"H5-mobile": { | ||||||
|  | 					"Safari": "u", | ||||||
|  | 					"Android Browser": "u", | ||||||
|  | 					"微信浏览器(Android)": "u", | ||||||
|  | 					"QQ浏览器(Android)": "u" | ||||||
|  | 				}, | ||||||
|  | 				"H5-pc": { | ||||||
|  | 					"Chrome": "u", | ||||||
|  | 					"IE": "u", | ||||||
|  | 					"Edge": "u", | ||||||
|  | 					"Firefox": "u", | ||||||
|  | 					"Safari": "u" | ||||||
|  | 				}, | ||||||
|  | 				"小程序": { | ||||||
|  | 					"微信": "u", | ||||||
|  | 					"阿里": "u", | ||||||
|  | 					"百度": "u", | ||||||
|  | 					"字节跳动": "u", | ||||||
|  | 					"QQ": "u", | ||||||
|  | 					"钉钉": "u", | ||||||
|  | 					"快手": "u", | ||||||
|  | 					"飞书": "u", | ||||||
|  |                     "京东": "u" | ||||||
|  | 				}, | ||||||
|  | 				"快应用": { | ||||||
|  | 					"华为": "u", | ||||||
|  | 					"联盟": "u" | ||||||
|  | 				} | ||||||
|  | 			} | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | } | ||||||
| @ -0,0 +1,3 @@ | |||||||
|  | # uni-id-common | ||||||
|  | 
 | ||||||
|  | 文档请参考:[uni-id-common](https://uniapp.dcloud.net.cn/uniCloud/uni-id-common.html) | ||||||
											
												
													File diff suppressed because one or more lines are too long
												
											
										
									
								| @ -0,0 +1,16 @@ | |||||||
|  | { | ||||||
|  |   "name": "uni-id-common", | ||||||
|  |   "version": "1.0.16", | ||||||
|  |   "description": "uni-id token生成、校验、刷新", | ||||||
|  |   "main": "index.js", | ||||||
|  |   "homepage": "https://uniapp.dcloud.io/uniCloud/uni-id-common.html", | ||||||
|  |   "repository": { | ||||||
|  |     "type": "git", | ||||||
|  |     "url": "git+https://gitee.com/dcloud/uni-id-common.git" | ||||||
|  |   }, | ||||||
|  |   "author": "DCloud", | ||||||
|  |   "license": "Apache-2.0", | ||||||
|  |   "dependencies": { | ||||||
|  |     "uni-config-center": "file:../../../../../uni-config-center/uniCloud/cloudfunctions/common/uni-config-center" | ||||||
|  |   } | ||||||
|  | } | ||||||
					Loading…
					
					
				
		Reference in new issue