Commit f68e323b authored by youjie's avatar youjie

行程 一日游判断

parent 97d6a5ef
...@@ -420,7 +420,7 @@ ...@@ -420,7 +420,7 @@
: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="
dataList.priceList.length > 0&&$q.platform.is.desktop&&currentHeight>navs[1].top-400 dataList.priceList.length > 0&&$q.platform.is.desktop&&currentHeight>navs[1].top-400
&&currentHeight<navs[2].top &&currentHeight<navs[2].top&&dataList.dayList.length>3
" "
> >
<!-- style="position: sticky; top: 100px" --> <!-- style="position: sticky; top: 100px" -->
...@@ -462,9 +462,9 @@ ...@@ -462,9 +462,9 @@
<div class="q-pb-xl" v-if="tripImages&&tripImages.length>0" <div class="q-pb-xl" v-if="tripImages&&tripImages.length>0"
ref="diyContext"> ref="diyContext">
<div v-for="(x,i) in tripImages"> <div v-for="(x,i) in tripImages">
<img class="block" :src="x.header" width="100%"> <img v-if="dataList.teamType!=2" class="block" :src="x.header" width="100%">
<img class="block" :src="x.page" style="width: 100%"> <img class="block" :src="x.page" style="width: 100%">
<div class="tripImages-footer"> <div v-if="dataList.teamType!=2" class="tripImages-footer">
<img class="block" :src="x.footer" style="width: 100%"> <img class="block" :src="x.footer" style="width: 100%">
</div> </div>
</div> </div>
...@@ -1108,23 +1108,19 @@ export default { ...@@ -1108,23 +1108,19 @@ export default {
} }
this.$nextTick(() => { this.$nextTick(() => {
if (this.dataList.feature.featureHtml != "") { if (this.dataList.feature.featureHtml != "") {
// parseFloat(
// this.$refs.diyContext.getBoundingClientRect().width
// ) / 1123.0;
let tw = let tw =
parseFloat( parseFloat(
this.$refs.diyContext.getBoundingClientRect().width this.$refs.diyContext.getBoundingClientRect().width
); ) / 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 (this.$q.platform.is.mobile) {
// document.documentElement.clientWidth / 1123.0
div.style.zoom = div.style.zoom =
div.offsetWidth > 1000 div.offsetWidth > 1000
? 0.999 ? 0.999
: document.documentElement.clientWidth; : document.documentElement.clientWidth / 1123.0;
} else { } else {
div.style.zoom = 1; div.style.zoom = 1;
} }
......
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