From 7c067b59e4f4b9bd89b02666a19b0ac875e608a7 Mon Sep 17 00:00:00 2001 From: chaser <1095098147@qq.com> Date: Mon, 17 Feb 2025 00:22:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=E8=87=B3?= =?UTF-8?q?=20'=E5=88=9D=E5=A7=8B=E5=8C=96'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 初始化/App.uvue | 49 +++++++++++++++++++++++++++++++++++ 初始化/index.html | 20 ++++++++++++++ 初始化/main.uts | 9 +++++++ 初始化/manifest.json | 43 ++++++++++++++++++++++++++++++ 初始化/pages.json | 69 +++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 190 insertions(+) create mode 100644 初始化/App.uvue create mode 100644 初始化/index.html create mode 100644 初始化/main.uts create mode 100644 初始化/manifest.json create mode 100644 初始化/pages.json diff --git a/初始化/App.uvue b/初始化/App.uvue new file mode 100644 index 0000000..11ba5c4 --- /dev/null +++ b/初始化/App.uvue @@ -0,0 +1,49 @@ + + + \ No newline at end of file diff --git a/初始化/index.html b/初始化/index.html new file mode 100644 index 0000000..742e86d --- /dev/null +++ b/初始化/index.html @@ -0,0 +1,20 @@ + + + + + + + + + + +
+ + + \ No newline at end of file diff --git a/初始化/main.uts b/初始化/main.uts new file mode 100644 index 0000000..07ed640 --- /dev/null +++ b/初始化/main.uts @@ -0,0 +1,9 @@ +import App from './App.uvue' + +import { createSSRApp } from 'vue' +export function createApp() { + const app = createSSRApp(App) + return { + app + } +} \ No newline at end of file diff --git a/初始化/manifest.json b/初始化/manifest.json new file mode 100644 index 0000000..4e99048 --- /dev/null +++ b/初始化/manifest.json @@ -0,0 +1,43 @@ +{ + "name" : "111", + "appid" : "__UNI__ABF0653", + "description" : "", + "versionName" : "1.0.0", + "versionCode" : "100", + "uni-app-x" : {}, + /* 快应用特有相关 */ + "quickapp" : {}, + /* 小程序特有相关 */ + "mp-weixin" : { + "appid" : "wx7d74b5db6c1f7328", + "setting" : { + "urlCheck" : false + }, + "usingComponents" : true + }, + "mp-alipay" : { + "usingComponents" : true + }, + "mp-baidu" : { + "usingComponents" : true + }, + "mp-toutiao" : { + "usingComponents" : true + }, + "uniStatistics" : { + "enable" : false + }, + "vueVersion" : "3", + "app" : { + "distribute" : { + "icons" : { + "android" : { + "hdpi" : "", + "xhdpi" : "", + "xxhdpi" : "", + "xxxhdpi" : "" + } + } + } + } +} diff --git a/初始化/pages.json b/初始化/pages.json new file mode 100644 index 0000000..6916894 --- /dev/null +++ b/初始化/pages.json @@ -0,0 +1,69 @@ +{ + "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages + { + "path": "pages/index/login", + "style": { + "navigationBarTitleText": "", + "navigationStyle":"custom" + } + }, + { + "path": "pages/home/home", + "style": { + "navigationBarTitleText": "北京汽车有限公司", + "navigationStyle":"custom" + }, + "needLogin": true + }, + { + "path": "pages/index/wode", + "style": { + "navigationBarTitleText": "北京汽车有限公司", + "navigationStyle":"custom" + }, + "needLogin": true + } + ], + "globalStyle": { + "navigationBarTextStyle": "black", + "navigationBarTitleText": "uni-app x", + "navigationBarBackgroundColor": "#F8F8F8", + "backgroundColor": "#F8F8F8" + }, + "uniIdRouter": {}, + "tabBar": { + "color": "#7A7E83", + "selectedColor": "#3cc51f", + "borderStyle": "black", + "backgroundColor": "#ffffff", + "list": [{ + "pagePath": "pages/home/home", + "iconPath": "", + "selectedIconPath": "static/image/icon_component_HL.png", + "text": "首页" + }, { + "pagePath": "", + "iconPath": "", + "selectedIconPath": "static/image/icon_API_HL.png", + "text": "订单" + }, + { + "pagePath": "pages/index/wode", + "iconPath": "", + "selectedIconPath": "static/image/icon_API_HL.png", + "text": "我的" + } + ] + }, + "condition" : { //模式配置,仅开发期间生效 + "current": 0, //当前激活的模式(list 的索引项) + "list": [ + { + "name": "", //模式名称 + "path": "", //启动页面,必选 + "query": "" //启动参数,在页面的onLoad函数里面得到 + } + ] + } + +}