提交 374f27ef 作者: ifzm

fix: 修复页面标签不完整导致编译错误

上级 d945f635
...@@ -289,8 +289,23 @@ ...@@ -289,8 +289,23 @@
<view class="formBox"> <view class="formBox">
<fui-form ref="formRef" label-weight="auto" top="60"> <fui-form ref="formRef" label-weight="auto" top="60">
<view class="mt20"> <view class="mt20">
<fui-input label="供应标题" placeholder="请输入供应标题" placeholderStyle="font-size: 26rpx" v-model="form.title" labelSize="28" label-width="180" required /> <fui-input
<fui-input label="规格说明" placeholder="请输入规格说明" placeholderStyle="font-size: 26rpx" v-model="form.productSpecs" labelSize="28" label-width="180" /> label="供应标题"
placeholder="请输入供应标题"
placeholderStyle="font-size: 26rpx"
v-model="form.title"
labelSize="28"
label-width="180"
required
/>
<fui-input
label="规格说明"
placeholder="请输入规格说明"
placeholderStyle="font-size: 26rpx"
v-model="form.productSpecs"
labelSize="28"
label-width="180"
/>
</view> </view>
<view class="mt20"> <view class="mt20">
<!-- 价格区间 --> <!-- 价格区间 -->
...@@ -298,16 +313,64 @@ ...@@ -298,16 +313,64 @@
<view class="form-item required flex align-center"> <view class="form-item required flex align-center">
<text class="label" style="font-size: 28rpx">价格区间</text> <text class="label" style="font-size: 28rpx">价格区间</text>
<view class="price-range"> <view class="price-range">
<input type="number" class="price-input" v-model="form.minPrice" placeholder="最低价" placeholderStyle="font-size: 26rpx" :min="0" /> <input
type="number"
class="price-input"
v-model="form.minPrice"
placeholder="最低价"
placeholderStyle="font-size: 26rpx"
:min="0"
/>
<text class="price-separator">-</text> <text class="price-separator">-</text>
<input type="number" class="price-input" v-model="form.maxPrice" placeholder="最高价" placeholderStyle="font-size: 26rpx" :min="0" /> <input
type="number"
class="price-input"
v-model="form.maxPrice"
placeholder="最高价"
placeholderStyle="font-size: 26rpx"
:min="0"
/>
</view> </view>
</view> </view>
</view> </view>
<fui-input required label="计量单位" placeholder="请输入计量单位" placeholderStyle="font-size: 26rpx" v-model="form.unit" labelSize="28" label-width="180" /> <fui-input
<fui-input required label="币种" placeholder="请输入币种" placeholderStyle="font-size: 26rpx" v-model="form.currency" labelSize="28" label-width="180" /> required
<fui-input required label="供应数量" placeholder="请输入供应数量" placeholderStyle="font-size: 26rpx" v-model="form.supplyQuantity" labelSize="28" label-width="180" type="number" /> label="计量单位"
<fui-input required label="最小起订量" placeholder="请输入最小起订量" placeholderStyle="font-size: 26rpx" v-model="form.minOrderQuantity" labelSize="28" label-width="180" type="number" /> placeholder="请输入计量单位"
placeholderStyle="font-size: 26rpx"
v-model="form.unit"
labelSize="28"
label-width="180"
/>
<fui-input
required
label="币种"
placeholder="请输入币种"
placeholderStyle="font-size: 26rpx"
v-model="form.currency"
labelSize="28"
label-width="180"
/>
<fui-input
required
label="供应数量"
placeholder="请输入供应数量"
placeholderStyle="font-size: 26rpx"
v-model="form.supplyQuantity"
labelSize="28"
label-width="180"
type="number"
/>
<fui-input
required
label="最小起订量"
placeholder="请输入最小起订量"
placeholderStyle="font-size: 26rpx"
v-model="form.minOrderQuantity"
labelSize="28"
label-width="180"
type="number"
/>
</view> </view>
<view class="mt20"> <view class="mt20">
<view class="form-item required flex align-center" style="padding: 20rpx 10rpx"> <view class="form-item required flex align-center" style="padding: 20rpx 10rpx">
...@@ -318,7 +381,15 @@ ...@@ -318,7 +381,15 @@
</text> </text>
</view> </view>
</view> </view>
<fui-input required label="详细地址" placeholder="请输入详细地址" placeholderStyle="font-size: 26rpx" v-model="form.detailedAddress" labelSize="28" label-width="180" /> <fui-input
required
label="详细地址"
placeholder="请输入详细地址"
placeholderStyle="font-size: 26rpx"
v-model="form.detailedAddress"
labelSize="28"
label-width="180"
/>
<!-- 供应时间 --> <!-- 供应时间 -->
<view class="form-section" style="padding: 0 30rpx"> <view class="form-section" style="padding: 0 30rpx">
...@@ -328,7 +399,12 @@ ...@@ -328,7 +399,12 @@
<view class="time-input" @click="show.time1 = true"> <view class="time-input" @click="show.time1 = true">
<text class="time-text" :class="{ placeholder: !form.supplyStartDate }"> <text class="time-text" :class="{ placeholder: !form.supplyStartDate }">
{{ form.supplyStartDate || '开始时间' }} {{ form.supplyStartDate || '开始时间' }}
<text class="time-text" :class="{ placeholder: !form.supplyStartDate }" style="font-size: 26rpx"> </text>
<text
class="time-text"
:class="{ placeholder: !form.supplyStartDate }"
style="font-size: 26rpx"
>
{{ form.supplyStartDate || '开始时间' }} {{ form.supplyStartDate || '开始时间' }}
</text> </text>
</view> </view>
...@@ -336,7 +412,12 @@ ...@@ -336,7 +412,12 @@
<view class="time-input" @click="show.time2 = true"> <view class="time-input" @click="show.time2 = true">
<text class="time-text" :class="{ placeholder: !form.supplyEndDate }"> <text class="time-text" :class="{ placeholder: !form.supplyEndDate }">
{{ form.supplyEndDate || '结束时间' }} {{ form.supplyEndDate || '结束时间' }}
<text class="time-text" :class="{ placeholder: !form.supplyEndDate }" style="font-size: 26rpx"> </text>
<text
class="time-text"
:class="{ placeholder: !form.supplyEndDate }"
style="font-size: 26rpx"
>
{{ form.supplyEndDate || '结束时间' }} {{ form.supplyEndDate || '结束时间' }}
</text> </text>
</view> </view>
...@@ -347,7 +428,11 @@ ...@@ -347,7 +428,11 @@
<view class="form-item required flex align-center"> <view class="form-item required flex align-center">
<text class="label" style="font-size: 28rpx">分类</text> <text class="label" style="font-size: 28rpx">分类</text>
<view class="time-input" @click="show.classify = true"> <view class="time-input" @click="show.classify = true">
<text class="select-text" :class="{ placeholder: !form.classifyText }" style="font-size: 26rpx" > <text
class="select-text"
:class="{ placeholder: !form.classifyText }"
style="font-size: 26rpx"
>
{{ form.classifyText || '请选择分类' }} {{ form.classifyText || '请选择分类' }}
</text> </text>
</view> </view>
...@@ -357,18 +442,58 @@ ...@@ -357,18 +442,58 @@
<view class="bg-white mt20" style="padding: 0.875rem 1rem"> <view class="bg-white mt20" style="padding: 0.875rem 1rem">
<view class="mb-1 flex justify-start"> 上传图片 </view> <view class="mb-1 flex justify-start"> 上传图片 </view>
<uni-file-picker :value="form.imageObj" ref="uploadRef" limit="1" :auto-upload="false" @select="handleUpload" @delete="handleDelete" /> <uni-file-picker
:value="form.imageObj"
ref="uploadRef"
limit="1"
:auto-upload="false"
@select="handleUpload"
@delete="handleDelete"
/>
</view> </view>
<view class="fui-btn__box" v-if="!form.id" style="margin-top: 30rpx"> <view class="fui-btn__box" v-if="!form.id" style="margin-top: 30rpx">
<fui-button text="发布需求" bold radius="96rpx" @click="submit" /> <fui-button text="发布需求" bold radius="96rpx" @click="submit" />
</view> </view>
</fui-form> </fui-form>
<fui-date-picker :show="show.time1" type="3" @change="handleChangeTime1" @cancel="show.time1 = false" :minDate="getCurrentDate()" /> <fui-date-picker
<fui-date-picker :show="show.time2" type="3" @change="handleChangeTime2" @cancel="show.time2 = false" :minDate="getCurrentDate()" /> :show="show.time1"
<fui-picker :show="show.status" :layer="1" :linkage="true" :options="options.status" @change="handleChangeStatus" @cancel="show.status = false" /> type="3"
<fui-picker :show="show.classify" :layer="1" :linkage="true" :options="options.classify" @change="handleChangeClassify" @cancel="show.classify = false" /> @change="handleChangeTime1"
<fui-picker :show="show.address" :options="options.address" :linkage="true" :layer="3" @change="handleChangeAddress" @cancel="show.address = false" /> @cancel="show.time1 = false"
:minDate="getCurrentDate()"
/>
<fui-date-picker
:show="show.time2"
type="3"
@change="handleChangeTime2"
@cancel="show.time2 = false"
:minDate="getCurrentDate()"
/>
<fui-picker
:show="show.status"
:layer="1"
:linkage="true"
:options="options.status"
@change="handleChangeStatus"
@cancel="show.status = false"
/>
<fui-picker
:show="show.classify"
:layer="1"
:linkage="true"
:options="options.classify"
@change="handleChangeClassify"
@cancel="show.classify = false"
/>
<fui-picker
:show="show.address"
:options="options.address"
:linkage="true"
:layer="3"
@change="handleChangeAddress"
@cancel="show.address = false"
/>
<fui-toast ref="toastRef" /> <fui-toast ref="toastRef" />
</view> </view>
</view> </view>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论