支付界面更新

This commit is contained in:
GaoHao
2024-08-03 10:50:38 +08:00
parent e1e501e150
commit 2b66e1d7f8
6 changed files with 86 additions and 1794 deletions

View File

@@ -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
}
},
//提交