chore: sync pending workspace updates

This commit is contained in:
wushumin
2026-05-21 15:28:16 +08:00
parent 7ba3ac1b67
commit cfd21b462a
8 changed files with 53 additions and 30 deletions

View File

@@ -157,8 +157,8 @@ function pickerText(options: Array<{ label?: string; name?: string }>, index: nu
function validateForm() {
const product = form.value.product_info;
const address = form.value.return_address;
if (!product.category_id || !product.brand_id || !product.product_name.trim()) {
showInfoToast("请完整填写品类品牌和商品名称");
if (!product.category_id || !product.brand_id) {
showInfoToast("请完整填写品类品牌");
return false;
}
if (!address.consignee.trim() || !address.mobile.trim() || !address.province.trim() || !address.city.trim() || !address.district.trim() || !address.detail_address.trim()) {
@@ -251,7 +251,7 @@ onLoad(() => {
<picker :range="brandOptions" range-key="name" :value="brandIndex" @change="onBrandChange">
<view class="field picker-field">{{ pickerText(brandOptions, brandIndex, "选择品牌") }}</view>
</picker>
<input v-model="form.product_info.product_name" class="field" placeholder="商品名称" />
<input v-model="form.product_info.product_name" class="field" placeholder="商品名称,可选" />
<input v-model="form.product_info.color" class="field" placeholder="颜色,可选" />
<input v-model="form.product_info.size_spec" class="field" placeholder="规格 / 尺寸,可选" />
<input v-model="form.product_info.serial_no" class="field" placeholder="序列号,可选" />