From 7b76a27600cdb57696008c61e34cd24104721cde Mon Sep 17 00:00:00 2001 From: yzh <2764237871@qq.com> Date: Sat, 6 Dec 2025 15:50:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=E8=87=B3?= =?UTF-8?q?=20xcx?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xcx/app.js | 23 +++++++++++++ xcx/app.json | 43 +++++++++++++++++++++++++ xcx/app.wxss | 57 +++++++++++++++++++++++++++++++++ xcx/project.config.json | 41 ++++++++++++++++++++++++ xcx/project.private.config.json | 23 +++++++++++++ 5 files changed, 187 insertions(+) create mode 100644 xcx/app.js create mode 100644 xcx/app.json create mode 100644 xcx/app.wxss create mode 100644 xcx/project.config.json create mode 100644 xcx/project.private.config.json diff --git a/xcx/app.js b/xcx/app.js new file mode 100644 index 0000000..59cfef9 --- /dev/null +++ b/xcx/app.js @@ -0,0 +1,23 @@ +// app.js +App({ + onLaunch() { + this.globalData = { + supervisorInfo: { + name: "张主管", + phone: "13800138000", + role: "护理主管" + } + } + const logs = wx.getStorageSync('logs') || [] + logs.unshift(Date.now()) + wx.setStorageSync('logs', logs) + + wx.login({ + success: res => { + } + }) + }, + globalData: { + userInfo: null + } +}) diff --git a/xcx/app.json b/xcx/app.json new file mode 100644 index 0000000..6f8a95a --- /dev/null +++ b/xcx/app.json @@ -0,0 +1,43 @@ +{ + "pages": [ + "pages/shouye/shouye", + "pages/renwu/task", + "pages/jiankang/health", + "pages/mine/mine", + "pages/index/index", + "pages/logs/logs" + ], + "window": { + "backgroundTextStyle": "light", + "navigationBarBackgroundColor": "#e6f7ff", + "navigationBarTitleText": "护理主管系统", + "navigationBarTextStyle": "black" + }, + "tabBar": { + "color": "#666", + "selectedColor": "#1890ff", + "borderStyle": "black", + "list": [ + { + "pagePath": "pages/shouye/shouye", + "text": "首页" + }, + { + "pagePath": "pages/renwu/task", + "text": "任务" + }, + { + "pagePath": "pages/jiankang/health", + "text": "健康" + }, + { + "pagePath": "pages/mine/mine", + "text": "我的" + } + ] + }, + "style": "v2", + "componentFramework": "glass-easel", + "sitemapLocation": "sitemap.json", + "lazyCodeLoading": "requiredComponents" +} \ No newline at end of file diff --git a/xcx/app.wxss b/xcx/app.wxss new file mode 100644 index 0000000..23ac020 --- /dev/null +++ b/xcx/app.wxss @@ -0,0 +1,57 @@ +/* 页面背景色 */ +page { + background-color: #f5f5f5; + font-size: 14px; + color: #333; +} + +/* 卡片样式 */ +.card { + background-color: #fff; + border-radius: 8px; + margin: 10rpx; + padding: 20rpx; + box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05); +} + +/* 标题样式 */ +.title { + font-size: 16px; + font-weight: 600; + margin-bottom: 15rpx; + display: flex; + justify-content: space-between; + align-items: center; +} + +/* 按钮样式 */ +.btn { + background-color: #1890ff; + color: #fff; + border-radius: 30rpx; + padding: 12rpx 24rpx; + font-size: 14px; + text-align: center; +} + +/* 数字统计卡片 */ +.stat-card { + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + padding: 15rpx; + flex: 1; +} + +.stat-value { + font-size: 24px; + font-weight: 700; + color: #1890ff; + margin-bottom: 5rpx; +} + +.stat-a2 { + font-size: 12px; + color: #666; +} \ No newline at end of file diff --git a/xcx/project.config.json b/xcx/project.config.json new file mode 100644 index 0000000..6e8fd6f --- /dev/null +++ b/xcx/project.config.json @@ -0,0 +1,41 @@ +{ + "compileType": "miniprogram", + "libVersion": "trial", + "packOptions": { + "ignore": [], + "include": [] + }, + "setting": { + "coverView": true, + "es6": true, + "postcss": true, + "minified": true, + "enhance": true, + "showShadowRootInWxmlPanel": true, + "packNpmRelationList": [], + "babelSetting": { + "ignore": [], + "disablePlugins": [], + "outputPath": "" + }, + "compileWorklet": false, + "uglifyFileName": false, + "uploadWithSourceMap": true, + "packNpmManually": false, + "minifyWXSS": true, + "minifyWXML": true, + "localPlugins": false, + "condition": false, + "swc": false, + "disableSWC": true, + "disableUseStrict": false, + "useCompilerPlugins": false + }, + "condition": {}, + "editorSetting": { + "tabIndent": "auto", + "tabSize": 2 + }, + "appid": "wxc09e9eda805a0729", + "simulatorPluginLibVersion": {} +} \ No newline at end of file diff --git a/xcx/project.private.config.json b/xcx/project.private.config.json new file mode 100644 index 0000000..a4ea198 --- /dev/null +++ b/xcx/project.private.config.json @@ -0,0 +1,23 @@ +{ + "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html", + "projectname": "%E4%B8%BB%E7%AE%A1", + "setting": { + "compileHotReLoad": true, + "urlCheck": false, + "coverView": true, + "lazyloadPlaceholderEnable": false, + "skylineRenderEnable": false, + "preloadBackgroundData": false, + "autoAudits": false, + "useApiHook": true, + "useApiHostProcess": true, + "showShadowRootInWxmlPanel": true, + "useStaticServer": false, + "useLanDebug": false, + "showES6CompileOption": false, + "bigPackageSizeSupport": false, + "checkInvalidKey": true, + "ignoreDevUnusedFiles": true + }, + "libVersion": "3.11.3" +} \ No newline at end of file