Commit a4f9f6a8 authored by 黄奎's avatar 黄奎

页面修改

parent adcec113
...@@ -82,7 +82,20 @@ ...@@ -82,7 +82,20 @@
<div class="travelDaysdetails-textBox"> <div class="travelDaysdetails-textBox">
<div class="travelDaysdetails-text right0 row"> <div class="travelDaysdetails-text right0 row">
<span class="travelDaysdetails-text0">住宿:</span> <span class="travelDaysdetails-text0">住宿:</span>
<template v-for="(j,i) in item.jiu2">{{j.name}} </template> 或同级 <template v-if="item.jiu2&& item.jiu2.length>0">
<template v-if="item.jiu2.length>1">
<template v-for="(j,i) in item.jiu2">{{j.name}} </template> 或同级
</template>
<template v-else>
<template v-if="item.jiu2[0].name=='温馨的家'">
{{item.jiu2[0].name}}
</template>
<template v-else>
{{item.jiu2[0].name}} 或同级
</template>
</template>
</template>
</div> </div>
</div> </div>
</div> </div>
...@@ -135,7 +148,7 @@ ...@@ -135,7 +148,7 @@
}, },
getFontSize(title) { getFontSize(title) {
let size = 30; let size = 30;
if (title&&title.length>0&&title.length > 80) { if (title && title.length > 0 && title.length > 80) {
var tempSize = Number(80) / Number(title.length); var tempSize = Number(80) / Number(title.length);
tempSize = tempSize * 30; tempSize = tempSize * 30;
size = tempSize.toFixed(1); size = tempSize.toFixed(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