Commit 237306e1 authored by youjie's avatar youjie

no message

parent 2b2dda25
......@@ -28,7 +28,6 @@
display: block;
}
.infor1-left{
min-width: 120rpx;
white-space: nowrap;
}
</style>
......
......@@ -656,6 +656,25 @@ export default {
Math.floor(e.detail.scrollTop - 600) / 100 > 1 ?
1 :
Math.floor(e.detail.scrollTop - 600) / 100;
this.titlesList.forEach((x,index)=>{
let pev
let nex
let fir
let las
if(index>0) pev = this.titlesList[index-1]
if(index<this.titlesList.length-1) nex = this.titlesList[index+1]
if(index==this.titlesList.length-1) las = this.titlesList[index]
if(index==0) fir = this.titlesList[index]
if(pev!=undefined&&this.old.scrollTop>pev.top&&nex!=undefined&&this.old.scrollTop<nex.top){
this.current = x.ID
}
if(fir!=undefined&&this.old.scrollTop<fir.top){
this.current = x.ID
}
if(las!=undefined&&this.old.scrollTop>las.top){
this.current = x.ID
}
})
this.$forceUpdate();
},
downloadTripPlanHandler() {
......
......@@ -69,8 +69,8 @@
<view class="reimbursementInforTitle">
<headers textAlign="left" :title="pageTitle" color="#fff"></headers>
<scroll-view class="reimbursementInforTsBox" :scroll-x="true"
:scroll-left="scrollLeft"
@scroll="scrollHandler">
:scroll-left="scrollLeftHeader"
@scroll="scrollHandlerHeader">
<view class="reimbursementInforT-text row-aic-n">
<view class="reimbursementInforText"
:class="[params.type==item.id?'active':'']"
......@@ -262,6 +262,7 @@ export default {
},
],
scrollLeft: 0,
scrollLeftHeader: 0,
currencyList: [],
shopTypeList: [],
}
......@@ -376,10 +377,14 @@ export default {
}
})
},
scrollHandler(e){
// console.log(e.detail.scrollLeft,'-----------')
scrollHandlerHeader(e){
console.log(e,'----------')
// this.scrollLeft = e.detail.scrollLeft
},
scrollHandler(e){
console.log(e,'----------2222')
// this.scrollLeftHeader = e.detail.scrollLeft
},
scroll(e) {
this.old.scrollTop = e.detail.scrollTop
this.boxOption = Math.floor((e.detail.scrollTop - 100) / 1.5);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment