优化预约表单并支持散客预约
This commit is contained in:
@@ -7,7 +7,7 @@ const wxss = fs.readFileSync(path.join(__dirname, 'index.wxss'), 'utf8')
|
||||
const pageScript = fs.readFileSync(path.join(__dirname, 'index.js'), 'utf8')
|
||||
|
||||
assert.match(wxml, /<product-selector-sheet[^>]*bind:close="closeProductModal"/)
|
||||
assert.match(wxml, /manual-form="\{\{manualProductDraft\}\}"/)
|
||||
assert.match(wxml, /show-manual-action="\{\{false\}\}"/)
|
||||
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')
|
||||
@@ -15,6 +15,8 @@ assert.match(componentWxml, /catchtouchmove="stopEvent"/)
|
||||
assert.match(componentWxml, /bindtap="openManual"/)
|
||||
assert.match(componentWxml, /bindtap="selectItem"/)
|
||||
assert.match(componentWxml, /bindtap="confirmManual"/)
|
||||
assert.match(wxml, /picker-view class="time-wheel"/)
|
||||
assert.match(wxml, /data-mode="grid" bindtap="onTimePickerModeChange"/)
|
||||
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*\{/)
|
||||
|
||||
Reference in New Issue
Block a user