修改字段名称、增加字数计算
This commit is contained in:
parent
35b61111e8
commit
dc58432519
|
@ -61,10 +61,11 @@
|
|||
<view class="textarea-item">
|
||||
<view class="title-box">
|
||||
<text>需求说明</text>
|
||||
<text class="desc">您还可以输入{{ maxlength - content.length }}字</text>
|
||||
</view>
|
||||
<view class="textarea-box">
|
||||
<textarea
|
||||
v-model="explain"
|
||||
v-model="content"
|
||||
class="textarea"
|
||||
placeholder="请您详细填写需求说明"
|
||||
placeholder-class="placeholder-style-3"
|
||||
|
@ -98,7 +99,7 @@
|
|||
<text>需求说明</text>
|
||||
</view>
|
||||
<view class="textarea-box">
|
||||
<text class="textarea">{{ explain }}</text>
|
||||
<text class="textarea">{{ content }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="upload-item">
|
||||
|
@ -199,12 +200,13 @@ export default {
|
|||
return {
|
||||
customBtn: false,
|
||||
pageTitle: "发布需求",
|
||||
maxlength: 300,
|
||||
step: 1,
|
||||
editPrice: false,
|
||||
total: 0,
|
||||
// 保存数据
|
||||
type: 1,
|
||||
explain: "这个就是需求内容",
|
||||
content: "这个就是需求内容",
|
||||
categoryIds: [1, 2, 3],
|
||||
uploadImages: [
|
||||
{
|
||||
|
@ -407,6 +409,18 @@ export default {
|
|||
}
|
||||
.form-container.explain {
|
||||
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 {
|
||||
border: none;
|
||||
.textarea {
|
||||
|
|
Loading…
Reference in New Issue