订单相关修改提测
This commit is contained in:
@@ -70,7 +70,6 @@
|
||||
methods: {
|
||||
touchstart() {
|
||||
this.Time = setInterval(() => {
|
||||
console.log(this.money);
|
||||
if (this.money == '') {
|
||||
clearInterval();
|
||||
}
|
||||
@@ -82,7 +81,7 @@
|
||||
},
|
||||
//处理按键
|
||||
_handleKeyPress(e) {
|
||||
console.log('点击传e', e.target.dataset.num);
|
||||
// console.log('点击传e', e.target.dataset.num);
|
||||
let num = e.target.dataset.num;
|
||||
//不同按键处理逻辑
|
||||
// -1 代表无效按键,直接返回
|
||||
@@ -141,8 +140,6 @@
|
||||
|
||||
//处理数字
|
||||
_handleNumberKey(num) {
|
||||
|
||||
|
||||
let S = this.money;
|
||||
//如果有小数点且小数点位数不小于2
|
||||
// if (S.indexOf('.') > -1 && S.substring(S.indexOf('.') + 1).length < 2)
|
||||
@@ -157,8 +154,6 @@
|
||||
// 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