Commit c3335e4f authored by youjie's avatar youjie

no message

parent e2f79582
...@@ -419,8 +419,7 @@ ...@@ -419,8 +419,7 @@
<div <div
class="absolute" style="z-index: 999;left: -150px;" class="absolute" style="z-index: 999;left: -150px;"
:style="{'top':currentHeight>navs[1].top?(currentHeight+100)+'px':(currentHeight+200)+'px'}" :style="{'top':currentHeight>navs[1].top?(currentHeight+100)+'px':(currentHeight+200)+'px'}"
v-if=" v-if="$q.platform.is.desktop&&
dataList.priceList.length > 0&&$q.platform.is.desktop&&
currentHeight>navs[1].top-400 currentHeight>navs[1].top-400
&&currentHeight<navs[2].top&&dataList.dayList.length>3 &&currentHeight<navs[2].top&&dataList.dayList.length>3
" "
...@@ -502,17 +501,19 @@ ...@@ -502,17 +501,19 @@
class="q-pb-xl" class="q-pb-xl"
:class="{'q-px-md':$q.platform.is.mobile}" :class="{'q-px-md':$q.platform.is.mobile}"
></smaple> ></smaple>
<div v-if="detailsImageList&&detailsImageList.length>0" <template v-if="detailsImageList&&detailsImageList.length>0">
v-for="(x,i) in detailsImageList" <div
:id="`days_${i}`"> v-for="(x,i) in detailsImageList"
<div class="tripImages-footer" v-if="!dataList.tripColor" style="padding: 20px 0;"> :id="`days_${i}`">
</div> <div class="tripImages-footer" v-if="!dataList.tripColor" style="padding: 20px 0;">
<!-- <img v-if="dataList.teamType!=2" class="block" :src="x.header" width="100%"> -->
<img class="block" :src="x.page" style="width: 100%">
<div class="tripImages-footer">
<img v-if="dataList.tripColor" class="block" :src="x.footer" style="width: 100%">
</div> </div>
</div> <!-- <img v-if="dataList.teamType!=2" class="block" :src="x.header" width="100%"> -->
<img class="block" :src="x.page" style="width: 100%">
<div class="tripImages-footer">
<img v-if="dataList.tripColor" class="block" :src="x.footer" style="width: 100%">
</div>
</div>
</template>
<template v-else> <template v-else>
<template v-if="dataList.dayList.length<=3"> <template v-if="dataList.dayList.length<=3">
<trip :trip="dataList" @change="changeTripShowHandler"></trip> <trip :trip="dataList" @change="changeTripShowHandler"></trip>
...@@ -836,7 +837,7 @@ export default { ...@@ -836,7 +837,7 @@ export default {
watch: { watch: {
days: { days: {
handler: function (val, oldval) { handler: function (val, oldval) {
this.days = val; // this.days = val;
let that = this let that = this
this.$nextTick(()=>{ this.$nextTick(()=>{
try{ try{
...@@ -847,9 +848,9 @@ export default { ...@@ -847,9 +848,9 @@ export default {
} catch (error) { } catch (error) {
console.log('----异常') console.log('----异常')
} }
setTimeout(()=>{ // setTimeout(()=>{
that.getTopNum(JSON.stringify(that.days)) // that.getTopNum(JSON.stringify(that.days))
},1000) // },1000)
}) })
}, },
immediate: true, immediate: true,
...@@ -1084,6 +1085,7 @@ export default { ...@@ -1084,6 +1085,7 @@ export default {
}, },
getData() { getData() {
this.$q.loading.show(); this.$q.loading.show();
let that = this
console.log(this.$q.loading) console.log(this.$q.loading)
this.apipost( this.apipost(
"b2b_get_GetB2BTravelInfoV1", "b2b_get_GetB2BTravelInfoV1",
...@@ -1155,26 +1157,26 @@ export default { ...@@ -1155,26 +1157,26 @@ export default {
}); });
} }
this.$nextTick(() => { this.$nextTick(() => {
if (this.dataList.feature.featureHtml != "") { if (that.dataList.feature.featureHtml != "") {
let tw = let tw =
parseFloat( parseFloat(
this.$refs.diyContext.getBoundingClientRect().width that.$refs.diyContext.getBoundingClientRect().width
) / 1123.0; ); // / 1123.0
let divArr = document.querySelectorAll("#setZoom>div"); let divArr = document.querySelectorAll("#setZoom>div");
for (let i = 0; i < divArr.length; i++) { for (let i = 0; i < divArr.length; i++) {
let div = divArr[i]; let div = divArr[i];
if (this.$q.platform.is.mobile) { if (that.$q.platform.is.mobile) {
div.style.zoom = div.style.zoom =
div.offsetWidth > 1000 div.offsetWidth > 1000
? 0.999 ? 0.999
: document.documentElement.clientWidth / 1123.0; : document.documentElement.clientWidth;/// 1123.0
} else { } else {
div.style.zoom = 1; div.style.zoom = 1;
} }
} }
this.zoomDiyContext = tw > 1 ? 1 : tw.toFixed(2); that.zoomDiyContext = tw > 1 ? 1 : tw.toFixed(2);
} }
setTimeout(() => { setTimeout(() => {
......
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