diff --git a/JY-Salon-WeChat/app.json b/JY-Salon-WeChat/app.json
index d093a6bc..c98631a3 100644
--- a/JY-Salon-WeChat/app.json
+++ b/JY-Salon-WeChat/app.json
@@ -62,5 +62,6 @@
]
},
"style": "v2",
+ "lazyCodeLoading": "requiredComponents",
"sitemapLocation": "sitemap.json"
}
diff --git a/JY-Salon-WeChat/assets/images/app-icon.png b/JY-Salon-WeChat/assets/images/app-icon.png
index 9e0f61e7..6422943d 100644
Binary files a/JY-Salon-WeChat/assets/images/app-icon.png and b/JY-Salon-WeChat/assets/images/app-icon.png differ
diff --git a/JY-Salon-WeChat/pages/appointment-form/index.wxml b/JY-Salon-WeChat/pages/appointment-form/index.wxml
index f3ac2701..fc060764 100644
--- a/JY-Salon-WeChat/pages/appointment-form/index.wxml
+++ b/JY-Salon-WeChat/pages/appointment-form/index.wxml
@@ -146,9 +146,9 @@
标签
加载中
-
+
{{item.name}}
-
+
暂无标签,可手动新增
diff --git a/JY-Salon-WeChat/pages/appointment-form/index.wxss b/JY-Salon-WeChat/pages/appointment-form/index.wxss
index a6ab38fd..bd6de979 100644
--- a/JY-Salon-WeChat/pages/appointment-form/index.wxss
+++ b/JY-Salon-WeChat/pages/appointment-form/index.wxss
@@ -947,7 +947,9 @@
}
.manual-sheet {
+ box-sizing: border-box;
width: 100%;
+ min-width: 0;
max-height: 86vh;
overflow-y: auto;
padding: 26rpx 24rpx calc(26rpx + env(safe-area-inset-bottom));
@@ -1128,13 +1130,26 @@
.manual-tag-list {
display: flex;
- flex-wrap: wrap;
+ width: 100%;
+ min-width: 0;
+ height: 62rpx;
+ overflow-x: auto;
+ overflow-y: hidden;
gap: 10rpx;
margin-top: 12rpx;
+ white-space: nowrap;
+ scrollbar-width: none;
+}
+
+.manual-tag-list::-webkit-scrollbar {
+ display: none;
+ width: 0;
+ height: 0;
}
.manual-tag-chip {
display: inline-flex;
+ flex: 0 0 auto;
align-items: center;
justify-content: center;
min-height: 56rpx;
@@ -1160,6 +1175,7 @@
}
.manual-tag-input-row {
+ box-sizing: border-box;
display: grid;
grid-template-columns: minmax(0, 1fr) 140rpx;
gap: 12rpx;
@@ -1178,6 +1194,7 @@
}
.manual-tag-add {
+ box-sizing: border-box;
width: 100%;
min-width: 0;
max-width: none;
@@ -1298,17 +1315,19 @@
}
.manual-action-row {
- display: flex;
- flex-wrap: wrap;
+ display: grid;
+ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
+ box-sizing: border-box;
+ min-width: 0;
gap: 14rpx;
margin-top: 18rpx;
}
.manual-action-row .secondary-btn,
.manual-action-row .primary-btn {
- flex: 1 1 128px;
+ flex: none;
width: auto;
- min-width: 128px;
+ min-width: 0;
max-width: none;
}
diff --git a/JY-Salon-WeChat/pages/shop-settings/index.wxss b/JY-Salon-WeChat/pages/shop-settings/index.wxss
index cd625325..677db727 100644
--- a/JY-Salon-WeChat/pages/shop-settings/index.wxss
+++ b/JY-Salon-WeChat/pages/shop-settings/index.wxss
@@ -636,12 +636,23 @@
}
.cover-actions {
- position: absolute;
- right: 24rpx;
- bottom: 22rpx;
- left: 24rpx;
+ position: static;
display: flex;
gap: 12rpx;
+ margin-top: 16rpx;
+ padding: 0 4rpx;
+}
+
+.cover-card .cover-actions {
+ position: absolute;
+ right: 24rpx;
+ bottom: -92rpx;
+ left: 24rpx;
+}
+
+.compact-cover-card {
+ margin-bottom: 106rpx;
+ overflow: visible;
}
.cover-btn,
@@ -658,11 +669,14 @@
.cover-btn {
flex: 1;
+ min-width: 0;
background: #fff8ed;
color: #6d4d35;
}
.cover-remove {
+ flex: 0 0 150rpx;
+ box-sizing: border-box;
min-width: 150rpx;
background: rgba(255, 253, 248, 0.18);
color: #fffdf8;
diff --git a/JY-Salon-WeChat/pages/shop-tags/index.js b/JY-Salon-WeChat/pages/shop-tags/index.js
index 7b70eaef..1d6f0dd3 100644
--- a/JY-Salon-WeChat/pages/shop-tags/index.js
+++ b/JY-Salon-WeChat/pages/shop-tags/index.js
@@ -16,20 +16,23 @@ const TAG_STYLES = [
]
function normalizeTagOption(tag) {
- const name = String((tag && (tag.displayName || tag.tagName || tag.name)) || '').trim()
+ const tagName = String((tag && (tag.tagName || tag.name)) || '').trim()
+ const displayName = String((tag && tag.displayName) || tagName).trim()
+ const name = displayName || tagName
if (!name) {
return null
}
return {
id: (tag && tag.id) || name,
name,
- tagName: (tag && tag.tagName) || name,
- displayName: (tag && tag.displayName) || name,
+ tagName: tagName || name,
+ displayName: displayName || name,
+ sceneGroup: String((tag && tag.sceneGroup) || '').trim(),
textColor: (tag && tag.textColor) || DEFAULT_TAG_STYLE.textColor,
bgColor: (tag && tag.bgColor) || DEFAULT_TAG_STYLE.bgColor,
borderColor: (tag && tag.borderColor) || DEFAULT_TAG_STYLE.borderColor,
- sortOrder: (tag && tag.sortOrder) || DEFAULT_TAG_STYLE.sortOrder,
- frontVisible: (tag && tag.frontVisible) === 0 ? 0 : DEFAULT_TAG_STYLE.frontVisible
+ sortOrder: Number.isFinite(Number(tag && tag.sortOrder)) ? Number(tag.sortOrder) : DEFAULT_TAG_STYLE.sortOrder,
+ frontVisible: Number(tag && tag.frontVisible) === 0 ? 0 : DEFAULT_TAG_STYLE.frontVisible
}
}
@@ -62,11 +65,13 @@ function buildTagPayload(form) {
const style = TAG_STYLES.find(item => item.key === form.styleKey) || TAG_STYLES[0]
const payload = {
tagName: String(form.name || '').trim(),
- textColor: style.textColor,
- bgColor: style.bgColor,
- borderColor: style.borderColor,
- sortOrder: form.sortOrder || DEFAULT_TAG_STYLE.sortOrder,
- frontVisible: form.frontVisible === 0 ? 0 : DEFAULT_TAG_STYLE.frontVisible
+ displayName: String(form.displayName || form.name || '').trim(),
+ sceneGroup: String(form.sceneGroup || '').trim(),
+ textColor: String(form.textColor || style.textColor).trim(),
+ bgColor: String(form.bgColor || style.bgColor).trim(),
+ borderColor: String(form.borderColor || style.borderColor).trim(),
+ sortOrder: Number.isFinite(Number(form.sortOrder)) ? Number(form.sortOrder) : DEFAULT_TAG_STYLE.sortOrder,
+ frontVisible: form.frontVisible ? 1 : 0
}
const shopId = resolveCurrentShopId()
if (shopId) {
@@ -79,18 +84,27 @@ function buildEmptyForm() {
return {
id: '',
name: '',
+ displayName: '',
+ sceneGroup: '',
+ textColor: TAG_STYLES[0].textColor,
+ bgColor: TAG_STYLES[0].bgColor,
+ borderColor: TAG_STYLES[0].borderColor,
styleKey: TAG_STYLES[0].key,
sortOrder: DEFAULT_TAG_STYLE.sortOrder,
frontVisible: DEFAULT_TAG_STYLE.frontVisible
}
}
+function buildTagStyles(styleKey) {
+ return TAG_STYLES.map(item => ({ ...item, active: item.key === styleKey }))
+}
+
Page({
data: {
loading: false,
saving: false,
tagList: [],
- tagStyles: TAG_STYLES.map(item => ({ ...item, active: item.key === TAG_STYLES[0].key })),
+ tagStyles: buildTagStyles(TAG_STYLES[0].key),
tagForm: buildEmptyForm()
},
@@ -116,18 +130,30 @@ Page({
}
},
- onTagInput(event) {
- this.setData({ 'tagForm.name': event.detail.value })
+ onTagFieldInput(event) {
+ const field = event.currentTarget.dataset.field
+ this.setData({ [`tagForm.${field}`]: event.detail.value })
},
selectStyle(event) {
const styleKey = event.currentTarget.dataset.key
+ const style = TAG_STYLES.find(item => item.key === styleKey)
+ if (!style) {
+ return
+ }
this.setData({
'tagForm.styleKey': styleKey,
- tagStyles: TAG_STYLES.map(item => ({ ...item, active: item.key === styleKey }))
+ 'tagForm.textColor': style.textColor,
+ 'tagForm.bgColor': style.bgColor,
+ 'tagForm.borderColor': style.borderColor,
+ tagStyles: buildTagStyles(styleKey)
})
},
+ onFrontVisibleChange(event) {
+ this.setData({ 'tagForm.frontVisible': event.detail.value ? 1 : 0 })
+ },
+
editTag(event) {
const tagId = String(event.currentTarget.dataset.id || '')
const tag = this.data.tagList.find(item => String(item.id) === tagId)
@@ -140,35 +166,44 @@ Page({
tagForm: {
id: tag.id,
name: tag.tagName || tag.name,
+ displayName: tag.displayName || tag.name,
+ sceneGroup: tag.sceneGroup || '',
+ textColor: tag.textColor,
+ bgColor: tag.bgColor,
+ borderColor: tag.borderColor,
styleKey,
sortOrder: tag.sortOrder,
frontVisible: tag.frontVisible
},
- tagStyles: TAG_STYLES.map(item => ({ ...item, active: item.key === styleKey }))
+ tagStyles: buildTagStyles(styleKey)
})
},
clearTagForm() {
const tagForm = buildEmptyForm()
- this.setData({
- tagForm,
- tagStyles: TAG_STYLES.map(item => ({ ...item, active: item.key === tagForm.styleKey }))
- })
+ this.setData({ tagForm, tagStyles: buildTagStyles(tagForm.styleKey) })
},
async saveTag() {
if (this.data.saving) {
return
}
- const tagName = String(this.data.tagForm.name || '').trim()
+ const form = this.data.tagForm
+ const tagName = String(form.name || '').trim()
if (!tagName) {
wx.showToast({ title: '请输入标签名称', icon: 'none' })
return
}
- const tagId = this.data.tagForm.id
+ const invalidColor = ['textColor', 'bgColor', 'borderColor']
+ .find(field => !/^#[0-9a-fA-F]{6}$/.test(String(form[field] || '').trim()))
+ if (invalidColor) {
+ wx.showToast({ title: '颜色需使用 6 位 HEX 格式', icon: 'none' })
+ return
+ }
+ const tagId = form.id
this.setData({ saving: true })
try {
- const payload = buildTagPayload({ ...this.data.tagForm, name: tagName })
+ const payload = buildTagPayload({ ...form, name: tagName })
if (tagId) {
await tagsApi.update(tagId, payload)
wx.showToast({ title: '标签已更新', icon: 'success' })
diff --git a/JY-Salon-WeChat/pages/shop-tags/index.wxml b/JY-Salon-WeChat/pages/shop-tags/index.wxml
index 383751df..067829a2 100644
--- a/JY-Salon-WeChat/pages/shop-tags/index.wxml
+++ b/JY-Salon-WeChat/pages/shop-tags/index.wxml
@@ -3,14 +3,31 @@
店铺标签
- 把门店特色整理成可以快速选择的标签。
+ 统一管理店铺前台可见标签和展示样式
{{tagForm.id ? '编辑标签' : '新增标签'}}
-
+
+ 标签名称
+
+
+
+ 展示名
+
+
+
+
+ 场景分组
+
+
+
+ 排序
+
+
+
- 标签颜色
+ 快捷配色
●
+
+
+ 文字色 HEX
+
+
+
+ 背景色 HEX
+
+
+
+ 边框色 HEX
+
+
+
+
+ 效果预览
+ {{tagForm.displayName || tagForm.name || '标签预览'}}
+
+
+ 前台可见
+
+
@@ -36,14 +75,17 @@
- {{item.name}}
+
+ {{item.name}}
+ {{item.sceneGroup}}
+
编辑
删除
- 暂无标签,先添加一个门店特色吧。
+ 暂无标签,请先添加一个店铺标签。
diff --git a/JY-Salon-WeChat/pages/shop-tags/index.wxss b/JY-Salon-WeChat/pages/shop-tags/index.wxss
index 1092820e..92c4a5dc 100644
--- a/JY-Salon-WeChat/pages/shop-tags/index.wxss
+++ b/JY-Salon-WeChat/pages/shop-tags/index.wxss
@@ -32,6 +32,7 @@
.tag-form-card,
.tag-list-card {
+ box-sizing: border-box;
padding: 24rpx;
}
@@ -41,10 +42,23 @@
font-weight: 900;
}
+.tag-field {
+ min-width: 0;
+ margin-top: 16rpx;
+}
+
+.tag-field-label {
+ display: block;
+ margin-bottom: 8rpx;
+ color: #6f665c;
+ font-size: 23rpx;
+ font-weight: 800;
+}
+
.tag-input {
+ box-sizing: border-box;
width: 100%;
height: 78rpx;
- margin-top: 16rpx;
padding: 0 22rpx;
border: 1rpx solid #eadfd2;
border-radius: 18rpx;
@@ -54,6 +68,22 @@
line-height: 78rpx;
}
+.tag-form-grid,
+.tag-color-grid {
+ display: grid;
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+ gap: 12rpx;
+}
+
+.tag-color-grid {
+ grid-template-columns: repeat(3, minmax(0, 1fr));
+}
+
+.tag-form-grid .tag-field,
+.tag-color-grid .tag-field {
+ min-width: 0;
+}
+
.style-row {
display: flex;
align-items: center;
@@ -83,6 +113,26 @@
box-shadow: 0 0 0 4rpx rgba(200, 106, 92, 0.18);
}
+.tag-live-preview {
+ display: flex;
+ align-items: center;
+ gap: 18rpx;
+ margin-top: 20rpx;
+ padding-top: 18rpx;
+ border-top: 1rpx solid #eee8df;
+}
+
+.tag-live-preview .tag-field-label {
+ margin: 0;
+}
+
+.tag-visible-row {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ margin-top: 18rpx;
+}
+
.tag-form-actions {
display: flex;
gap: 12rpx;
@@ -132,6 +182,18 @@
border-bottom: 1rpx solid #eee8df;
}
+.tag-item-main {
+ display: flex;
+ align-items: center;
+ min-width: 0;
+ gap: 12rpx;
+}
+
+.tag-group {
+ color: #a0968e;
+ font-size: 21rpx;
+}
+
.tag-item:last-child {
padding-bottom: 0;
border-bottom: 0;
diff --git a/JY-Salon-WeChat/project.config.json b/JY-Salon-WeChat/project.config.json
index e8579d8c..c1609abf 100644
--- a/JY-Salon-WeChat/project.config.json
+++ b/JY-Salon-WeChat/project.config.json
@@ -13,7 +13,7 @@
"postcss": true,
"minified": true,
"packNpmRelationList": [],
- "compileHotReLoad": true,
+ "compileHotReLoad": false,
"skylineRenderEnable": false,
"compileWorklet": false,
"uglifyFileName": false,
@@ -39,4 +39,4 @@
"simulatorPluginLibVersion": {},
"editorSetting": {},
"testRoot": "minitest/"
-}
\ No newline at end of file
+}
diff --git a/docs/运维配置与集成说明.md b/docs/运维配置与集成说明.md
index b357779a..b21fd1be 100644
--- a/docs/运维配置与集成说明.md
+++ b/docs/运维配置与集成说明.md
@@ -915,3 +915,8 @@ messagehub:
- 变更前 Nginx 仍连接旧解析地址 `14.111.89.205:9000`,该地址已超时;当前解析地址 `14.107.44.229:9000` 可达。
- 变更后必须执行 `nginx -t`,通过后再 `systemctl reload nginx`;验证三台 Core 访问 `https://minio.yunail.art/minio/health/live` 返回 `200`,并验证 Nginx 本机 HTTP/HTTPS 虚拟主机返回 `200`。
- MinIO `9000` 为对象存储 API,`9001` 为管理控制台;业务上传和签名 URL 必须使用 9000 对应的 API 链路。
+### 2026-07-24 店务小程序标签与本地编译配置
+
+- 店务小程序标签页已同步使用 `tagName`、`displayName`、`sceneGroup`、`textColor`、`bgColor`、`borderColor`、`sortOrder` 和 `frontVisible` 字段,颜色输入使用 6 位 HEX 校验。
+- `JY-Salon-WeChat/app.json` 启用 `lazyCodeLoading: "requiredComponents"`;`project.config.json` 关闭 `compileHotReLoad`,本地修改后需手动编译或重新预览。
+- `JY-Salon-WeChat/assets/images/app-icon.png` 已压缩到约 150KB,继续复用登录页和关于页引用路径。
diff --git a/docs/项目变更记录.md b/docs/项目变更记录.md
index e01a2800..3328ba37 100644
--- a/docs/项目变更记录.md
+++ b/docs/项目变更记录.md
@@ -523,3 +523,9 @@
- 数据库说明:本次不新增 SQL,不修改初始化 SQL,不需要执行数据库迁移。
- 影响范围:仅影响 `JY-Core` 的 `/admin/dashboard/stats` 热销作品统计分支;不改变订单、预约、作品、店铺和小程序页面字段契约。
- 验证方式:GitNexus `getHotProducts` upstream impact 为 LOW,直接调用方为 `buildDashboardStats`,上游接口为 `getDashboardStats`;`rtk mvn -f JY-Core/pom.xml -DskipTests compile` 通过。
+## 2026-07-24 店务小程序主图、标签和预约弹层修复
+
+- 店铺主图操作按钮移到预览区域下方,避免遮挡图片。
+- 店铺标签管理补齐展示名、场景分组、排序、前台可见和三种自定义 HEX 颜色,并保留快捷色卡。
+- 预约手工作品标签改为横向滑动并隐藏滚动条,输入区和底部操作区补齐宽度约束。
+- 小程序启用组件按需注入,关闭本地自动热重载,并压缩主包图标资源。