@@ -15,7 +15,7 @@
:error="pnError"
@click="pnError=false"
required
- maxlength="10"
+ maxlength="30"
/>
<p>我的礼物丨走心介绍</p>
<van-cell-group>
@@ -117,6 +117,11 @@
},
methods: {
publishPresent() {
+ Toast.loading({
+ mask: true,
+ message: '图片上传较慢,请耐心等待...',
+ duration: 1000
+ });
this.loading = true;
// 检验输入
if (isEmojiCharacter(this.presentName)) {
@@ -126,6 +131,7 @@
return;
}
else if (this.presentName.length === 0) {
+ Toast.fail('请填写手机号');
this.pnError = true;
this.loading = false;
@@ -132,6 +132,11 @@
next() {
// 检查输入
if (this.phone.length !== 11) {
@@ -150,6 +155,7 @@
} else if (this.username.length < 1) {
+ Toast.fail('请输入昵称');
this.usernameError = true;