Commit 237306e1 authored by youjie's avatar youjie

no message

parent 2b2dda25
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
display: block; display: block;
} }
.infor1-left{ .infor1-left{
min-width: 120rpx;
white-space: nowrap; white-space: nowrap;
} }
</style> </style>
......
...@@ -656,6 +656,25 @@ export default { ...@@ -656,6 +656,25 @@ export default {
Math.floor(e.detail.scrollTop - 600) / 100 > 1 ? Math.floor(e.detail.scrollTop - 600) / 100 > 1 ?
1 : 1 :
Math.floor(e.detail.scrollTop - 600) / 100; 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(); this.$forceUpdate();
}, },
downloadTripPlanHandler() { downloadTripPlanHandler() {
......
...@@ -69,8 +69,8 @@ ...@@ -69,8 +69,8 @@
<view class="reimbursementInforTitle"> <view class="reimbursementInforTitle">
<headers textAlign="left" :title="pageTitle" color="#fff"></headers> <headers textAlign="left" :title="pageTitle" color="#fff"></headers>
<scroll-view class="reimbursementInforTsBox" :scroll-x="true" <scroll-view class="reimbursementInforTsBox" :scroll-x="true"
:scroll-left="scrollLeft" :scroll-left="scrollLeftHeader"
@scroll="scrollHandler"> @scroll="scrollHandlerHeader">
<view class="reimbursementInforT-text row-aic-n"> <view class="reimbursementInforT-text row-aic-n">
<view class="reimbursementInforText" <view class="reimbursementInforText"
:class="[params.type==item.id?'active':'']" :class="[params.type==item.id?'active':'']"
...@@ -262,6 +262,7 @@ export default { ...@@ -262,6 +262,7 @@ export default {
}, },
], ],
scrollLeft: 0, scrollLeft: 0,
scrollLeftHeader: 0,
currencyList: [], currencyList: [],
shopTypeList: [], shopTypeList: [],
} }
...@@ -376,10 +377,14 @@ export default { ...@@ -376,10 +377,14 @@ export default {
} }
}) })
}, },
scrollHandler(e){ scrollHandlerHeader(e){
// console.log(e.detail.scrollLeft,'-----------') console.log(e,'----------')
// this.scrollLeft = e.detail.scrollLeft // this.scrollLeft = e.detail.scrollLeft
}, },
scrollHandler(e){
console.log(e,'----------2222')
// this.scrollLeftHeader = e.detail.scrollLeft
},
scroll(e) { scroll(e) {
this.old.scrollTop = e.detail.scrollTop this.old.scrollTop = e.detail.scrollTop
this.boxOption = Math.floor((e.detail.scrollTop - 100) / 1.5); 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