This commit is contained in:
wanglei
2022-02-10 18:27:02 +08:00
parent ec439a6e9b
commit 49ee3dbde5
2 changed files with 8 additions and 13 deletions

View File

@@ -14,7 +14,10 @@
<u-form-item :label="status == 2 ? '办结意见':'办理意见'" prop="content" required :border-bottom="false" label-position="top" class="contents"> <u-form-item :label="status == 2 ? '办结意见':'办理意见'" prop="content" required :border-bottom="false" label-position="top" class="contents">
<u-input v-model="forms.content" :placeholder="status == 2 ? '请写下你的办结意见…' : '请写下你的办理意见...'" type="textarea" auto-height height="100" maxlength="500" /> <u-input v-model="forms.content" :placeholder="status == 2 ? '请写下你的办结意见…' : '请写下你的办理意见...'" type="textarea" auto-height height="100" maxlength="500" />
<span class="limit">{{ form.content.length/200 }}</span> </u-form-item>
<u-form-item>
<span class="limit">{{ forms.content.length }}/200</span>
</u-form-item> </u-form-item>
<div class="line"></div> <div class="line"></div>
@@ -207,7 +210,8 @@ export default {
.limit { .limit {
position: fixed; position: fixed;
right: 0; right: 44px;
font-size: 15px;
} }
.btn { .btn {

View File

@@ -8,7 +8,7 @@
:class="form.userType === '' ? 'color-999' : ''" >{{ :class="form.userType === '' ? 'color-999' : ''" >{{
$dict.getLabel('appSpecialTypeFive', form.userType) || '请选择' $dict.getLabel('appSpecialTypeFive', form.userType) || '请选择'
}}</span> }}</span>
<u-icon name="arrow-right" color="#cccccc" size="14"/> <u-icon name="arrow-right" color="#cccccc" size="24"/>
</div> </div>
</div> </div>
<div class="item"> <div class="item">
@@ -45,8 +45,7 @@
<span class="label"><span class="tips">*</span>联系电话</span> <span class="label"><span class="tips">*</span>联系电话</span>
<div class="value"> <div class="value">
<u-input type="number" placeholder="请输入" v-model="form.phone" input-align="right" <u-input type="number" placeholder="请输入" v-model="form.phone" input-align="right"
placeholder-style="color:#999;font-size:16px;" height="48" :maxlength="11" :clearable="false" placeholder-style="color:#999;font-size:16px;" height="48" :maxlength="11" :clearable="false"/>
@input="changePhone"/>
</div> </div>
</div> </div>
<div class="item"> <div class="item">
@@ -434,11 +433,6 @@ export default {
} }
}, },
changePhone() {
if (this.form.phone.length != 11) {
return this.$u.toast('请输入正确的联系电话')
}
},
confirmGirdSelect(e) { confirmGirdSelect(e) {
this.form.girdId = e[0].value this.form.girdId = e[0].value
this.form.girdName = e[0].label this.form.girdName = e[0].label
@@ -474,9 +468,6 @@ export default {
if (!this.form.phone) { if (!this.form.phone) {
return this.$u.toast('请输入联系电话') return this.$u.toast('请输入联系电话')
} }
if (!/^1[0-9]{10,10}$/.test(this.form.phone)) {
return this.$u.toast("请输入正确的联系电话");
}
if (!this.form.areaName) { if (!this.form.areaName) {
return this.$u.toast('请选择区域') return this.$u.toast('请选择区域')
} }