From fb400d3f6d2c1be33d444d1f940b5faefe7eac53 Mon Sep 17 00:00:00 2001 From: xiaowang <2161656029@qq.com> Date: Sat, 25 Jul 2026 18:43:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88=E5=AE=A2=E6=88=B7=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E6=89=8B=E6=9C=BA=E5=8F=B7=E5=BF=85=E5=A1=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- JY-Salon-WeChat/pages/customers/index.js | 4 ++-- JY-Salon-WeChat/pages/customers/index.wxml | 2 +- docs/项目变更记录.md | 7 +++++++ 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/JY-Salon-WeChat/pages/customers/index.js b/JY-Salon-WeChat/pages/customers/index.js index bb52b0dd..f3a21f99 100644 --- a/JY-Salon-WeChat/pages/customers/index.js +++ b/JY-Salon-WeChat/pages/customers/index.js @@ -150,8 +150,8 @@ Page({ const form = this.data.createForm const nickname = String(form.nickname || '').trim() const phone = String(form.phone || '').trim() - if (!nickname || !phone) { - wx.showToast({ title: '请填写客户姓名和手机号', icon: 'none' }) + if (!nickname) { + wx.showToast({ title: '请填写客户姓名', icon: 'none' }) return } this.setData({ creating: true }) diff --git a/JY-Salon-WeChat/pages/customers/index.wxml b/JY-Salon-WeChat/pages/customers/index.wxml index b08863f7..369854a4 100644 --- a/JY-Salon-WeChat/pages/customers/index.wxml +++ b/JY-Salon-WeChat/pages/customers/index.wxml @@ -63,7 +63,7 @@ - 手机号 + 手机号 diff --git a/docs/项目变更记录.md b/docs/项目变更记录.md index 8e3af71d..8ce84ee5 100644 --- a/docs/项目变更记录.md +++ b/docs/项目变更记录.md @@ -628,3 +628,10 @@ - 处理方式:移除客户页顶部“编辑”按钮,新增右下角悬浮加号,点击后继续打开现有新增客户弹层。 - 数据库说明:本次不新增 SQL,不修改初始化 SQL,不需要执行数据库迁移。 - 验证结果:客户页 JS 语法、BOM、`git diff --check` 通过;微信开发者工具确认顶部按钮已移除、右下角加号存在,点击后 `createModalVisible` 正常变为 `true`。 + +## 2026-07-25 客户新增取消手机号必填 + +- 变更原因:新增客户时手机号不应作为必填项,避免只知道客户姓名时无法先建档。 +- 处理方式:客户新增弹层仅保留客户姓名必填;手机号字段去掉必填标识,提交时允许为空并继续调用现有客户创建接口。 +- 数据库说明:本次不新增 SQL,不修改初始化 SQL,不需要执行数据库迁移。 +- 验证结果:客户页 JS 语法、BOM、`git diff --check` 和 GitNexus staged 变更检测通过。