Commit 8eae6c2a authored by 潘永坪's avatar 潘永坪

详情bug处理

parent db9acfa2
...@@ -34,25 +34,17 @@ ...@@ -34,25 +34,17 @@
<!-- 开放时间 --> <!-- 开放时间 -->
<view class="opentime"> <view class="opentime">
<view class="middle-title">开放时间</view> <view class="middle-title">开放时间</view>
<u-table> <view class="time-list">
<u-tr v-if="!times"> <view v-if="times.length==0">
<u-td>每天</u-td>
</u-tr>
<u-tr v-if="!times">
<u-td>
{{detailData.businessStart?detailData.businessStart.substr(0,5):""}} {{detailData.businessStart?detailData.businessStart.substr(0,5):""}}
~{{detailData.businessEnd?detailData.businessEnd.substr(0,5):""}} ~{{detailData.businessEnd?detailData.businessEnd.substr(0,5):""}}
</u-td> </view>
</u-tr> <view v-for="(item,index) of times" :key="index" v-else>
<u-tr v-if="times"> <text v-for="(items,b) of item" :key="b" style="margin-right: 30rpx;">
<u-td colspan="2">开放时间</u-td>
</u-tr>
<u-tr v-for="(item,index) of times" :key="index" v-if="times">
<u-td v-for="(items,b) of item" :key="b" v-if="items">
{{items}} {{items}}
</u-td> </text>
</u-tr> </view>
</u-table> </view>
</view> </view>
<!-- 优待政策 --> <!-- 优待政策 -->
<view class="policy" v-if="policy"> <view class="policy" v-if="policy">
...@@ -111,7 +103,7 @@ export default { ...@@ -111,7 +103,7 @@ export default {
return { return {
currentNum:0,//轮播图下标 currentNum:0,//轮播图下标
showPop: false, //控制弹窗显示隐藏 showPop: false, //控制弹窗显示隐藏
times: '', //时间数组 times:[], //时间数组
policy:'', //优待政策列表 policy:'', //优待政策列表
facilities: '', //景区设施 facilities: '', //景区设施
travelTips: '' //游玩提示 travelTips: '' //游玩提示
...@@ -121,7 +113,7 @@ export default { ...@@ -121,7 +113,7 @@ export default {
detailData: { detailData: {
handler(newValue, oldValue) { handler(newValue, oldValue) {
if (newValue) { if (newValue) {
this.times = '' this.times = []
this.policy ='' this.policy =''
this.facilities = '' this.facilities = ''
this.travelTips = '' this.travelTips = ''
...@@ -208,6 +200,9 @@ export default { ...@@ -208,6 +200,9 @@ export default {
background: #fff; background: #fff;
margin-top: 24rpx; margin-top: 24rpx;
} }
.time-list>view:not(:first-child){
margin-top: 20rpx;
}
.policy{ .policy{
padding: 30rpx 16rpx; padding: 30rpx 16rpx;
background: #fff; background: #fff;
......
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
</view> </view>
</view> </view>
</checkbox-group> </checkbox-group>
<u-empty text="空空如也..." mode="list" v-if="scenicList.length == 0"></u-empty> <u-empty text="空空如也..." mode="list" v-if="scenicList.length == 0" width="320" height="320"></u-empty>
</swiper-item> </swiper-item>
<swiper-item class="swiper-item"> <swiper-item class="swiper-item">
...@@ -132,16 +132,16 @@ ...@@ -132,16 +132,16 @@
</swiper-item> </swiper-item>
<swiper-item class="swiper-item"> <swiper-item class="swiper-item">
<u-empty text="空空如也..." mode="list"></u-empty> <u-empty text="空空如也..." mode="list" width="320" height="320"></u-empty>
</swiper-item> </swiper-item>
<swiper-item class="swiper-item"> <swiper-item class="swiper-item">
<u-empty text="空空如也..." mode="list"></u-empty> <u-empty text="空空如也..." mode="list" width="320" height="320"></u-empty>
</swiper-item> </swiper-item>
</swiper> </swiper>
</view> </view>
<view class="bottom"> <view class="bottom">
<view class="bottom-left" @click="showCustomer()"> <view class="bottom-left" @click="showCustomer()">
<u-icon name="chat" size="36" style="margin-right: 8rpx; position: relative; top: 2rpx"></u-icon> <u-icon name="chat" size="36"></u-icon>
客服 客服
</view> </view>
<view class="bottom-middle"> <view class="bottom-middle">
...@@ -789,6 +789,11 @@ export default { ...@@ -789,6 +789,11 @@ export default {
justify-content: space-between; justify-content: space-between;
padding: 0 32rpx; padding: 0 32rpx;
} }
.bottom-left{
display: flex;
flex-direction: column;
align-items: center;
}
.bottom-middle { .bottom-middle {
position: relative; position: relative;
padding: 0 40rpx; padding: 0 40rpx;
......
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