Commit c823eb44 authored by youjie's avatar youjie

no message

parent 8cec2f20
...@@ -454,7 +454,7 @@ export default { ...@@ -454,7 +454,7 @@ export default {
top: 0, top: 0,
}, },
{ {
Name: '7日行程', Name: '行程',
ID: 2, ID: 2,
val: 'title1', val: 'title1',
top: 0, top: 0,
...@@ -557,6 +557,17 @@ export default { ...@@ -557,6 +557,17 @@ 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(() => {
this.titlesList.forEach((x,index) => {
if(index==1) x.Name = `${this.dataList.dayNum}日行程`
const query = uni.createSelectorQuery().select(`#${x.val}`);
query.boundingClientRect((rect) => {
x.top = rect.top-130;
}).exec();
})
uni.hideLoading()
}, 3000);
} }
}, },
formatTraffice(tras) { formatTraffice(tras) {
...@@ -582,20 +593,10 @@ export default { ...@@ -582,20 +593,10 @@ export default {
uni.showLoading() uni.showLoading()
this.apipost("b2b_get_GetB2BTravelInfoNoDes", this.msg, (res) => { this.apipost("b2b_get_GetB2BTravelInfoNoDes", this.msg, (res) => {
if (res.resultCode == 1) { if (res.resultCode == 1) {
uni.hideLoading()
res.data.tempImgCover = JSON.parse(res.data.imgCover); res.data.tempImgCover = JSON.parse(res.data.imgCover);
this.dataList = res.data this.dataList = res.data
this.priceList = res.data.priceList this.priceList = res.data.priceList
this.formatDay() this.formatDay()
setTimeout(() => {
this.titlesList.forEach((x,index) => {
if(index==1) x.Name = `${this.dataList.dayNum}日行程`
const query = uni.createSelectorQuery().select(`#${x.val}`);
query.boundingClientRect((rect) => {
x.top = rect.top;
}).exec();
})
}, 1000);
} }
}, (failed) => { }, (failed) => {
uni.hideLoading() uni.hideLoading()
......
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