临时保存

This commit is contained in:
2025-11-05 18:35:17 +08:00
parent 370e790d9d
commit 6bad32d9b1
9 changed files with 1039 additions and 46 deletions

102
docs/common/map.md Normal file
View File

@@ -0,0 +1,102 @@
# 这个文件在哪里被用到了,请给出详细的说明
我需要搜索代码库中对 map.html 文件的引用,以确定它在哪里被使用。
toolName: search_codebase
status: success
query: 查找对 /src/app/shop/view/config/map.html 文件的引用
我需要使用正则表达式进行更精确的搜索,查找对 map.html 文件的直接引用。
toolName: search_by_regex
status: success
query: shop/config/map
让我查看处理 'shop/config/map' 路由的控制器文件,以确定它是如何被使用的。
toolName: search_by_regex
status: success
query: class.*Config.*Controller|function.*map
我需要查看 Config.php 控制器中的 map() 方法实现,了解 map.html 文件是如何被使用的。
toolName: view_files
status: success
filePath: src/app/shop/controller/Config.php
`/src/app/shop/view/config/map.html` 文件在项目中主要用于店铺的地图配置功能。以下是详细说明:
## 文件用途
该文件是一个视图模板,用于展示和配置腾讯地图相关的设置,主要包括腾讯地图 KEY 的配置和手机端定位功能的启用/关闭。
## 使用方式
### 1. 控制器调用
该视图文件由 <mcfile name="Config.php" path="src/app/shop/controller/Config.php"></mcfile> 控制器中的 <mcsymbol name="map" filename="Config.php" path="src/app/shop/controller/Config.php" startline="168" type="function"></mcsymbol> 方法调用和渲染。当用户访问对应路由时,控制器会通过以下代码渲染该视图:
```php
return $this->fetch('config/map');
```
### 2. 菜单配置
**老配置**
在 <mcfile name="menu_shop.php" path="src/config/menu_shop.php"></mcfile> 文件中,该页面被注册为店铺后台的一个菜单项,位于"店铺设置" > "其他设置" > "地图配置",对应的路由为 `shop/config/map`
**最新配置**
现在关于菜单的处理全部放到数据库中_menu 表中, 查看配置处理
``` sql
-- auto-generated definition
create table lucky_menu
(
id int(11) unsigned auto_increment comment '菜单ID'
primary key,
app_module varchar(255) default 'admin' not null comment '应用模块',
addon varchar(255) default '' not null comment '所属插件',
title varchar(50) default '' not null comment '菜单标题',
name varchar(50) default '' not null comment '菜单关键字',
parent varchar(255) default '' not null comment '上级菜单',
level int default 1 not null comment '深度等级',
url varchar(255) default '' not null comment '链接地址',
is_show tinyint default 0 not null comment '是否展示',
sort int default 0 not null comment '排序(同级有效)',
`desc` varchar(255) default '' not null comment '描述',
is_icon tinyint default 0 not null comment '是否是矢量菜单图',
picture varchar(255) default '' not null comment '图片(矢量图)',
picture_select varchar(255) default '' not null comment '图片(矢量图)(选中)',
is_control tinyint default 1 not null comment '是否控制权限'
)
comment '菜单表' charset = utf8
row_format = DYNAMIC;
```
### 3. 其他页面引用
该配置页面在以下几个页面中被引用,作为地图配置的入口点:
- <mcfile name="local.html" path="src/app/shop/view/local/local.html"></mcfile>:当地址定位功能无法使用时,提供配置入口
- <mcfile name="contact.html" path="src/app/shop/view/shop/contact.html"></mcfile>:提供地图配置的入口(目前被注释掉)
## 功能实现
1. **数据提交**:通过 AJAX 提交表单数据到 `shop/config/map` 路由
2. **数据处理**:控制器接收数据后,调用 `ConfigModel` 的方法验证和保存地图配置
3. **配置存储**:配置信息存储在系统配置中,包括腾讯地图 KEY 和手机端定位开关状态
## 关联功能
该地图配置主要用于支持项目中的定位功能,特别是在门店地图展示、地址选择等场景中使用。

38
docs/common/menu.md Normal file
View File

@@ -0,0 +1,38 @@
# 菜单配置
系统的菜单配置全部放到数据库中_menu 表中
``` sql
-- auto-generated definition
create table lucky_menu
(
id int(11) unsigned auto_increment comment '菜单ID'
primary key,
app_module varchar(255) default 'admin' not null comment '应用模块',
addon varchar(255) default '' not null comment '所属插件',
title varchar(50) default '' not null comment '菜单标题',
name varchar(50) default '' not null comment '菜单关键字',
parent varchar(255) default '' not null comment '上级菜单',
level int default 1 not null comment '深度等级',
url varchar(255) default '' not null comment '链接地址',
is_show tinyint default 0 not null comment '是否展示',
sort int default 0 not null comment '排序(同级有效)',
`desc` varchar(255) default '' not null comment '描述',
is_icon tinyint default 0 not null comment '是否是矢量菜单图',
picture varchar(255) default '' not null comment '图片(矢量图)',
picture_select varchar(255) default '' not null comment '图片(矢量图)(选中)',
is_control tinyint default 1 not null comment '是否控制权限'
)
comment '菜单表' charset = utf8
row_format = DYNAMIC;
```
以 AI 配置菜单为例
```
INSERT INTO shop_mallnew.lucky_menu (id, app_module, addon, title, name, parent, level, url, is_show, sort, `desc`, is_icon, picture, picture_select, is_control) VALUES (2481, 'shop', '', 'AI智能', 'CONFIG_AI_PLATFORM', 'CONFIG_BASE', 3, 'shop/config/ai', 1, 99, '', 0, '', '', 1);
```
| id | app\_module | addon | title | name | parent | level | url | is\_show | sort | desc | is\_icon | picture | picture\_select | is\_control |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| 2481 | shop | | AI智能 | CONFIG\_AI\_PLATFORM | CONFIG\_BASE | 3 | shop/config/ai | 1 | 99 | | 0 | | | 1 |

7
docs/common/password.md Normal file
View File

@@ -0,0 +1,7 @@
# 密码关系
| 密码明文 | 密码密文|
| --- | --- |
| shjs8888 | 3acce189dc4fb79af8750eda8ea7073a |
| admin123456789 | 29e6803d217472f3c0b2cd7f13f84ec9 |

12
docs/dev.md Normal file
View File

@@ -0,0 +1,12 @@
# 开发指引
## View模板中的定义
```
<!-- 例如在html模板中引入route.js MERCHANT_JS是一个动态变量会被替换为实际的路径 -->
<script src="MERCHANT_JS/route.js"></script>
```
这个变量是在 src\app\event\init\InitConfig.php 中定义的,会在系统初始化时被替换为实际的路径。

View File

@@ -1,46 +1,46 @@
# 租户端(tenement)/商户端
欢迎来到租户端(tenement)/商户端的文档页面。在这里,您将找到有关如何使用和管理租户端/商户端的详细信息和指南。
## 目录
- [简介](#简介)
- [登录](#登录)
- [功能概述](#功能概述)
- [常见问题](#常见问题)
- [支持与反馈](#支持与反馈)
## 简介
租户端(tenement)/商户端是一个专为租户/商户设计的平台,旨在简化管理流程,提高运营效率。无论您是制造业企业还是独立商户,我们的系统都能满足您的需求。
## 登录
要开始使用租户端/商户端,您需要按照以下步骤进行登录及配置:
1. 访问登录页面:[登录链接https://example.com/shop/login/login.html](https://example.com/shop/login/login.html)
2. 使用您的管理员账号和密码进行登录。
3. 登录后,您可以根据需要配置系统设置、用户权限和其他功能。
**开发账号**
- 网址[http://localhost/shop/login/login.html](http://localhost/shop/login/login.html)
- 测试账号:防爆电器
- 密码shjs8888
## 功能概述
租户端(tenement)/商户端提供了以下主要功能:
1. **店铺管理**:管理店铺信息、店铺装修、文章管理、文件管理等等内容。
2. **商品管理**: 实时监控和管理商品库存,确保供应链顺畅。
3. **会员管理**: 管理会员信息,提升会员服务质量。
4. **订单管理**: 管理和跟踪客户订单的处理状态。
5. **营销管理**: 创建和管理促销活动,例如优惠券、积分兑换等活动,吸引更多客户。
6. **分销管理**:管理分销商、分销商品、分销订单、分销提现等内容。
7. **财务管理**:管理财务数据,包括收入、支出和利润分析,涉及充值订单、余额明细、积分明细、余额提现等。
8. **数据分析**: 提供详细的数据报表,帮助您了解业务表现和客户行为。(交易分析、会员统计、商品统计)
9. **渠道管理**: 提供微信小程序、快应用、H5等的配置管理
10. **应用管理**:提供应用插件,助力商户运营管理。
11. **系统设置**: 配置系统参数,确保平台运行顺畅。
# 租户端(tenement)/商户端
欢迎来到租户端(tenement)/商户端的文档页面。在这里,您将找到有关如何使用和管理租户端/商户端的详细信息和指南。
## 目录
- [简介](#简介)
- [登录](#登录)
- [功能概述](#功能概述)
- [常见问题](#常见问题)
- [支持与反馈](#支持与反馈)
## 简介
租户端(tenement)/商户端是一个专为租户/商户设计的平台,旨在简化管理流程,提高运营效率。无论您是制造业企业还是独立商户,我们的系统都能满足您的需求。
## 登录
要开始使用租户端/商户端,您需要按照以下步骤进行登录及配置:
1. 访问登录页面:[登录链接https://example.com/shop/login/login.html](https://example.com/shop/login/login.html)
2. 使用您的管理员账号和密码进行登录。
3. 登录后,您可以根据需要配置系统设置、用户权限和其他功能。
**开发账号**
- 网址[http://localhost/shop/login/login.html](http://localhost/shop/login/login.html)
- 测试账号:制氧设备
- 密码shjs8888
## 功能概述
租户端(tenement)/商户端提供了以下主要功能:
1. **店铺管理**:管理店铺信息、店铺装修、文章管理、文件管理等等内容。
2. **商品管理**: 实时监控和管理商品库存,确保供应链顺畅。
3. **会员管理**: 管理会员信息,提升会员服务质量。
4. **订单管理**: 管理和跟踪客户订单的处理状态。
5. **营销管理**: 创建和管理促销活动,例如优惠券、积分兑换等活动,吸引更多客户。
6. **分销管理**:管理分销商、分销商品、分销订单、分销提现等内容。
7. **财务管理**:管理财务数据,包括收入、支出和利润分析,涉及充值订单、余额明细、积分明细、余额提现等。
8. **数据分析**: 提供详细的数据报表,帮助您了解业务表现和客户行为。(交易分析、会员统计、商品统计)
9. **渠道管理**: 提供微信小程序、快应用、H5等的配置管理
10. **应用管理**:提供应用插件,助力商户运营管理。
11. **系统设置**: 配置系统参数,确保平台运行顺畅。
<!-- 12. **实时监控**: 提供平台运行状态的实时监控和预警功能。 -->