上传文件至 docs

新建项目
This commit is contained in:
2026-07-29 10:43:39 +08:00
commit 32f5449cf2
5 changed files with 324 additions and 0 deletions

15
docs/app.js Normal file
View File

@@ -0,0 +1,15 @@
App({
globalData: {
version: "0.1.0-mvp",
user: {
id: "player-me",
name: "我",
avatar: "我"
}
},
onLaunch() {
const service = require("./services/game-service");
service.ensureSeedData();
}
});

21
docs/app.json Normal file
View File

@@ -0,0 +1,21 @@
{
"pages": [
"pages/home/home",
"pages/create/create",
"pages/join/join",
"pages/lobby/lobby",
"pages/game/game",
"pages/result/result",
"pages/rules/rules"
],
"window": {
"navigationBarTitleText": "藏猫猫计划",
"navigationBarBackgroundColor": "#F7F4EC",
"navigationBarTextStyle": "black",
"backgroundColor": "#F7F4EC",
"backgroundTextStyle": "dark"
},
"style": "v2",
"sitemapLocation": "sitemap.json",
"lazyCodeLoading": "requiredComponents"
}

218
docs/app.wxss Normal file
View File

@@ -0,0 +1,218 @@
page {
--ink: #17231d;
--muted: #68726c;
--paper: #f7f4ec;
--card: #fffdf7;
--green: #1d6b4f;
--green-dark: #124a37;
--lime: #d9ef72;
--orange: #ef8f4a;
--red: #d9554d;
background: var(--paper);
color: var(--ink);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
font-size: 30rpx;
}
view,
text,
button,
input,
slider,
switch {
box-sizing: border-box;
}
button {
display: flex;
align-items: center;
justify-content: center;
border-radius: 24rpx;
font-weight: 700;
line-height: normal;
}
button::after {
border: none;
}
.page {
min-height: 100vh;
padding: 36rpx 32rpx 64rpx;
}
.eyebrow {
color: var(--green);
font-size: 22rpx;
font-weight: 800;
letter-spacing: 4rpx;
text-transform: uppercase;
}
.title {
margin-top: 12rpx;
font-size: 54rpx;
font-weight: 900;
line-height: 1.15;
}
.subtitle {
margin-top: 16rpx;
color: var(--muted);
font-size: 28rpx;
line-height: 1.7;
}
.card {
margin-top: 24rpx;
padding: 28rpx;
background: var(--card);
border: 2rpx solid rgba(23, 35, 29, 0.08);
border-radius: 28rpx;
box-shadow: 0 12rpx 36rpx rgba(35, 46, 40, 0.06);
}
.card-title {
font-size: 32rpx;
font-weight: 800;
}
.primary-button {
height: 100rpx;
padding: 0 32rpx;
background: var(--green);
color: #fff;
font-size: 32rpx;
}
.secondary-button {
height: 94rpx;
padding: 0 32rpx;
background: var(--lime);
color: var(--ink);
font-size: 30rpx;
}
.ghost-button {
height: 86rpx;
background: transparent;
border: 2rpx solid rgba(23, 35, 29, 0.16);
color: var(--ink);
font-size: 28rpx;
}
.danger-button {
height: 86rpx;
background: #fff0ee;
color: var(--red);
font-size: 28rpx;
}
.button-stack {
display: flex;
flex-direction: column;
gap: 20rpx;
margin-top: 32rpx;
}
.row {
display: flex;
align-items: center;
}
.between {
justify-content: space-between;
}
.pill {
display: inline-flex;
align-items: center;
min-height: 48rpx;
padding: 0 18rpx;
border-radius: 999rpx;
background: #e7eee8;
color: var(--green-dark);
font-size: 23rpx;
font-weight: 700;
}
.pill.orange {
background: #fff0df;
color: #9c531e;
}
.pill.red {
background: #ffe8e5;
color: #a63b35;
}
.section-label {
margin: 40rpx 0 16rpx;
font-size: 24rpx;
font-weight: 800;
letter-spacing: 2rpx;
color: var(--muted);
}
.muted {
color: var(--muted);
}
.divider {
height: 2rpx;
margin: 24rpx 0;
background: rgba(23, 35, 29, 0.08);
}
.safe-bottom {
height: 40rpx;
}
.state-page {
display: flex;
min-height: 80vh;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 60rpx 48rpx;
text-align: center;
}
.state-icon {
display: flex;
align-items: center;
justify-content: center;
width: 100rpx;
height: 100rpx;
background: #e7eee8;
border-radius: 32rpx;
color: var(--green);
font-size: 50rpx;
font-weight: 900;
}
.state-title {
margin-top: 28rpx;
font-size: 36rpx;
font-weight: 900;
}
.state-copy {
max-width: 560rpx;
margin-top: 14rpx;
color: var(--muted);
font-size: 25rpx;
line-height: 1.65;
}
.state-action {
width: 320rpx;
margin-top: 36rpx;
}
.empty-inline {
padding: 34rpx 24rpx;
color: var(--muted);
font-size: 23rpx;
text-align: center;
}

48
docs/project.config.json Normal file
View File

@@ -0,0 +1,48 @@
{
"description": "藏猫猫计划微信小程序原型",
"packOptions": {
"ignore": [
{
"value": "docs",
"type": "folder"
}
],
"include": []
},
"setting": {
"useCompilerPlugins": false,
"es6": true,
"enhance": true,
"postcss": true,
"minified": true,
"urlCheck": false,
"coverView": true,
"showShadowRootInWxmlPanel": true,
"compileHotReLoad": true,
"lazyloadPlaceholderEnable": false,
"compileWorklet": false,
"uglifyFileName": false,
"uploadWithSourceMap": true,
"packNpmManually": false,
"packNpmRelationList": [],
"minifyWXSS": true,
"minifyWXML": true,
"localPlugins": false,
"disableUseStrict": false,
"condition": false,
"swc": false,
"disableSWC": true,
"babelSetting": {
"ignore": [],
"disablePlugins": [],
"outputPath": ""
}
},
"compileType": "miniprogram",
"libVersion": "3.17.0",
"appid": "wxfbaabed3c4ce758b",
"projectname": "mini-zmc",
"condition": {},
"simulatorPluginLibVersion": {},
"editorSetting": {}
}

View File

@@ -0,0 +1,22 @@
{
"libVersion": "3.16.2",
"projectname": "mini-zmc",
"condition": {},
"setting": {
"urlCheck": false,
"coverView": true,
"lazyloadPlaceholderEnable": false,
"skylineRenderEnable": false,
"preloadBackgroundData": false,
"autoAudits": false,
"useApiHook": true,
"showShadowRootInWxmlPanel": true,
"useStaticServer": false,
"useLanDebug": false,
"showES6CompileOption": false,
"compileHotReLoad": true,
"checkInvalidKey": true,
"ignoreDevUnusedFiles": true,
"bigPackageSizeSupport": false
}
}