对齐历史补单页面样式

This commit is contained in:
2026-10-20 18:42:27 +08:00
parent 68533738e0
commit 8d3f092084
4 changed files with 504 additions and 21 deletions
@@ -5,7 +5,7 @@ const customersApi = require('../../api/customers')
const dateUtil = require('../../utils/date')
Page({
data: { form: { serviceDate: dateUtil.formatDate(new Date()), manualProductTitle: '', amount: '', customerName: '', phone: '', serviceTime: '', status: 4, remark: '', artistId: '', productId: '', customerUserId: '' }, manualProductDraft: { title: '', price: '' }, manualMoreExpanded: false, productSelectorMode: 'list', artists: [], artistOptions: [], allProductOptions: [], productOptions: [], customerOptions: [], allCustomerOptions: [], productSelectorVisible: false, artistSelectorVisible: false, customerSelectorVisible: false, loadingProducts: false, loadingArtists: false, loadingCustomers: false, productKeyword: '', artistKeyword: '', customerKeyword: '', productError: '', artistError: '', customerError: '', selectedArtistName: '', selectedProductTitle: '', selectedProductPriceText: '', submitting: false },
data: { form: { serviceDate: dateUtil.formatDate(new Date()), manualProductTitle: '', amount: '', customerName: '', phone: '', serviceTime: '', status: 4, remark: '', artistId: '', productId: '', customerUserId: '' }, manualProductDraft: { title: '', price: '' }, manualMoreExpanded: false, productSelectorMode: 'list', artists: [], artistOptions: [], allProductOptions: [], productOptions: [], customerOptions: [], allCustomerOptions: [], productSelectorVisible: false, artistSelectorVisible: false, customerSelectorVisible: false, loadingProducts: false, loadingArtists: false, loadingCustomers: false, productKeyword: '', artistKeyword: '', customerKeyword: '', productError: '', artistError: '', customerError: '', selectedArtistName: '', selectedProduct: {}, selectedProductTitle: '', selectedProductPriceText: '', submitting: false },
onLoad(options = {}) {
const serviceDate = options.serviceDate || this.data.form.serviceDate
const artistId = options.artistId || ''
@@ -56,7 +56,7 @@ Page({
searchProducts(e) { const keyword = String(e.detail.value || '').trim().toLowerCase(); this.setData({ productKeyword: keyword, productOptions: this.data.allProductOptions.filter(item => !keyword || `${item.title} ${item.artistText} ${item.tagList.join(' ')}`.toLowerCase().includes(keyword)) }) },
searchArtists(e) { const keyword = String(e.detail.value || '').toLowerCase(); this.setData({ artistKeyword: keyword, artistOptions: this.data.artists.map(item => ({ id: item.id, title: item.name, subtitle: item.phone || '' })).filter(item => !keyword || item.title.toLowerCase().includes(keyword)) }) },
searchCustomers(e) { const keyword = String(e.detail.value || '').toLowerCase(); this.setData({ customerKeyword: keyword, customerOptions: this.data.allCustomerOptions.filter(item => !keyword || String(item.title).toLowerCase().includes(keyword) || String(item.subtitle).includes(keyword)) }) },
selectProduct(e) { const item = e.detail.item; this.setData({ 'form.productId': item.id, selectedProductTitle: item.title, selectedProductPriceText: item.priceText || (item.price == null ? '价格待定' : `¥${item.price}`), 'form.manualProductTitle': '', manualProductDraft: { title: '', price: '' }, 'form.amount': item.price == null ? this.data.form.amount : String(item.price), productSelectorVisible: false, productSelectorMode: 'list' }) },
selectProduct(e) { const item = e.detail.item; this.setData({ 'form.productId': item.id, selectedProduct: item, selectedProductTitle: item.title, selectedProductPriceText: item.priceText || (item.price == null ? '价格待定' : `¥${item.price}`), 'form.manualProductTitle': '', manualProductDraft: { title: '', price: '' }, 'form.amount': item.price == null ? this.data.form.amount : String(item.price), productSelectorVisible: false, productSelectorMode: 'list' }) },
selectArtist(e) { const item = e.detail.item; this.setData({ 'form.artistId': item.id, selectedArtistName: item.title, artistSelectorVisible: false }) },
selectCustomer(e) { const item = e.detail.item; this.setData({ 'form.customerUserId': item.id, 'form.customerName': item.title, 'form.phone': item.subtitle, customerSelectorVisible: false }) },
useWalkIn() { this.setData({ 'form.customerUserId': '', 'form.customerName': '', 'form.phone': '', customerSelectorVisible: false }) },
@@ -69,7 +69,7 @@ Page({
wx.showToast({ title: '请填写作品名称和价格', icon: 'none' })
return
}
this.setData({ 'form.productId': '', 'form.manualProductTitle': title, selectedProductTitle: '', selectedProductPriceText: `¥${price}`, 'form.amount': String(price), productSelectorVisible: false, productSelectorMode: 'list' })
this.setData({ 'form.productId': '', 'form.manualProductTitle': title, selectedProduct: {}, selectedProductTitle: '', selectedProductPriceText: `¥${price}`, 'form.amount': String(price), productSelectorVisible: false, productSelectorMode: 'list' })
},
onInput(e) { this.setData({ [`form.${e.currentTarget.dataset.field}`]: e.detail.value }) },
onDateChange(e) { this.setData({ 'form.serviceDate': e.detail.value }) },
+90 -15
View File
@@ -1,19 +1,94 @@
<view class="page no-tab">
<view class="card form-card">
<view class="page-hint">历史补单不校验美甲师排班,也不会占用预约时段。</view>
<view class="field"><text class="field-label required">服务日期</text><picker mode="date" value="{{form.serviceDate}}" bindchange="onDateChange"><view class="field-value">{{form.serviceDate}}</view></picker></view>
<view class="field product-field" bindtap="openProductSelector"><text class="field-label required">项目</text><button class="product-picker-button" bindtap="openProductSelector"><text>{{selectedProductTitle || form.manualProductTitle || '选择项目'}}</text><text wx:if="{{selectedProductPriceText}}" class="selected-amount">参考价 {{selectedProductPriceText}}</text><text class="product-picker-arrow">›</text></button></view>
<view class="field"><text class="field-label required">金额</text><input type="digit" value="{{form.amount}}" data-field="amount" bindinput="onInput" placeholder="请输入实际金额" /></view>
<view class="field"><text class="field-label required">美甲师</text><view class="field-value" bindtap="openArtistSelector">{{selectedArtistName || '请选择美甲师'}}</view></view>
<view class="field"><text class="field-label">客户</text><view class="field-value" bindtap="openCustomerSelector">{{form.customerName || '请选择客户(可选)'}}</view><input value="{{form.customerName}}" data-field="customerName" bindinput="onCustomerNameInput" placeholder="或填写散客姓名" /></view>
<view class="field"><text class="field-label">手机号</text><input type="number" maxlength="11" value="{{form.phone}}" data-field="phone" bindinput="onInput" placeholder="选填" /></view>
<view class="field"><text class="field-label">服务时间</text><picker mode="time" value="{{form.serviceTime}}" bindchange="onTimeChange"><view class="field-value">{{form.serviceTime || '时间未记录'}}</view></picker></view>
<view class="field"><text class="field-label">状态</text><view class="status-segment"><view class="status-option {{form.status == 4 ? 'active' : ''}}" data-status="4" bindtap="selectStatus">服务中</view><view class="status-option {{form.status == 2 ? 'active' : ''}}" data-status="2" bindtap="selectStatus">已完成</view></view></view>
<view class="field textarea-field"><text class="field-label">备注</text><textarea value="{{form.remark}}" data-field="remark" bindinput="onInput" placeholder="补单备注(选填)" /></view>
<view class="page no-tab backfill-page">
<view class="backfill-hero">
<view class="backfill-hero-copy">
<text class="backfill-eyebrow">HISTORICAL ORDER</text>
<text class="backfill-title">补录一笔历史订单</text>
</view>
<view class="backfill-date-pill"><text class="date-pill-icon">◷</text><text>{{form.serviceDate}}</text></view>
</view>
<view class="card submit-tip">提交后订单会直接进入所选状态,不创建预约占用。</view>
<button class="primary-btn" loading="{{submitting}}" disabled="{{submitting}}" bindtap="submit">保存历史补单</button>
<product-selector-sheet visible="{{productSelectorVisible}}" mode="{{productSelectorMode}}" title="选择项目" keyword="{{productKeyword}}" placeholder="搜索项目名称" items="{{productOptions}}" selected-id="{{form.productId}}" loading="{{loadingProducts}}" error-text="{{productError}}" empty-text="暂无项目" manual-form="{{manualProductDraft}}" show-manual-extra="{{false}}" bind:search="searchProducts" bind:select="selectProduct" bind:openmanual="openManualProduct" bind:backtolist="backToProductList" bind:manualinput="onManualProductInput" bind:togglemore="toggleManualProductMore" bind:confirmmanual="useManualProduct" bind:close="closeProductSelector" bind:retry="loadProducts" />
<view class="card form-card backfill-card style-section">
<view class="section-heading">
<view class="section-title-row"><text class="section-title-main">美甲款式</text><text class="required-mark">*</text></view>
<text class="section-caption">选择款式或手动录入</text>
</view>
<button class="field-card backfill-field-card" bindtap="openProductSelector">
<image wx:if="{{selectedProduct.coverImage}}" class="field-icon style-entry-image" src="{{selectedProduct.coverImage}}" mode="aspectFill"></image>
<view wx:else class="field-icon">✦</view>
<view class="field-text">
<text class="field-label">项目款式</text>
<text class="field-value {{selectedProductTitle || form.manualProductTitle ? '' : 'placeholder'}}">{{selectedProductTitle || form.manualProductTitle || '请选择美甲款式'}}</text>
<text wx:if="{{selectedProductPriceText}}" class="field-meta">参考价 {{selectedProductPriceText}}</text>
<text wx:else class="field-meta">可从款式库选择,也可手动录入</text>
</view>
<text class="chevron">›</text>
</button>
<view class="backfill-amount-field">
<text class="field-label required">实际成交金额(元)</text>
<view class="number-input-wrap"><input type="digit" value="{{form.amount}}" data-field="amount" bindinput="onInput" placeholder="请输入本次实际金额" /><text class="number-unit">元</text></view>
</view>
<view class="style-remark-field backfill-remark-field">
<text class="field-label">补单备注</text>
<textarea value="{{form.remark}}" data-field="remark" bindinput="onInput" placeholder="可记录服务说明或其他信息(选填)" />
</view>
<text class="style-hint">参考价会自动带入金额;补录订单按实际成交金额统计,可根据本次服务情况调整。</text>
</view>
<view class="card form-card backfill-card service-info-section">
<view class="section-heading">
<view><text class="section-title-main">服务信息</text><text class="section-caption">记录本次服务的日期、时间和美甲师</text></view>
</view>
<picker class="backfill-picker-field first" mode="date" value="{{form.serviceDate}}" bindchange="onDateChange">
<view class="field-card backfill-field-card">
<view class="field-icon">▣</view>
<view class="field-text"><text class="field-label">服务日期</text><text class="field-value">{{form.serviceDate}}</text></view>
<text class="chevron">›</text>
</view>
</picker>
<picker class="backfill-picker-field" mode="time" value="{{form.serviceTime}}" bindchange="onTimeChange">
<view class="field-card backfill-field-card">
<view class="field-icon">◷</view>
<view class="field-text"><text class="field-label">服务时间</text><text class="field-value {{form.serviceTime ? '' : 'placeholder'}}">{{form.serviceTime || '时间未记录'}}</text><text class="field-meta">时间可留空,仅按服务日期统计</text></view>
<text class="chevron">›</text>
</view>
</picker>
<view class="field-card backfill-field-card service-artist-field" bindtap="openArtistSelector">
<view class="field-icon">♙</view>
<view class="field-text"><text class="field-label">服务美甲师</text><text class="field-value {{selectedArtistName ? '' : 'placeholder'}}">{{selectedArtistName || '请选择美甲师'}}</text></view>
<text class="chevron">›</text>
</view>
</view>
<view class="card form-card backfill-card customer-section">
<view class="section-heading">
<view><text class="section-title-main">客户</text><text class="section-caption">可选择已有客户或直接填写,留空时按散客记录</text></view>
</view>
<view class="customer-entry">
<view class="customer-fields">
<input class="customer-name-input" value="{{form.customerName}}" data-field="customerName" bindinput="onCustomerNameInput" placeholder="客户姓名(可选)" />
<input class="customer-phone-input" value="{{form.phone}}" data-field="phone" bindinput="onInput" type="number" maxlength="11" placeholder="手机号(可选)" />
</view>
<button class="customer-library-btn" aria-label="选择已有客户" catchtap="openCustomerSelector"><text class="customer-library-icon">⌕</text></button>
</view>
<view wx:if="{{form.customerUserId}}" class="customer-selected-tip">已选择系统客户</view>
</view>
<view class="card form-card backfill-card service-status-section">
<view class="section-heading">
<view><text class="section-title-main">服务状态</text><text class="section-caption">补单直接进入选择的状态</text></view>
</view>
<view class="status-segment">
<view class="status-option {{form.status == 4 ? 'active' : ''}}" data-status="4" bindtap="selectStatus"><text class="status-indicator in-service"></text><text>服务中</text></view>
<view class="status-option {{form.status == 2 ? 'active' : ''}}" data-status="2" bindtap="selectStatus"><text class="status-indicator completed"></text><text>已完成</text></view>
</view>
<text class="style-hint">历史补单不校验美甲师排班,也不会占用预约时段。</text>
</view>
<view class="fixed-bottom backfill-bottom">
<button class="primary-btn backfill-submit-btn" loading="{{submitting}}" disabled="{{submitting}}" bindtap="submit">保存历史补单</button>
</view>
<product-selector-sheet visible="{{productSelectorVisible}}" mode="{{productSelectorMode}}" title="选择美甲款式" keyword="{{productKeyword}}" placeholder="搜索款式名称" items="{{productOptions}}" selected-id="{{form.productId}}" loading="{{loadingProducts}}" error-text="{{productError}}" empty-text="暂无款式" manual-form="{{manualProductDraft}}" show-manual-extra="{{false}}" bind:search="searchProducts" bind:select="selectProduct" bind:openmanual="openManualProduct" bind:backtolist="backToProductList" bind:manualinput="onManualProductInput" bind:togglemore="toggleManualProductMore" bind:confirmmanual="useManualProduct" bind:close="closeProductSelector" bind:retry="loadProducts" />
<entity-selector-sheet visible="{{artistSelectorVisible}}" title="选择美甲师" keyword="{{artistKeyword}}" placeholder="搜索美甲师姓名" items="{{artistOptions}}" selected-id="{{form.artistId}}" loading="{{loadingArtists}}" error-text="{{artistError}}" empty-text="暂无可选美甲师" bind:search="searchArtists" bind:select="selectArtist" bind:retry="loadArtists" bind:close="closeArtistSelector" />
<entity-selector-sheet visible="{{customerSelectorVisible}}" title="选择客户" keyword="{{customerKeyword}}" placeholder="搜索客户姓名或手机号" items="{{customerOptions}}" selected-id="{{form.customerUserId}}" loading="{{loadingCustomers}}" error-text="{{customerError}}" empty-text="暂无客户,可留空记为散客" action-text="按散客记录" bind:search="searchCustomers" bind:select="selectCustomer" bind:retry="loadCustomers" bind:action="useWalkIn" bind:close="closeCustomerSelector" />
</view>
+408 -2
View File
@@ -1,2 +1,408 @@
.product-picker-button{display:flex;align-items:center;justify-content:space-between;min-width:0;flex:1;padding:0;background:transparent;color:#6f665d;text-align:left;font-size:30rpx;line-height:1.35}
.product-picker-arrow{flex:0 0 auto;margin-left:12rpx;color:#71807a;font-size:38rpx}
.backfill-page {
padding-top: 24rpx;
padding-bottom: 220rpx;
background: #f3f7f4;
color: #17211f;
}
.backfill-hero {
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: 18rpx;
margin: 0 0 30rpx;
}
.backfill-hero-copy {
display: flex;
min-width: 0;
flex-direction: column;
}
.backfill-eyebrow {
color: #247b63;
font-size: 22rpx;
font-weight: 800;
line-height: 1.3;
}
.backfill-title {
margin-top: 6rpx;
color: #17211f;
font-size: 52rpx;
font-weight: 900;
line-height: 1.15;
}
.backfill-date-pill {
display: flex;
flex: 0 0 auto;
align-items: center;
gap: 8rpx;
min-height: 58rpx;
padding: 0 16rpx;
border: 2rpx solid #e7ece9;
border-radius: 26rpx;
background: #fff;
color: #52645d;
font-size: 22rpx;
white-space: nowrap;
}
.date-pill-icon {
color: #247b63;
font-size: 25rpx;
}
.backfill-page .backfill-card {
margin-bottom: 24rpx;
padding: 28rpx 30rpx 24rpx;
border: 2rpx solid #e7ece9;
border-radius: 38rpx;
background: #fff;
box-shadow: 0 8rpx 26rpx rgba(41, 73, 62, 0.04);
}
.backfill-page .section-heading {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16rpx;
margin: 0 0 20rpx;
}
.section-title-row {
display: flex;
align-items: baseline;
}
.section-title-main,
.section-caption {
display: block;
}
.section-title-main {
color: #17211f;
font-size: 30rpx;
font-weight: 900;
}
.section-caption {
margin-top: 5rpx;
color: #71807a;
font-size: 21rpx;
line-height: 1.4;
}
.required-mark {
margin-left: 5rpx;
color: #e98669;
font-size: 24rpx;
font-weight: 800;
}
.backfill-field-card {
display: flex;
width: 100%;
min-height: 124rpx;
align-items: center;
gap: 22rpx;
margin: 0;
padding: 20rpx 22rpx;
border: 2rpx dashed #cbdcd5;
border-radius: 30rpx;
background: #fbfdfc;
text-align: left;
line-height: 1.35;
}
.backfill-page .field-icon {
display: flex;
width: 76rpx;
height: 76rpx;
flex: 0 0 76rpx;
align-items: center;
justify-content: center;
border-radius: 24rpx;
background: #e5f4ed;
color: #247b63;
font-size: 34rpx;
}
.style-entry-image {
object-fit: cover;
}
.field-text {
display: flex;
min-width: 0;
flex: 1;
flex-direction: column;
}
.field-label {
width: auto;
color: #71807a;
font-size: 21rpx;
font-weight: 600;
line-height: 1.35;
}
.field-label.required::after {
content: " *";
color: #e98669;
font-weight: 900;
}
.field-value {
display: block;
min-width: 0;
flex: 0 0 auto;
margin-top: 5rpx;
overflow: hidden;
color: #17211f;
font-size: 27rpx;
font-weight: 800;
line-height: 1.35;
text-overflow: ellipsis;
white-space: nowrap;
}
.field-value.placeholder {
color: #9aa9a3;
font-weight: 600;
}
.field-meta {
display: block;
margin-top: 5rpx;
color: #71807a;
font-size: 20rpx;
line-height: 1.35;
}
.chevron {
flex: 0 0 auto;
color: #91a29a;
font-size: 40rpx;
line-height: 1;
}
.backfill-amount-field {
display: flex;
flex-direction: column;
gap: 10rpx;
margin-top: 20rpx;
}
.backfill-amount-field > .field-label {
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-hint {
display: block;
padding-top: 18rpx;
color: #82928a;
font-size: 20rpx;
line-height: 1.5;
}
.service-info-section .backfill-picker-field {
margin-top: 16rpx;
}
.service-info-section .backfill-picker-field.first {
margin-top: 0;
}
.service-info-section .service-artist-field {
margin-top: 16rpx;
}
.backfill-remark-field {
margin-top: 20rpx;
}
.backfill-remark-field textarea {
box-sizing: border-box;
width: 100%;
min-height: 132rpx;
margin-top: 10rpx;
padding: 16rpx 20rpx;
border: 2rpx solid #dce6e1;
border-radius: 24rpx;
background: #fbfdfc;
color: #17211f;
font-size: 23rpx;
line-height: 1.5;
}
.status-segment {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12rpx;
padding: 8rpx;
border-radius: 26rpx;
background: #f1f5f3;
}
.status-option {
display: flex;
min-height: 84rpx;
align-items: center;
justify-content: center;
gap: 12rpx;
border: 2rpx solid transparent;
border-radius: 20rpx;
color: #71807a;
font-size: 25rpx;
font-weight: 700;
}
.status-option.active {
border-color: #b8daca;
background: #e5f4ed;
color: #247b63;
}
.status-indicator {
width: 14rpx;
height: 14rpx;
border-radius: 50%;
background: #91a29a;
}
.status-option.active .status-indicator.in-service {
background: #d28b55;
box-shadow: 0 0 0 6rpx rgba(210, 139, 85, 0.14);
}
.status-option.active .status-indicator.completed {
background: #247b63;
box-shadow: 0 0 0 6rpx rgba(36, 123, 99, 0.14);
}
.backfill-page .customer-section {
padding-bottom: 26rpx;
}
.customer-entry {
display: flex;
align-items: stretch;
gap: 14rpx;
margin-top: 18rpx;
}
.customer-fields {
display: grid;
min-width: 0;
flex: 1;
grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
gap: 12rpx;
}
.customer-entry .customer-name-input,
.customer-entry .customer-phone-input {
box-sizing: border-box;
width: 100%;
min-width: 0;
height: 88rpx;
margin: 0;
padding: 0 16rpx;
border: 2rpx solid #dce6e1;
border-radius: 24rpx;
background: #fbfdfc;
color: #17211f;
font-size: 22rpx;
}
.customer-library-btn {
display: flex;
width: 88rpx;
min-width: 88rpx;
max-width: 88rpx;
height: 88rpx;
align-items: center;
justify-content: center;
border-radius: 24rpx;
background: #e5f4ed;
color: #247b63;
}
.customer-library-icon {
font-size: 38rpx;
line-height: 1;
}
.customer-selected-tip {
display: block;
margin-top: 12rpx;
color: #247b63;
font-size: 20rpx;
}
.backfill-bottom {
padding-top: 20rpx;
border-top: 2rpx solid #e7ece9;
background: rgba(255, 255, 255, 0.97);
box-shadow: 0 -8rpx 22rpx rgba(23, 33, 31, 0.04);
}
.backfill-page .backfill-submit-btn {
min-height: 88rpx;
border-radius: 24rpx;
background: #17211f;
color: #fff;
box-shadow: 0 10rpx 22rpx rgba(23, 33, 31, 0.16);
}
@media (max-width: 360px) {
.backfill-title {
font-size: 44rpx;
}
.backfill-date-pill {
gap: 5rpx;
padding: 0 10rpx;
font-size: 19rpx;
}
.customer-fields {
grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
gap: 8rpx;
}
.customer-entry .customer-name-input,
.customer-entry .customer-phone-input {
padding: 0 12rpx;
font-size: 20rpx;
}
}
@@ -24,10 +24,11 @@ const page = createPage()
page.openProductSelector()
assert.strictEqual(page.data.productSelectorVisible, true)
assert.strictEqual(page.data.productSelectorMode, 'list')
page.selectProduct({ detail: { item: { id: 12, title: '轻奢款', price: 168, priceText: '¥168' } } })
page.selectProduct({ detail: { item: { id: 12, title: '轻奢款', price: 168, priceText: '¥168', coverImage: '/cover.jpg' } } })
assert.strictEqual(page.data.form.productId, 12)
assert.strictEqual(page.data.form.amount, '168')
assert.strictEqual(page.data.selectedProductPriceText, '¥168')
assert.strictEqual(page.data.selectedProduct.coverImage, '/cover.jpg')
assert.strictEqual(page.data.form.manualProductTitle, '')
page.data.manualProductDraft = { title: '临时款', price: '199' }
@@ -36,6 +37,7 @@ assert.strictEqual(page.data.form.productId, '')
assert.strictEqual(page.data.form.manualProductTitle, '临时款')
assert.strictEqual(page.data.form.amount, '199')
assert.strictEqual(page.data.selectedProductPriceText, '¥199')
assert.deepStrictEqual(page.data.selectedProduct, {})
page.openManualProduct()
assert.strictEqual(page.data.productSelectorMode, 'manual')