Fix:3011 【商城小程序】店铺主页发布动态中,简介输入字数超过140字时未弹出”字数超过限制“提示,且下方字数提示变化不正确
This commit is contained in:
@@ -29,6 +29,7 @@
|
|||||||
maxlength="140"
|
maxlength="140"
|
||||||
placeholder-style="font-size:24rpx;color:#C2C5CC;"
|
placeholder-style="font-size:24rpx;color:#C2C5CC;"
|
||||||
class="content-style inp"
|
class="content-style inp"
|
||||||
|
@input="inputIntro"
|
||||||
/>
|
/>
|
||||||
<text class="v12-font-24 v12-dark1-text">{{ form.intro.length > 140 ? 140 : form.intro.length }} / 140</text>
|
<text class="v12-font-24 v12-dark1-text">{{ form.intro.length > 140 ? 140 : form.intro.length }} / 140</text>
|
||||||
</view>
|
</view>
|
||||||
@@ -117,6 +118,14 @@
|
|||||||
this.hotelId = option.hotelId
|
this.hotelId = option.hotelId
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
inputIntro() {
|
||||||
|
if(this.form.intro.length >= 140) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '字数超过限制',
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
changeTab(index) {
|
changeTab(index) {
|
||||||
this.tabIndex = index
|
this.tabIndex = index
|
||||||
this.showUpload = false
|
this.showUpload = false
|
||||||
|
|||||||
Reference in New Issue
Block a user