From 47d8cf555b4984d3a354e764f0b8cd72fc7a19f5 Mon Sep 17 00:00:00 2001 From: xiaowang <2161656029@qq.com> Date: Thu, 29 Oct 2026 14:43:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E9=BD=90=E6=9C=88=E5=8E=86=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E6=8E=A7=E5=88=B6=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- JC-Salon-WeChat/pages/planning/index.test.js | 8 ++++++++ JC-Salon-WeChat/pages/planning/index.wxml | 14 ++++++++------ JC-Salon-WeChat/pages/planning/index.wxss | 12 +++++++++++- docs/项目变更记录.md | 4 ++++ 4 files changed, 31 insertions(+), 7 deletions(-) diff --git a/JC-Salon-WeChat/pages/planning/index.test.js b/JC-Salon-WeChat/pages/planning/index.test.js index c78ad9cd..8eef259b 100644 --- a/JC-Salon-WeChat/pages/planning/index.test.js +++ b/JC-Salon-WeChat/pages/planning/index.test.js @@ -1,4 +1,6 @@ const assert = require('assert') +const fs = require('fs') +const path = require('path') const planningApi = require('../../api/planning') const dateUtil = require('../../utils/date') @@ -43,6 +45,12 @@ function createPage(data = {}) { } async function run() { + const planningWxml = fs.readFileSync(path.join(__dirname, 'index.wxml'), 'utf8') + const toolbarMarkup = planningWxml.match(/([\s\S]*?)<\/view>\s* 月历显示 - - {{item.label}} - - - 姓名 - + + + {{item.label}} + + + 姓名 + + diff --git a/JC-Salon-WeChat/pages/planning/index.wxss b/JC-Salon-WeChat/pages/planning/index.wxss index 03a513c9..96063f4e 100644 --- a/JC-Salon-WeChat/pages/planning/index.wxss +++ b/JC-Salon-WeChat/pages/planning/index.wxss @@ -533,20 +533,30 @@ .month-toolbar { display: flex; align-items: center; - justify-content: space-between; gap: 8rpx; margin-bottom: 14rpx; padding: 0 4rpx; } .month-toolbar-title { + flex: 0 0 auto; + margin-right: auto; color: #615a51; font-size: 24rpx; font-weight: 800; } +.month-toolbar-controls { + display: inline-flex; + flex: 0 0 auto; + align-items: center; + gap: 12rpx; + margin-left: auto; +} + .month-mode-switch { display: inline-flex; + flex: 0 0 auto; gap: 6rpx; padding: 6rpx; border-radius: 999rpx; diff --git a/docs/项目变更记录.md b/docs/项目变更记录.md index f4e03513..0089bfee 100644 --- a/docs/项目变更记录.md +++ b/docs/项目变更记录.md @@ -412,3 +412,7 @@ - 款式图片列表改为固定高度的横向滚动区,新增图片不再换行并撑高弹层。 - 图片和“点击添加图片”入口统一为正方形尺寸,添加入口位于列表末尾;保留封面标识、删除、预览和最多 9 张规则。 + +## 2026-10-29 Salon 月历显示工具栏对齐 + +- 月历显示模式切换与姓名开关合并为右侧控制组,姓名开关开启时模式切换紧邻其左侧,标题维持左对齐。