|
@@ -0,0 +1,72 @@
|
|
|
|
+{
|
|
|
|
+ "currentState": "memory_saved",
|
|
|
|
+ "stateHistory": [
|
|
|
|
+ {
|
|
|
|
+ "from": "initial",
|
|
|
|
+ "command": "init",
|
|
|
|
+ "timestamp": "2025-07-16T02:02:21.718Z",
|
|
|
|
+ "args": [
|
|
|
|
+ {
|
|
|
|
+ "workingDirectory": "d:\\work\\bandhu-buy\\uniapp",
|
|
|
|
+ "ideType": "cursor"
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "from": "initialized",
|
|
|
|
+ "command": "welcome",
|
|
|
|
+ "timestamp": "2025-07-16T02:02:26.513Z",
|
|
|
|
+ "args": []
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "from": "service_discovery",
|
|
|
|
+ "command": "action",
|
|
|
|
+ "timestamp": "2025-07-16T02:02:31.030Z",
|
|
|
|
+ "args": [
|
|
|
|
+ "noface"
|
|
|
|
+ ]
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "from": "role_activated_with_memory",
|
|
|
|
+ "command": "learn",
|
|
|
|
+ "timestamp": "2025-07-16T02:08:54.421Z",
|
|
|
|
+ "args": [
|
|
|
|
+ "@file://d:\\work\\bandhu-buy\\uniapp/src\\pages\\income\\income.vue"
|
|
|
|
+ ]
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "from": "learn_error",
|
|
|
|
+ "command": "learn",
|
|
|
|
+ "timestamp": "2025-07-16T02:09:02.443Z",
|
|
|
|
+ "args": [
|
|
|
|
+ "@file://d:\\work\\bandhu-buy\\uniapp/src\\pages\\referEarn\\referEarn.vue"
|
|
|
|
+ ]
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "from": "learn_error",
|
|
|
|
+ "command": "learn",
|
|
|
|
+ "timestamp": "2025-07-16T02:09:13.148Z",
|
|
|
|
+ "args": [
|
|
|
|
+ "@file://d:\\work\\bandhu-buy\\uniapp/vite-plugins/copyNativeRes.ts"
|
|
|
|
+ ]
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "from": "learn_error",
|
|
|
|
+ "command": "learn",
|
|
|
|
+ "timestamp": "2025-07-16T02:09:20.149Z",
|
|
|
|
+ "args": [
|
|
|
|
+ "@file://d:\\work\\bandhu-buy\\uniapp/vite-plugins/updatePackageJson.ts"
|
|
|
|
+ ]
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "from": "learn_error",
|
|
|
|
+ "command": "remember",
|
|
|
|
+ "timestamp": "2025-07-16T02:46:16.275Z",
|
|
|
|
+ "args": [
|
|
|
|
+ "noface",
|
|
|
|
+ "Vue3 UniApp项目开发规范总结:\n\n## 页面类型规范\n1. **系统原生导航栏页面**:使用 layout: 'default' + 自定义导航栏配置(如income.vue)\n2. **自定义导航栏页面**:使用 navigationStyle: 'custom' + 手动处理安全区域(如referEarn.vue)\n\n## 代码书写习惯\n1. **UnoCSS样式**:完全使用UnoCSS原子类,避免传统CSS,优先使用内联样式避免动态类名问题\n2. **组件库**:wot-design-uni (wd-前缀组件),包括wd-form、wd-input、wd-button等\n3. **分页组件**:z-paging统一处理列表和滚动,配合useZPaging hook\n4. **TypeScript**:严格类型定义,defineOptions命名规范\n\n## 项目结构规范\n1. **路由配置**:使用json5格式的route块,自动生成pages.json\n2. **生命周期**:必须导入页面生命周期(即使未直接使用)\n3. **插件配置**:自定义vite插件处理构建逻辑\n4. **组件结构**:route配置 → script setup → template → style\n\n## 具体编码规范\n1. **安全区域**:自定义导航栏页面必须处理safeAreaInsets\n2. **组件命名**:defineOptions中明确name属性\n3. **表单处理**:使用wd-form + wd-input + 验证规则\n4. **样式写法**:优先UnoCSS原子类,必要时使用:deep()修改组件样式\n5. **背景图片**:统一使用/static/login-bg.png作为登录相关页面背景"
|
|
|
|
+ ]
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
|
|
+ "lastUpdated": "2025-07-16T02:46:16.302Z"
|
|
|
|
+}
|