修改字段名称、增加字数计算

This commit is contained in:
TOP糯米 2023-02-26 00:24:05 +08:00
parent 35b61111e8
commit dc58432519
1 changed files with 17 additions and 3 deletions

View File

@ -61,10 +61,11 @@
<view class="textarea-item"> <view class="textarea-item">
<view class="title-box"> <view class="title-box">
<text>需求说明</text> <text>需求说明</text>
<text class="desc">您还可以输入{{ maxlength - content.length }}</text>
</view> </view>
<view class="textarea-box"> <view class="textarea-box">
<textarea <textarea
v-model="explain" v-model="content"
class="textarea" class="textarea"
placeholder="请您详细填写需求说明" placeholder="请您详细填写需求说明"
placeholder-class="placeholder-style-3" placeholder-class="placeholder-style-3"
@ -98,7 +99,7 @@
<text>需求说明</text> <text>需求说明</text>
</view> </view>
<view class="textarea-box"> <view class="textarea-box">
<text class="textarea">{{ explain }}</text> <text class="textarea">{{ content }}</text>
</view> </view>
</view> </view>
<view class="upload-item"> <view class="upload-item">
@ -199,12 +200,13 @@ export default {
return { return {
customBtn: false, customBtn: false,
pageTitle: "发布需求", pageTitle: "发布需求",
maxlength: 300,
step: 1, step: 1,
editPrice: false, editPrice: false,
total: 0, total: 0,
// //
type: 1, type: 1,
explain: "这个就是需求内容", content: "这个就是需求内容",
categoryIds: [1, 2, 3], categoryIds: [1, 2, 3],
uploadImages: [ uploadImages: [
{ {
@ -407,6 +409,18 @@ export default {
} }
.form-container.explain { .form-container.explain {
margin-top: 25rpx; margin-top: 25rpx;
.textarea-item {
.title-box {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
}
.desc {
font-size: 24rpx;
color: #999999;
}
}
.textarea-box { .textarea-box {
border: none; border: none;
.textarea { .textarea {