From 9a98f7502746f8b52aaaeed5677470fc57c4f4bd Mon Sep 17 00:00:00 2001 From: hua <940357815@qq.com> Date: Fri, 10 Apr 2026 14:45:16 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E4=B8=80=E8=BA=AB=E4=BB=BD=E8=AE=A4?= =?UTF-8?q?=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 69 +++++++++++++++++++++++ README.md | 0 index.html | 20 +++++++ main.js | 22 ++++++++ manifest.json | 72 ++++++++++++++++++++++++ node_modules/.package-lock.json | 12 ++++ node_modules/amfe-flexible/.editorconfig | 23 ++++++++ node_modules/amfe-flexible/.npmignore | 25 ++++++++ node_modules/amfe-flexible/README.md | 34 +++++++++++ node_modules/amfe-flexible/index.js | 44 +++++++++++++++ node_modules/amfe-flexible/index.min.js | 1 + node_modules/amfe-flexible/package.json | 33 +++++++++++ package-lock.json | 17 ++++++ 13 files changed, 372 insertions(+) create mode 100644 App.vue create mode 100644 README.md create mode 100644 index.html create mode 100644 main.js create mode 100644 manifest.json create mode 100644 node_modules/.package-lock.json create mode 100644 node_modules/amfe-flexible/.editorconfig create mode 100644 node_modules/amfe-flexible/.npmignore create mode 100644 node_modules/amfe-flexible/README.md create mode 100644 node_modules/amfe-flexible/index.js create mode 100644 node_modules/amfe-flexible/index.min.js create mode 100644 node_modules/amfe-flexible/package.json create mode 100644 package-lock.json diff --git a/App.vue b/App.vue new file mode 100644 index 0000000..f21d0eb --- /dev/null +++ b/App.vue @@ -0,0 +1,69 @@ + + + \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/index.html b/index.html new file mode 100644 index 0000000..c3ff205 --- /dev/null +++ b/index.html @@ -0,0 +1,20 @@ + + + + + + + + + + +
+ + + diff --git a/main.js b/main.js new file mode 100644 index 0000000..20ad8f1 --- /dev/null +++ b/main.js @@ -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 diff --git a/manifest.json b/manifest.json new file mode 100644 index 0000000..5ea28e4 --- /dev/null +++ b/manifest.json @@ -0,0 +1,72 @@ +{ + "name" : "AuthenticationPlatform", + "appid" : "__UNI__E3C8F8C", + "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" : [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ] + }, + /* 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" : "3" +} diff --git a/node_modules/.package-lock.json b/node_modules/.package-lock.json new file mode 100644 index 0000000..016ecf6 --- /dev/null +++ b/node_modules/.package-lock.json @@ -0,0 +1,12 @@ +{ + "name": "AuthenticationPlatform", + "lockfileVersion": 3, + "requires": true, + "packages": { + "node_modules/amfe-flexible": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/amfe-flexible/-/amfe-flexible-2.2.1.tgz", + "integrity": "sha512-L2VfvDzoETBjhRptg5u/IUuzHSuxm22JpSRb404p/TBGeRfwWmmNEbB+TFPIP/sS/+pbM18bCFH9QnMojLuPNw==" + } + } +} diff --git a/node_modules/amfe-flexible/.editorconfig b/node_modules/amfe-flexible/.editorconfig new file mode 100644 index 0000000..f3cff53 --- /dev/null +++ b/node_modules/amfe-flexible/.editorconfig @@ -0,0 +1,23 @@ +# editorconfig.org + +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true +max_line_length = off +indent_style = space +indent_size = 2 + +[{package.json,.travis.yml,.eslintrc*}] +indent_style = space +indent_size = 2 + +[*.md] +max_line_length = off +trim_trailing_whitespace = false + +[COMMIT_EDITMSG] +max_line_length = off diff --git a/node_modules/amfe-flexible/.npmignore b/node_modules/amfe-flexible/.npmignore new file mode 100644 index 0000000..2d4bd80 --- /dev/null +++ b/node_modules/amfe-flexible/.npmignore @@ -0,0 +1,25 @@ +# OS +.DS_Store +Thumbs.db +Desktop.ini + +# IDE +.idea/ +.vscode/ +.project +*.swp +*.swo + +# Dependency, Cache, Temporary +node_modules/ +bower_components/ +.svn/ +.sass-cache/ +.nodejs-cache/ +npm-debug.log + +# Distribution +coverage/ +dist/ +docs/ +*.iml diff --git a/node_modules/amfe-flexible/README.md b/node_modules/amfe-flexible/README.md new file mode 100644 index 0000000..a2e3cc8 --- /dev/null +++ b/node_modules/amfe-flexible/README.md @@ -0,0 +1,34 @@ +# amfe-flexible + +[Classic edition (0.3.2)](https://github.com/amfe/lib-flexible/tree/master) + +## Usage + +#### Install + +`npm i -S amfe-flexible` + +#### Import + +```html + + +``` + +You can inline this file with [inline-source](https://npmjs.org/package/inline-source). + +#### Develop + +Use [postcss-adaptive](https://www.npmjs.com/package/postcss-adaptive). + +## License + +(The MIT License) + +Copyright (c) 2016 Alibaba MFE + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/amfe-flexible/index.js b/node_modules/amfe-flexible/index.js new file mode 100644 index 0000000..4c793dd --- /dev/null +++ b/node_modules/amfe-flexible/index.js @@ -0,0 +1,44 @@ +(function flexible (window, document) { + var docEl = document.documentElement + var dpr = window.devicePixelRatio || 1 + + // adjust body font size + function setBodyFontSize () { + if (document.body) { + document.body.style.fontSize = (12 * dpr) + 'px' + } + else { + document.addEventListener('DOMContentLoaded', setBodyFontSize) + } + } + setBodyFontSize(); + + // set 1rem = viewWidth / 10 + function setRemUnit () { + var rem = docEl.clientWidth / 10 + docEl.style.fontSize = rem + 'px' + } + + setRemUnit() + + // reset rem unit on page resize + window.addEventListener('resize', setRemUnit) + window.addEventListener('pageshow', function (e) { + if (e.persisted) { + setRemUnit() + } + }) + + // detect 0.5px supports + if (dpr >= 2) { + var fakeBody = document.createElement('body') + var testElement = document.createElement('div') + testElement.style.border = '.5px solid transparent' + fakeBody.appendChild(testElement) + docEl.appendChild(fakeBody) + if (testElement.offsetHeight === 1) { + docEl.classList.add('hairlines') + } + docEl.removeChild(fakeBody) + } +}(window, document)) diff --git a/node_modules/amfe-flexible/index.min.js b/node_modules/amfe-flexible/index.min.js new file mode 100644 index 0000000..326327b --- /dev/null +++ b/node_modules/amfe-flexible/index.min.js @@ -0,0 +1 @@ +!function(e,t){function n(){t.body?t.body.style.fontSize=12*o+"px":t.addEventListener("DOMContentLoaded",n)}function d(){var e=i.clientWidth/10;i.style.fontSize=e+"px"}var i=t.documentElement,o=e.devicePixelRatio||1;if(n(),d(),e.addEventListener("resize",d),e.addEventListener("pageshow",function(e){e.persisted&&d()}),o>=2){var a=t.createElement("body"),s=t.createElement("div");s.style.border=".5px solid transparent",a.appendChild(s),i.appendChild(a),1===s.offsetHeight&&i.classList.add("hairlines"),i.removeChild(a)}}(window,document); \ No newline at end of file diff --git a/node_modules/amfe-flexible/package.json b/node_modules/amfe-flexible/package.json new file mode 100644 index 0000000..246c265 --- /dev/null +++ b/node_modules/amfe-flexible/package.json @@ -0,0 +1,33 @@ +{ + "name": "amfe-flexible", + "version": "2.2.1", + "description": "Build flexible page on mobile platform", + "keywords": [ + "lib", + "amfe", + "flexible", + "mobile", + "css", + "rem", + "vw" + ], + "homepage": "https://github.com/amfe/lib-flexible", + "repository": { + "type": "git", + "url": "git@github.com:amfe/lib-flexible.git" + }, + "author": [ + { + "name": "mingelz", + "email": "mingelz@gmail.com" + } + ], + "scripts": { + "compress": "uglifyjs index.js -o index.min.js -c -m" + }, + "dependencies": {}, + "devDependencies": { + "uglify-js": "^3.0.27" + }, + "license": "MIT" +} diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..67bb5b8 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,17 @@ +{ + "name": "AuthenticationPlatform", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "dependencies": { + "amfe-flexible": "^2.2.1" + } + }, + "node_modules/amfe-flexible": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/amfe-flexible/-/amfe-flexible-2.2.1.tgz", + "integrity": "sha512-L2VfvDzoETBjhRptg5u/IUuzHSuxm22JpSRb404p/TBGeRfwWmmNEbB+TFPIP/sS/+pbM18bCFH9QnMojLuPNw==" + } + } +}