|
...
|
...
|
@@ -216,7 +216,10 @@ Page({ |
|
|
|
this.setData({
|
|
|
|
toView: 'inToView' + _id,
|
|
|
|
});
|
|
|
|
|
|
|
|
this.getClassNameFlag=false;
|
|
|
|
setTimeout(res=>{
|
|
|
|
this.getClassNameFlag=true;
|
|
|
|
},800)
|
|
|
|
},
|
|
|
|
foodCardCallback(e){
|
|
|
|
let opt = e.detail;
|
|
...
|
...
|
@@ -272,7 +275,7 @@ Page({ |
|
|
|
let activeId='';
|
|
|
|
Object.keys(this.scrollHeightList).forEach(tid=>{
|
|
|
|
let mx=parseInt(e.detail.scrollTop)-parseInt(this.scrollHeightList[tid].top)
|
|
|
|
if(mx>-120){
|
|
|
|
if(mx>-100){
|
|
|
|
if(mx<maxMX) {
|
|
|
|
maxMX=mx;
|
|
|
|
activeId=tid;
|
...
|
...
|
|