功能:优化Salon作品选择与历史补单
发布 Nacos 配置 / publish (push) Successful in 30s
环境分支晋级检查 / environment-promotion-source (pull_request_target) Successful in 1s

This commit is contained in:
2026-10-14 00:47:10 +08:00
parent 4101ab3408
commit 261723bc6e
29 changed files with 454 additions and 332 deletions
@@ -6,9 +6,15 @@ const wxml = fs.readFileSync(path.join(__dirname, 'index.wxml'), 'utf8')
const wxss = fs.readFileSync(path.join(__dirname, 'index.wxss'), 'utf8')
const pageScript = fs.readFileSync(path.join(__dirname, 'index.js'), 'utf8')
assert.match(wxml, /class="modal-mask" bindtap="closeProductModal" catchtouchmove="stopTouchMove"/)
assert.match(wxml, /<scroll-view class="product-modal-scroll" scroll-y/)
assert.match(wxml, /<view class="product-list">/)
assert.match(wxss, /\.product-modal\s*\{[^}]*height:\s*88vh;[^}]*flex-direction:\s*column;[^}]*overflow:\s*hidden;/s)
assert.match(wxss, /\.product-modal-scroll\s*\{[^}]*flex:\s*1;[^}]*height:\s*0;[^}]*min-height:\s*0;/s)
assert.match(pageScript, /stopTouchMove\(\)\s*\{\s*\}/)
assert.match(wxml, /<product-selector-sheet[^>]*bind:close="closeProductModal"/)
assert.match(wxml, /manual-form="\{\{manualProductDraft\}\}"/)
assert.match(wxml, /bind:select="selectProduct"/)
const componentWxml = fs.readFileSync(path.join(__dirname, '../../components/product-selector-sheet/index.wxml'), 'utf8')
const componentWxss = fs.readFileSync(path.join(__dirname, '../../components/product-selector-sheet/index.wxss'), 'utf8')
assert.match(componentWxml, /catchtouchmove="stopEvent"/)
assert.match(componentWxml, /bindtap="openManual"/)
assert.match(componentWxml, /bindtap="selectItem"/)
assert.match(componentWxml, /bindtap="confirmManual"/)
assert.match(componentWxss, /\.product-selector-sheet\{[^}]*height:88vh;[^}]*max-height:88vh;/s)
assert.match(componentWxss, /.product-selector-scroll{height:0;min-height:0;flex:1}/)
assert.match(pageScript, /openManualProduct\(\)\s*\{/)