Commit 4ef9734a authored by youjie's avatar youjie

no message

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