|
...
|
...
|
@@ -57,6 +57,7 @@ Page({ |
|
|
|
tablesLength:0,
|
|
|
|
|
|
|
|
timePickerMask:false,
|
|
|
|
pnumInputFocus:false,
|
|
|
|
},
|
|
|
|
/**
|
|
|
|
* 生命周期函数--监听页面加载
|
|
...
|
...
|
@@ -165,9 +166,10 @@ Page({ |
|
|
|
console.log(e);
|
|
|
|
let key=util.attr(e,'key');
|
|
|
|
let val;
|
|
|
|
let sobj={};
|
|
|
|
if(e.type=='input' || e.type=='confirm'){
|
|
|
|
val=util.val(e);
|
|
|
|
if(e.currentTarget.dataset.key=='phone'){
|
|
|
|
if(key=='phone'){
|
|
|
|
var that=this;
|
|
|
|
if(e.detail.value!='' && e.detail.value.length>=3) {
|
|
|
|
App.Reserve.GetReserveUser(
|
|
...
|
...
|
@@ -192,12 +194,15 @@ Page({ |
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(key=='pnum'){
|
|
|
|
sobj.pnumInputFocus=true;
|
|
|
|
}
|
|
|
|
}else{
|
|
|
|
val=util.attr(e,'value');
|
|
|
|
}
|
|
|
|
|
|
|
|
let form=this.data.form;
|
|
|
|
let sobj={};
|
|
|
|
|
|
|
|
if(key=='tid'){
|
|
|
|
let ts=this.data.tables;
|
|
|
|
if(ts[val].isselect){
|
|
...
|
...
|
@@ -452,4 +457,11 @@ Page({ |
|
|
|
console.log('initModify',e)
|
|
|
|
}
|
|
|
|
},
|
|
|
|
pnumInputFocusEvent(e){
|
|
|
|
console.log(e);
|
|
|
|
this.setData({
|
|
|
|
pnumInputFocus:'focus'==e.type
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
}) |
|
|
\ No newline at end of file |
...
|
...
|
|