Files
template-10582/.workbuddy/memory/2026-04-08.md
赵忠林 969bc00b53 feat(customer): 新增接待人员选择功能
- 为 ShopDealerApply 模型增加接待人员 ID 和姓名字段
- dealer/customer/add 页面引入 Popup、SearchBar 及图标组件
- 实现接待人员选择弹层及搜索功能
- 表单中新增接待人员展示及清除操作
- 编辑模式下回填接待人员信息
- 提交表单时携带接待人员相关字段

feat(index): 新增首页品牌画册展示组件

- 创建 CatalogShowcase 组件及样式文件
- 展示品牌画册封面及标题说明
- “点击查看”按钮复制链接并提示用户打开浏览器查看
- 在首页主视图添加 CatalogShowcase 组件显示

fix(webview): 优化 webview 页面 URL 获取逻辑

- 使用 useRouter Hook 获取参数替代直接调用 Taro.getCurrentPages
-
2026-04-09 12:24:07 +08:00

34 lines
1.8 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 2026-04-08 工作日志
## dealer/customer/add 新增接待人员选择功能
-`src/api/shop/shopDealerApply/model/index.ts` 中为 `ShopDealerApply` 接口新增了 `receptionistId`接待人员用户ID`receptionistName`(接待人员姓名)字段
-`src/dealer/customer/add.tsx` 中实现了接待人员选择功能:
- 引入 `Popup``SearchBar``ArrowRight``Del` 组件
- 引入 `pageShopDealerUser` API
- 添加接待人员相关状态(`showReceptionistPicker``receptionistList``selectedReceptionist` 等)
- 在表单手机号字段后新增 `Cell` 显示已选接待人员,支持清除
- 底部 `Popup` 弹出层,含搜索框 + 分销商用户列表选择
- 编辑模式下自动回填已保存的接待人员信息
- 提交时携带 `receptionistId``receptionistName` 字段
## 首页新增品牌画册区域
- 创建 `src/pages/index/CatalogShowcase.tsx` 组件:
- 展示品牌画册封面预览
- "点击查看"按钮,点击后复制链接并提示用户到浏览器打开
- 链接地址https://book.yunzhan365.com/mdfy/tjcs/mobile/index.html
- 创建 `src/pages/index/CatalogShowcase.scss` 样式文件
-`src/pages/index/index.tsx` 中引入并添加 `CatalogShowcase` 组件,位于 `CaseShowcase``ContactSection` 之间
## pages/webview/index.tsx 修复
- 原代码 `getUrl()` 在渲染阶段直接调用 `Taro.getCurrentPages()`,数据可能未就绪导致 URL 取不到
- 改为 `useRouter()` Hook + `useState` 获取 `params.url`,确保参数可靠后再渲染 web-view
- URL 无效时直接 return null 并 toast 提示后返回
## pages/index/CatalogShowcase.tsx 图标名修复
- `@nutui/icons-react-taro` 中不存在 `FileText` 图标,正确名称为 `File`
- `React error #130`Element type is undefined即因此导致已修复