Commit 9fed9f4e authored by Facius's avatar Facius

improve: 【前后台】流水号限制长度8位数字,输入框提示:请填写交易流水号后8位数字

parent 2ce6d11d
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
:cursor-spacing="10" :cursor-spacing="10"
:disabled="isDisabled" :disabled="isDisabled"
hold-keyboard hold-keyboard
@blur="showTip=dataValue.length < maxlength && isESerialNum" @blur="showTip=isESerialNum && dataValue.length < maxlength"
/> />
<view class="content" v-if="slotContent"> <view class="content" v-if="slotContent">
<text class="txt">{{ slotContent }}</text> <text class="txt">{{ slotContent }}</text>
......
...@@ -41,6 +41,10 @@ export default { ...@@ -41,6 +41,10 @@ export default {
this.dataValue = val this.dataValue = val
}) })
} }
// 交易流水号到8位就取消提示
if (this.isESerialNum && val.length >= this.maxlength) {
this.showTip = false
}
const data = { const data = {
groupIndex: this.groupIndex, // 左侧菜单下标 groupIndex: this.groupIndex, // 左侧菜单下标
itemIndex: this.itemIndex, //右侧某一项下标 itemIndex: this.itemIndex, //右侧某一项下标
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment