Commit 91834b81 authored by zhengke's avatar zhengke

增加判断

parent 62435119
......@@ -476,78 +476,80 @@
</div>
<div v-if="(showType>=4)&&loadNone==false&&vshowC" class="newFeature" v-html="feature.featureHtml"></div>
<div class="newtripList" v-for="(item,index) in tripList" :key="index">
<template v-if="item.dayNum<10">
<div class="newTripFly" style="margin-bottom:10px;">
DAY 0{{item.dayNum}}
</div>
</template>
<template v-else>
DAY {{item.dayNum}}
</template>
<div class="newTripDateTime">{{item.dateTime}}</div>
<div class="newTripFly" v-if="item.title" v-html="getTitle(item.title)" :class="getTitle(item.title)!=''?'newTripKuang':''">
</div>
<div class="newTripDay" style="margin-bottom:0;" v-for="(subItem,subIndex) in item.details" :key="subIndex">
<div style="line-height:2;min-height:80px;">
<span class="newTripTutle">{{getTitle(subItem.title)}}:</span>
<span><div v-html="subItem.content"></div></span>
<div v-if="vshowD">
<div class="newtripList" v-for="(item,index) in tripList" :key="index">
<template v-if="item.dayNum<10">
<div class="newTripFly" style="margin-bottom:10px;">
DAY 0{{item.dayNum}}
</div>
</div>
<div class="newTripDay">
<div class="warmTipsTitle" style="margin-top:0;">温馨提示:</div>
<template v-if="item.tips.length>0">
<div class="warmTipsContent">
<template v-for="(sItem,sIndex) in item.tips">
<div class="newTripWarm" v-html="sItem.content" :key="sIndex"></div>
</template>
</div>
</template>
</div>
<div>
<table class="newTripTable" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="width:7%;border-right-style:none;">
<label>酒店:</label>
</td>
<td style="width:40%;border-left-style:none;">
<template v-if='item.jiu2.length>0'>
<span v-for="(t,k) in item.jiu2" style="cursor: pointer" :key="k">
{{k==item.jiu2.length-1? (t.newTitle!=''&& t.newTitle!=t.name?t.newTitle:t.name) : (t.newTitle!=''&& t.newTitle!=t.name?t.newTitle:t.name)+' / ' }}
</span>
</template>
<template v-if="item.jiu2.length>0&&item.jiu2[0].name!=''">
{{getHotelSuffix(item)}}
</template>
</td>
<td style="width:7%;border-right-style:none;">
<div class="tripLeftCan" style="vertical-align:top;">
<label>用餐:</label>
</div>
<template v-else>
DAY {{item.dayNum}}
</template>
<div class="newTripDateTime">{{item.dateTime}}</div>
<div class="newTripFly" v-if="item.title" v-html="getTitle(item.title)" :class="getTitle(item.title)!=''?'newTripKuang':''">
</div>
<div class="newTripDay" style="margin-bottom:0;" v-for="(subItem,subIndex) in item.details" :key="subIndex">
<div style="line-height:2;min-height:80px;">
<span class="newTripTutle">{{getTitle(subItem.title)}}:</span>
<span><div v-html="subItem.content"></div></span>
</div>
</div>
<div class="newTripDay">
<div class="warmTipsTitle" style="margin-top:0;">温馨提示:</div>
<template v-if="item.tips.length>0">
<div class="warmTipsContent">
<template v-for="(sItem,sIndex) in item.tips">
<div class="newTripWarm" v-html="sItem.content" :key="sIndex"></div>
</template>
</div>
</template>
</div>
<div>
<table class="newTripTable" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="width:7%;border-right-style:none;">
<label>酒店:</label>
</td>
<td style="width:27%;border-left-style:none;">
<div class="tripRightCan">
<div>早({{item.can.breakfirst}})</div>
<div>中({{item.can.lanuch}})</div>
<div>晚({{item.can.dinner}})</div>
</div>
</td>
<td style="width:7%;border-right-style:none;">
<label>交通:</label>
</td>
<td style="width:15%;border-left-style:none;">
<template v-if="item.trafficArray&& item.trafficArray.length>0" v-for="(subItem,subIndex) in item.trafficArray">
<span>{{subItem}}</span>
<template v-if="subIndex!=item.trafficArray.length-1">
<span></span>
</template>
</template>
</td>
</tr>
</table>
</div>
<div class="newTripImgList" v-if="vshowK">
<newTripCommon :day="item.details"></newTripCommon>
<td style="width:40%;border-left-style:none;">
<template v-if='item.jiu2.length>0'>
<span v-for="(t,k) in item.jiu2" style="cursor: pointer" :key="k">
{{k==item.jiu2.length-1? (t.newTitle!=''&& t.newTitle!=t.name?t.newTitle:t.name) : (t.newTitle!=''&& t.newTitle!=t.name?t.newTitle:t.name)+' / ' }}
</span>
</template>
<template v-if="item.jiu2.length>0&&item.jiu2[0].name!=''">
{{getHotelSuffix(item)}}
</template>
</td>
<td style="width:7%;border-right-style:none;">
<div class="tripLeftCan" style="vertical-align:top;">
<label>用餐:</label>
</div>
</td>
<td style="width:27%;border-left-style:none;">
<div class="tripRightCan">
<div>早({{item.can.breakfirst}})</div>
<div>中({{item.can.lanuch}})</div>
<div>晚({{item.can.dinner}})</div>
</div>
</td>
<td style="width:7%;border-right-style:none;">
<label>交通:</label>
</td>
<td style="width:15%;border-left-style:none;">
<template v-if="item.trafficArray&& item.trafficArray.length>0" v-for="(subItem,subIndex) in item.trafficArray">
<span>{{subItem}}</span>
<template v-if="subIndex!=item.trafficArray.length-1">
<span></span>
</template>
</template>
</td>
</tr>
</table>
</div>
<div class="newTripImgList" v-if="vshowK">
<newTripCommon :day="item.details"></newTripCommon>
</div>
</div>
</div>
</div>
......
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