diff --git a/AGENTS.md b/AGENTS.md
index e6d59a51..5164818f 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -45,6 +45,8 @@ This project is indexed by GitNexus as **JayuCloud** (36096 symbols, 76216 relat
## Project Workflow Rules
+- 用户未明确要求设计文档或方案确认时,实施类请求直接基于现有代码修改,不额外编写设计文档,也不以设计确认流程阻塞实现。
+- 修改前如工作区已有未提交改动,先创建中文 Git 回溯提交,再开始本次任务;提交后只暂存和提交本次任务涉及的文件,保留其他新产生或并行改动。
- 每次任务中发现的问题、原因和处理方式都需要记录下来,并在后续相关任务中回顾,避免重复发生。
- 后端修改如果涉及 SQL,默认新增版本变更 SQL;只有负责人明确要求重整初始化基线时,才将已存在的变更合并到初始化 SQL。
- 版本变更 SQL 文件名必须使用中文,体现功能和日期,并且 SQL 内容必须是完整可执行脚本。
diff --git a/CLAUDE.md b/CLAUDE.md
index 5617663e..26eaebc7 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -42,3 +42,8 @@ This project is indexed by GitNexus as **JayuCloud** (36096 symbols, 76216 relat
| Index, status, clean, wiki CLI commands | `.claude/skills/gitnexus-cli/SKILL.md` |
+
+## Project Workflow Rules
+
+- 用户未明确要求设计文档或方案确认时,实施类请求直接基于现有代码修改,不额外编写设计文档,也不以设计确认流程阻塞实现。
+- 修改前如工作区已有未提交改动,先创建中文 Git 回溯提交,再开始本次任务;提交后只暂存和提交本次任务涉及的文件,保留其他新产生或并行改动。
diff --git a/JC-Salon-WeChat/pages/appointment-form/index.js b/JC-Salon-WeChat/pages/appointment-form/index.js
index b4076860..f9b69406 100644
--- a/JC-Salon-WeChat/pages/appointment-form/index.js
+++ b/JC-Salon-WeChat/pages/appointment-form/index.js
@@ -483,6 +483,7 @@ Page({
createCustomerRecord: false,
remark: ''
},
+ unifiedStyleDescription: '',
customerOptions: [],
customerDirectory: [],
customerSheetVisible: false,
@@ -501,6 +502,7 @@ Page({
artistError: '',
selectedProduct: {},
selectedProductPriceText: '',
+ manualProductTitleLength: 0,
selectedArtist: {},
productModalVisible: false,
manualProductSheetVisible: false,
@@ -552,6 +554,8 @@ Page({
appointmentDate,
artistId: options.artistId || baseForm.artistId || ''
},
+ manualProductTitleLength: String(baseForm.manualProductTitle || '').length,
+ unifiedStyleDescription: String(baseForm.remark || baseForm.manualProductDescription || ''),
draftSavedAtText: draftForm ? '已恢复本机草稿' : '',
appointmentDayLabel: dateLabels.day,
appointmentDateBadge: dateLabels.badge,
@@ -584,7 +588,11 @@ Page({
const selectedProduct = this.data.filteredProducts.find(item => String(item.id) === String(this.data.form.productId)) || {}
const selectedProductPatch = {
selectedProduct,
- selectedProductPriceText: selectedProduct.priceText || ''
+ selectedProductPriceText: selectedProduct.priceText || '',
+ unifiedStyleDescription: this.data.unifiedStyleDescription || this.data.form.remark || this.data.form.manualProductDescription || '',
+ manualProductTitleLength: this.data.form.manualProductTitle
+ ? String(this.data.form.manualProductTitle).length
+ : String(selectedProduct.title || '').length
}
if (selectedProduct.id && (this.data.form.amount === '' || this.data.form.amount === undefined)) {
selectedProductPatch['form.amount'] = selectedProduct.price === undefined || selectedProduct.price === null ? '' : String(selectedProduct.price)
@@ -685,16 +693,32 @@ Page({
},
onStyleTitleInput(event) {
- const patch = { 'form.manualProductTitle': event.detail.value }
+ const patch = {
+ 'form.manualProductTitle': event.detail.value,
+ manualProductTitleLength: String(event.detail.value || '').length
+ }
if (this.data.form.productId) {
patch['form.productId'] = ''
patch.selectedProduct = {}
patch.selectedProductPriceText = ''
+ patch['form.manualProductDescription'] = this.data.unifiedStyleDescription || ''
Object.assign(patch, buildManualProductImagePatch([]))
}
this.setData(patch)
},
+ onUnifiedStyleDescriptionInput(event) {
+ const description = event.detail.value || ''
+ const patch = {
+ unifiedStyleDescription: description,
+ 'form.remark': description
+ }
+ if (!this.data.form.productId) {
+ patch['form.manualProductDescription'] = description
+ }
+ this.setData(patch)
+ },
+
onCustomerInput(event) {
const field = event.currentTarget.dataset.field
const patch = {
@@ -891,10 +915,33 @@ Page({
this.setData({
productModalVisible: false,
manualProductSheetVisible: true,
- manualProductMoreVisible: false
+ manualProductMoreVisible: false,
+ unifiedStyleDescription: this.data.form.remark || this.data.form.manualProductDescription || this.data.unifiedStyleDescription || '',
+ manualProductTitleLength: this.data.form.productId
+ ? String(this.data.selectedProduct.title || '').length
+ : String(this.data.form.manualProductTitle || '').length
})
},
+ openManualProductFromLibrary() {
+ const patch = {
+ 'form.productId': '',
+ selectedProduct: {},
+ selectedProductPriceText: '',
+ unifiedStyleDescription: this.data.form.remark || this.data.form.manualProductDescription || this.data.unifiedStyleDescription || '',
+ manualProductTitleLength: String(this.data.form.manualProductTitle || '').length,
+ productModalVisible: false,
+ manualProductSheetVisible: true,
+ manualProductMoreVisible: false
+ }
+ if (this.data.form.productId) {
+ patch['form.manualProductTitle'] = ''
+ patch['form.manualProductDescription'] = this.data.unifiedStyleDescription || ''
+ patch.manualProductTitleLength = 0
+ }
+ this.setData(patch)
+ },
+
closeManualProduct() {
this.setData({ manualProductSheetVisible: false })
},
@@ -904,23 +951,34 @@ Page({
},
confirmManualProduct() {
- const hasTitle = Boolean(String(this.data.form.manualProductTitle || '').trim())
- const hasImage = (this.data.form.manualProductImages || []).length > 0 || Boolean(String(this.data.form.manualProductImageFileIds || '').trim())
- const hasFallbackName = Boolean(String(this.data.form.customerName || '').trim())
- if (this.data.form.productId && !hasTitle && !hasImage) {
- this.closeManualProduct()
+ if (!this.data.form.productId) {
+ const hasTitle = Boolean(String(this.data.form.manualProductTitle || '').trim())
+ const hasImage = (this.data.form.manualProductImages || []).length > 0 || Boolean(String(this.data.form.manualProductImageFileIds || '').trim())
+ const hasFallbackName = Boolean(String(this.data.form.customerName || '').trim())
+ if (!hasTitle && !hasImage && !hasFallbackName) {
+ wx.showToast({ title: '请填写款式名称或添加图片', icon: 'none' })
+ return
+ }
+ }
+ const amountText = String(this.data.form.amount === undefined || this.data.form.amount === null ? '' : this.data.form.amount).trim()
+ const amount = Number(amountText)
+ if (!amountText || !Number.isFinite(amount) || amount < 0) {
+ wx.showToast({ title: '请输入不小于0的预约金额', icon: 'none' })
return
}
- if (!hasTitle && !hasImage && !hasFallbackName) {
- wx.showToast({ title: '请填写款式名称或添加图片', icon: 'none' })
+ if (!normalizeDuration(this.data.form.durationMinutes)) {
+ wx.showToast({ title: '请输入大于0分钟的预计时长', icon: 'none' })
return
}
- this.setData({
- 'form.productId': '',
- selectedProduct: {},
- selectedProductPriceText: '',
- manualProductSheetVisible: false
- })
+ if (this.data.form.productId) {
+ this.setData({ manualProductSheetVisible: false })
+ this.refreshAvailableTimes()
+ this.checkAvailability()
+ return
+ }
+ this.setData({ 'form.productId': '', selectedProduct: {}, selectedProductPriceText: '', manualProductSheetVisible: false })
+ this.refreshAvailableTimes()
+ this.checkAvailability()
},
stopTap() {
@@ -940,6 +998,8 @@ Page({
this.setData({
selectedProduct,
selectedProductPriceText: selectedProduct.priceText || '',
+ unifiedStyleDescription: this.data.form.remark || '',
+ manualProductTitleLength: String(selectedProduct.title || '').length,
'form.productId': selectedProduct.id,
'form.manualProductTitle': '',
'form.manualProductPrice': '',
diff --git a/JC-Salon-WeChat/pages/appointment-form/index.wxml b/JC-Salon-WeChat/pages/appointment-form/index.wxml
index 0cb10936..1bb24c08 100644
--- a/JC-Salon-WeChat/pages/appointment-form/index.wxml
+++ b/JC-Salon-WeChat/pages/appointment-form/index.wxml
@@ -21,21 +21,17 @@
{{form.manualProductTitle}}
已添加 {{form.manualProductImages.length}} 张款式图片
填写款式名称或添加图片
+ {{form.amount || '待填'}} 元 · 预计 {{form.durationMinutes || '60'}} 分钟
{{form.manualProductImages.length ? '已添加 ' + form.manualProductImages.length + ' 张图片 · 点击可编辑' : '点击可手动录入,提交预约后自动加入款式库'}}
›
-
+
✦
- {{selectedProduct.title}}参考价 {{selectedProductPriceText || '待定'}} · {{selectedProduct.durationText || '时长待定'}}
-
+ {{selectedProduct.title}}参考价 {{selectedProductPriceText || '待定'}} · 本次 {{form.amount || '待填'}} 元 · {{form.durationMinutes || '60'}} 分钟
+
-
-
-
-
-
名称和图片至少填写一项;名称为空时会使用客户姓名或“散客款式”。
@@ -82,15 +78,29 @@
-
+
- 录入本次美甲款式名称或图片至少填写一项 · 可添加多张图片
+ {{form.productId ? '调整预约款式' : '录入本次美甲款式'}}{{form.productId ? '可调整本次价格和预计时长' : '名称或图片至少填写一项 · 可添加多张图片'}}
-
-
-
+
+ 名称{{manualProductTitleLength}} / 100
+
+
+
+
+ 价格
+ 元
+
+
+ 预计时长
+ 分钟
+
+
+
+ 款式描述 / 备注
+
款式图片{{form.manualProductImages.length}} / 9
@@ -105,9 +115,8 @@
第一张图片会作为款式封面,后续图片可展示细节或顾客实拍。
- 补充更多信息(选填){{manualProductMoreVisible ? '⌃' : '⌄'}}
+ 更多款式信息(选填){{manualProductMoreVisible ? '⌃' : '⌄'}}
-
diff --git a/JC-Salon-WeChat/pages/appointment-form/index.wxss b/JC-Salon-WeChat/pages/appointment-form/index.wxss
index 85a92dba..747b3251 100644
--- a/JC-Salon-WeChat/pages/appointment-form/index.wxss
+++ b/JC-Salon-WeChat/pages/appointment-form/index.wxss
@@ -478,102 +478,6 @@ button.link-action {
width:auto;
}
-.style-name-row {
- display: flex;
- align-items: center;
- gap: 14rpx;
-}
-
-.style-name-input {
- min-width: 0;
- height: 78rpx;
- flex: 1;
- padding: 0 18rpx;
- border: 1rpx solid #e7ece9;
- border-radius: 15rpx;
- background: #fff;
- color: #17211f;
- font-size: 26rpx;
-}
-
-.style-price-input {
- box-sizing: border-box;
- width: 164rpx;
- height: 78rpx;
- flex: 0 0 164rpx;
- padding: 0 18rpx;
- border: 1rpx solid #e7ece9;
- border-radius: 15rpx;
- background: #fff;
- color: #17211f;
- font-size: 26rpx;
- text-align: right;
-}
-
-.selected-style-note {
- margin-top: 12rpx;
- color: #247b63;
- font-size: 23rpx;
- line-height: 1.45;
-}
-
-.style-number-row {
- display: flex;
- gap: 18rpx;
- margin-top: 18rpx;
-}
-
-.number-field {
- display: flex;
- min-width: 0;
- height: 88rpx;
- flex: 1;
- align-items: center;
- gap: 8rpx;
- border-bottom: 1rpx solid #e7ece9;
-}
-
-.number-field .field-label {
- width: auto;
- flex: 0 0 auto;
- font-size: 22rpx;
-}
-
-.number-field input {
- min-width: 0;
- flex: 1;
- color: #17211f;
- font-size: 27rpx;
- text-align: right;
-}
-
-.number-unit {
- flex: 0 0 auto;
- color: #9a9288;
- font-size: 22rpx;
-}
-
-.style-remark-field {
- display: flex;
- align-items: flex-start;
- gap: 14rpx;
- padding: 18rpx 0 8rpx;
- border-bottom: 1rpx solid #e7ece9;
-}
-
-.style-remark-field .field-label {
- width: 124rpx;
- flex: 0 0 auto;
-}
-
-.style-remark-field textarea {
- min-height: 86rpx;
- flex: 1;
- padding: 0;
- color: #17211f;
- font-size: 25rpx;
-}
-
.style-hint {
display: block;
padding: 12rpx 0 16rpx;
@@ -970,83 +874,6 @@ button.full{
min-height: 122rpx;
}
-.style-number-row {
- gap: 18rpx;
- margin-top: 22rpx;
-}
-
-.number-field {
- display: flex;
- min-width: 0;
- height: auto;
- flex: 1;
- flex-direction: column;
- align-items: stretch;
- gap: 8rpx;
- border: 0;
- color: #52645d;
- font-size: 21rpx;
-}
-
-.number-field .field-label {
- width: auto;
- flex: 0 0 auto;
- color: #52645d;
- font-size: 21rpx;
- font-weight: 700;
-}
-
-.number-input-wrap {
- display: flex;
- height: 82rpx;
- align-items: center;
- gap: 8rpx;
- padding: 0 18rpx;
- border: 2rpx solid #dce6e1;
- border-radius: 24rpx;
- background: #fbfdfc;
-}
-
-.number-input-wrap input {
- min-width: 0;
- height: 78rpx;
- flex: 1;
- color: #17211f;
- font-size: 25rpx;
- font-weight: 700;
- text-align: left;
-}
-
-.number-unit {
- color: #71807a;
- font-size: 20rpx;
-}
-
-.style-remark-field {
- display: flex;
- flex-direction: column;
- gap: 10rpx;
- padding: 20rpx 0 0;
- border-bottom: 0;
-}
-
-.style-remark-field .field-label {
- width: auto;
-}
-
-.style-remark-field textarea {
- box-sizing: border-box;
- width: 100%;
- min-height: 144rpx;
- padding: 16rpx 20rpx;
- border: 2rpx solid #dce6e1;
- border-radius: 24rpx;
- background: #fbfdfc;
- color: #17211f;
- font-size: 23rpx;
- line-height: 1.5;
-}
-
.style-hint {
padding: 20rpx 0 0;
color: #82928a;
@@ -1239,12 +1066,105 @@ button.full{
padding: 8rpx 0 20rpx;
}
-.manual-style-content .style-name-input {
+.manual-style-name-field {
+ min-width: 0;
+}
+
+.manual-style-field-heading {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ margin-bottom: 10rpx;
+ color: #52645d;
+ font-size: 22rpx;
+ font-weight: 700;
+}
+
+.manual-style-character-count {
+ color: #82928a;
+ font-size: 20rpx;
+ font-weight: 500;
+ font-variant-numeric: tabular-nums;
+}
+
+.manual-style-title-input {
box-sizing: border-box;
+ display: block;
+ width: 100%;
height: 82rpx;
- border-color: #dce6e1;
- border-radius: 24rpx;
+ padding: 0 20rpx;
+ overflow: hidden;
+ border: 2rpx solid #dce6e1;
+ border-radius: 22rpx;
background: #fbfdfc;
+ color: #17211f;
+ font-size: 24rpx;
+ line-height: 82rpx;
+ white-space: nowrap;
+}
+
+.manual-style-price-duration-row {
+ display: flex;
+ gap: 16rpx;
+ margin-top: 20rpx;
+}
+
+.manual-style-compact-field {
+ min-width: 0;
+ flex: 1;
+}
+
+.manual-style-field-label {
+ display: block;
+ margin-bottom: 10rpx;
+ color: #52645d;
+ font-size: 22rpx;
+ font-weight: 700;
+}
+
+.manual-style-input-wrap {
+ box-sizing: border-box;
+ display: flex;
+ height: 82rpx;
+ align-items: center;
+ gap: 10rpx;
+ padding: 0 18rpx;
+ border: 2rpx solid #dce6e1;
+ border-radius: 22rpx;
+ background: #fbfdfc;
+}
+
+.manual-style-input-wrap input {
+ box-sizing: border-box;
+ width: 0;
+ min-width: 0;
+ height: 78rpx;
+ flex: 1;
+ color: #17211f;
+ font-size: 24rpx;
+}
+
+.manual-style-input-wrap text {
+ flex: 0 0 auto;
+ color: #71807a;
+ font-size: 21rpx;
+}
+
+.manual-style-description-field {
+ margin-top: 20rpx;
+}
+
+.manual-style-description-field textarea {
+ box-sizing: border-box;
+ width: 100%;
+ min-height: 124rpx;
+ padding: 16rpx 18rpx;
+ border: 2rpx solid #dce6e1;
+ border-radius: 22rpx;
+ background: #fbfdfc;
+ color: #17211f;
+ font-size: 22rpx;
+ line-height: 1.5;
}
.manual-style-images {
@@ -1406,28 +1326,42 @@ button.manual-style-add-image {
}
.manual-style-footer {
+ display: flex;
+ gap: 14rpx;
flex: 0 0 auto;
padding-top: 16rpx;
border-top: 2rpx solid #e7ece9;
}
.manual-style-confirm {
- width: 100%;
- height: 84rpx;
- border-radius: 24rpx;
+ width: 0;
+ min-width: 0;
+ height: 78rpx;
+ flex: 1;
+ margin: 0;
+ padding: 0 10rpx;
+ border-radius: 22rpx;
background: #17211f;
color: #fff;
- font-size: 26rpx;
+ font-size: 22rpx;
font-weight: 800;
- line-height: 84rpx;
+ line-height: 78rpx;
}
.manual-style-library-link {
- height: 64rpx;
- margin: 10rpx auto 0;
+ width: 0;
+ min-width: 0;
+ height: 78rpx;
+ flex: 1;
+ margin: 0;
+ padding: 0 10rpx;
+ border: 2rpx solid #9ccdbb;
+ border-radius: 22rpx;
+ background: #e5f4ed;
color: #247b63;
- font-size: 22rpx;
- line-height: 64rpx;
+ font-size: 21rpx;
+ font-weight: 700;
+ line-height: 74rpx;
}
@media (max-width: 360px) {
diff --git a/JC-Salon-WeChat/pages/appointment-form/product-selector.test.js b/JC-Salon-WeChat/pages/appointment-form/product-selector.test.js
index bf75ece0..5791f724 100644
--- a/JC-Salon-WeChat/pages/appointment-form/product-selector.test.js
+++ b/JC-Salon-WeChat/pages/appointment-form/product-selector.test.js
@@ -51,41 +51,86 @@ page.openProductModal()
assert.strictEqual(page.data.productModalVisible, true)
page.refreshAvailableTimes = () => {}
page.checkAvailability = () => {}
-page.selectProduct({ detail: { item: { id: 8, title: '法式', price: 238, priceText: '¥238', approximateDuration: '90' } } })
+page.data.form.amount = '238'
+page.selectProduct({ detail: { item: { id: 8, title: '法式', price: 238, priceText: '¥238', approximateDuration: '90', description: '作品库描述' } } })
assert.strictEqual(page.data.form.productId, 8)
assert.strictEqual(page.data.selectedProduct.title, '法式')
assert.strictEqual(page.data.selectedProductPriceText, '¥238')
assert.strictEqual(page.data.form.amount, '238')
assert.strictEqual(page.data.form.manualProductTitle, '')
assert.strictEqual(page.data.form.durationMinutes, '90')
+assert.strictEqual(page.data.unifiedStyleDescription, '')
page.openManualProduct()
+page.data.form.amount = '238'
+page.data.form.durationMinutes = '90'
assert.strictEqual(page.data.manualProductSheetVisible, true)
assert.strictEqual(page.data.manualProductMoreVisible, false)
+page.onUnifiedStyleDescriptionInput({ detail: { value: '预约服务说明' } })
+assert.strictEqual(page.data.form.remark, '预约服务说明')
+assert.strictEqual(page.data.form.manualProductDescription, '')
+page.onUnifiedStyleDescriptionInput({ detail: { value: '' } })
+assert.strictEqual(page.data.unifiedStyleDescription, '')
+assert.strictEqual(page.data.form.remark, '')
+page.onUnifiedStyleDescriptionInput({ detail: { value: '预约服务说明' } })
page.toggleManualProductMore()
assert.strictEqual(page.data.manualProductMoreVisible, true)
page.toggleManualProductMore()
assert.strictEqual(page.data.manualProductMoreVisible, false)
+page.data.form.amount = '218'
+page.data.form.durationMinutes = '75'
page.confirmManualProduct()
assert.strictEqual(page.data.form.productId, 8)
assert.strictEqual(page.data.manualProductSheetVisible, false)
+assert.strictEqual(page.data.form.amount, '218')
+assert.strictEqual(page.data.form.durationMinutes, '75')
page.onStyleTitleInput({ detail: { value: '手绘款' } })
assert.strictEqual(page.data.form.productId, '')
assert.strictEqual(page.data.form.manualProductTitle, '手绘款')
-assert.strictEqual(page.data.form.amount, '238')
+assert.strictEqual(page.data.manualProductTitleLength, 3)
+assert.strictEqual(page.data.form.amount, '218')
assert.strictEqual(page.data.selectedProductPriceText, '')
+assert.strictEqual(page.data.form.manualProductDescription, '预约服务说明')
+page.onUnifiedStyleDescriptionInput({ detail: { value: '浅粉色,短甲' } })
+assert.strictEqual(page.data.unifiedStyleDescription, '浅粉色,短甲')
+assert.strictEqual(page.data.form.remark, '浅粉色,短甲')
+assert.strictEqual(page.data.form.manualProductDescription, '浅粉色,短甲')
+page.data.form.manualProductImages = [{ fileId: 'draft-1', fileUrl: 'https://img.example/draft-1.jpg' }]
+page.openProductModal()
+page.openManualProductFromLibrary()
+assert.strictEqual(page.data.form.manualProductTitle, '手绘款')
+assert.strictEqual(page.data.manualProductTitleLength, 3)
+assert.strictEqual(page.data.unifiedStyleDescription, '浅粉色,短甲')
+assert.strictEqual(page.data.form.manualProductImages.length, 1)
page.openManualProduct()
page.confirmManualProduct()
assert.strictEqual(page.data.manualProductSheetVisible, false)
assert.strictEqual(page.data.form.productId, '')
page.data.form.manualProductTitle = ''
+page.data.form.manualProductImages = []
+page.data.form.manualProductImageFileIds = ''
page.openManualProduct()
page.confirmManualProduct()
assert.strictEqual(page.data.manualProductSheetVisible, true)
assert.strictEqual(toastMessages.pop(), '请填写款式名称或添加图片')
+page.data.form.manualProductTitle = '手绘款'
+page.data.form.amount = ''
+page.openManualProduct()
+page.confirmManualProduct()
+assert.strictEqual(page.data.manualProductSheetVisible, true)
+assert.strictEqual(toastMessages.pop(), '请输入不小于0的预约金额')
+page.data.form.amount = '128'
+page.data.form.durationMinutes = '0'
+page.confirmManualProduct()
+assert.strictEqual(page.data.manualProductSheetVisible, true)
+assert.strictEqual(toastMessages.pop(), '请输入大于0分钟的预计时长')
+page.data.form.durationMinutes = '45'
+page.confirmManualProduct()
+assert.strictEqual(page.data.manualProductSheetVisible, false)
+
const wxml = require('fs').readFileSync(require('path').join(__dirname, 'index.wxml'), 'utf8')
assert.ok(wxml.indexOf('美甲款式') < wxml.indexOf('预约信息'))
assert.ok(wxml.indexOf('预约信息') < wxml.indexOf('>客户'))
@@ -94,13 +139,24 @@ assert.match(wxml, /placeholder="留空时默认使用客户姓名"/)
assert.match(wxml, /appointmentDateBadge/)
assert.match(wxml, /class="customer-fields"/)
assert.match(wxml, /class="manual-style-sheet"/)
-assert.match(wxml, /class="style-price-input"[^>]*data-field="amount"/)
-assert.match(wxml, /wx:if="\{\{form\.productId\}\}" class="number-field"/)
+assert.match(wxml, /名称<\/text>\{\{manualProductTitleLength\}\} \/ 100/)
+assert.match(wxml, /maxlength="100"[^>]*bindinput="onStyleTitleInput"/)
+assert.match(wxml, /disabled="\{\{form\.productId\}\}" bindinput="onStyleTitleInput"/)
+assert.match(wxml, /class="manual-style-price-duration-row"/)
+assert.match(wxml, /data-field="amount" bindinput="onInput" placeholder="例如 268" \/>元/)
+assert.match(wxml, /data-field="durationMinutes" bindinput="onInput" placeholder="60" \/>分钟/)
+assert.match(wxml, /class="manual-style-description-field"/)
+assert.match(wxml, /value="\{\{unifiedStyleDescription\}\}" bindinput="onUnifiedStyleDescriptionInput"/)
+assert.doesNotMatch(wxml, /selectedProduct\.description/)
+assert.match(wxml, /bindinput="onUnifiedStyleDescriptionInput"/)
+assert.doesNotMatch(wxml, /class="style-remark-field"/)
+assert.doesNotMatch(wxml, /class="style-number-row"/)
+assert.match(wxml, /class="manual-style-footer">