Commit 4ef9734a authored by youjie's avatar youjie

no message

parent 01d455b6
......@@ -521,20 +521,21 @@ export default {
watch: {
d:{
handler(newVal,oldVal){
if(this.dataList&&this.dataList.dayNum>=0){
this.titlesList.forEach((x,index) => {
if(index==1) x.Name = `${this.dataList.dayNum}日行程`
const query = uni.createSelectorQuery().select(`#${x.val}`);
if(query) query.boundingClientRect((rect) => {
x.top = rect.top-130;
}).exec();
if(index==3) uni.hideLoading()
})
if(this.d&&this.d.length > 0){
setTimeout(()=>{
this.titlesList.forEach((x,index) => {
if(index==1) x.Name = `${this.dataList.dayNum}日行程`
const query = uni.createSelectorQuery().select(`#${x.val}`);
if(query) query.boundingClientRect((rect) => {
x.top = rect.top-130;
}).exec();
if(index==3) uni.hideLoading()
})
},3000)
}
},
deep:true,
immediate:true
immediate:false
},
},
mounted() {
......@@ -576,10 +577,6 @@ export default {
x.zhusu = x.dayArray.filter(z=>z.type==3)
x.canshi = x.dayArray.filter(z=>z.type==4)
});
setTimeout(() => {
}, 5000);
}
},
formatTraffice(tras) {
......
......@@ -92,7 +92,7 @@
<view class="roomHeader">
<headers :title="pageTitle" color="#fff"></headers>
</view>
<view v-if="dataList&&dataList.length>0" class="PT20 row justify-between items-center roomHeaderTitle PX30 fz30">
<view v-if="dataList&&dataList.length>1" class="PT20 row justify-between items-center roomHeaderTitle PX30 fz30">
<view v-for="(item,index) in dataList" class="PX40 PY10"
:class="[currentId==item.TCNUM?'active':'']"
@click="newData(item)">
......
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