支付界面更新
This commit is contained in:
@@ -87,6 +87,7 @@
|
||||
//不同按键处理逻辑
|
||||
// -1 代表无效按键,直接返回
|
||||
if (num == -1) return false;
|
||||
|
||||
switch (String(num)) {
|
||||
//小数点
|
||||
case '.':
|
||||
@@ -140,9 +141,8 @@
|
||||
|
||||
//处理数字
|
||||
_handleNumberKey(num) {
|
||||
if (this.money.length == 6) {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
let S = this.money;
|
||||
//如果有小数点且小数点位数不小于2
|
||||
// if (S.indexOf('.') > -1 && S.substring(S.indexOf('.') + 1).length < 2)
|
||||
@@ -157,6 +157,12 @@
|
||||
// this.money = S + num;
|
||||
// }
|
||||
// }
|
||||
console.log(this.money)
|
||||
console.log(this.money,this.money.length)
|
||||
if (this.money.length == 6) {
|
||||
this.$emit('confirmEvent', this.money); //提交参数
|
||||
return
|
||||
}
|
||||
},
|
||||
|
||||
//提交
|
||||
|
||||
Reference in New Issue
Block a user