|
@@ -14,7 +14,7 @@
|
|
|
<header class="keybord-header">
|
|
|
<span @click.stop="cancel()" style="color: red;font-size: large">取消</span>
|
|
|
<span v-if="previewOnKeyboard" :class="['preview', { 'new-energy': newEnergy }]">{{ inputValue}}</span>
|
|
|
- <span :class="[{ gray: inputValue.length !== 10 || inputValue.length !== 9}]" style="font-size: large" @click.stop="submit()">完成</span>
|
|
|
+ <span :class="[{ gray: inputValue.length < 9}]" style="font-weight:bold;font-size: large" @click.stop="submit()">完成</span>
|
|
|
</header>
|
|
|
|
|
|
<div class="keybord-keys">
|
|
@@ -147,7 +147,7 @@ export default {
|
|
|
},
|
|
|
// 完成
|
|
|
submit() {
|
|
|
- if (this.inputValue.length < 10) return
|
|
|
+ if (this.inputValue.length < 9) return
|
|
|
this.visible = false
|
|
|
this.$emit('submit', this.inputValue)
|
|
|
},
|