|
|
@@ -123,13 +123,21 @@
|
|
|
<view class="circle"></view>
|
|
|
<view class="circle color"></view>
|
|
|
<view class="top_title">精选攻略 .</view>
|
|
|
- <view class="top_msg">宝藏分享社区</view>
|
|
|
+ <view class="top_msg">一部手机畅游靖安</view>
|
|
|
<view class="top_more" @click="handleGoPage">查看更多 ></view>
|
|
|
</view>
|
|
|
- <swiper indicator-dots indicator-color="#BBD8FE" indicator-active-color="#1E7DFB" circular :interval="3000">
|
|
|
- <swiper-item class="body_strategy" v-for="item in bestNewsList" :key="item.id" @click="handleGoDetail(item)">
|
|
|
+ <swiper class="body_strategy" indicator-dots indicator-color="#BBD8FE" indicator-active-color="#1E7DFB" circular :interval="3000" v-if="bestNewsList.length">
|
|
|
+ <swiper-item v-for="item in bestNewsList" :key="item.id" @click="handleGoDetail(item)">
|
|
|
<img v-if="item.image" class="strategy_cover" mode="aspectFill" :src="item.image" />
|
|
|
- <video v-if="item.video" class="strategy_cover" :src="item.video" :show-center-play-btn="false" :show-fullscreen-btn="false" :show-play-btn="false"></video>
|
|
|
+ <video
|
|
|
+ v-if="item.video"
|
|
|
+ class="strategy_cover"
|
|
|
+ :src="item.video"
|
|
|
+ :controls="false"
|
|
|
+ :show-center-play-btn="false"
|
|
|
+ :show-fullscreen-btn="false"
|
|
|
+ :show-play-btn="false"
|
|
|
+ ></video>
|
|
|
<view class="strategy_info">
|
|
|
<view class="info_title">{{ item.title }}</view>
|
|
|
<view class="info_tags">
|
|
|
@@ -140,11 +148,11 @@
|
|
|
</swiper-item>
|
|
|
</swiper>
|
|
|
|
|
|
- <!-- 精选推荐区域 -->
|
|
|
+ <!-- 每日推荐区域 -->
|
|
|
<view class="body_top" v-if="hotelList.length">
|
|
|
<view class="circle"></view>
|
|
|
<view class="circle color"></view>
|
|
|
- <view class="top_title">精选推荐 .</view>
|
|
|
+ <view class="top_title">每日推荐 .</view>
|
|
|
<view class="top_msg">线上订民宿,住着玩个遍</view>
|
|
|
<view class="top_more" @click="handleGoHome">查看更多 ></view>
|
|
|
</view>
|
|
|
@@ -172,12 +180,6 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
- <!-- 没有数据时展示的页面 -->
|
|
|
- <view class="noData" v-if="!hotelList.length">
|
|
|
- <img src="../../static/images/noData.png" />
|
|
|
- 暂无推荐数据
|
|
|
- </view>
|
|
|
-
|
|
|
<!-- 特产甄选区域 -->
|
|
|
<view class="body_top" v-if="goodsList.length">
|
|
|
<view class="circle"></view>
|
|
|
@@ -287,7 +289,7 @@ export default {
|
|
|
// 当前页
|
|
|
page: 1,
|
|
|
// 每页多少条
|
|
|
- rows: 4,
|
|
|
+ rows: 6,
|
|
|
// 总条数
|
|
|
total: null,
|
|
|
// 地区数组
|
|
|
@@ -300,7 +302,7 @@ export default {
|
|
|
placeIndex: 0,
|
|
|
// 选择乡镇弹窗数据
|
|
|
popList: [],
|
|
|
- // 精选民宿列表数组
|
|
|
+ // 每日推荐民宿列表数组
|
|
|
hotelList: [],
|
|
|
// 优选民宿列表数组
|
|
|
hotelList_you: [],
|
|
|
@@ -378,17 +380,6 @@ export default {
|
|
|
menus: ['shareAppMessage', 'shareTimeline']
|
|
|
})
|
|
|
},
|
|
|
- // onReachBottom() {
|
|
|
- // if (this.hotelList.length < this.total) {
|
|
|
- // this.page++
|
|
|
- // this.getHotelList_jing()
|
|
|
- // } else {
|
|
|
- // uni.showToast({
|
|
|
- // title: '没有更多数据了',
|
|
|
- // icon: 'none'
|
|
|
- // })
|
|
|
- // }
|
|
|
- // },
|
|
|
onPageScroll(e) {
|
|
|
if (e.scrollTop > 100) {
|
|
|
this.headerType = true
|
|
|
@@ -440,7 +431,7 @@ export default {
|
|
|
url: '/mhotel/articlequeryTop3ArticleLike.action'
|
|
|
})
|
|
|
// console.log(res)
|
|
|
- if (res.code == 200) {
|
|
|
+ if (res.code == 200 && res.data) {
|
|
|
this.bestNewsList = res.data
|
|
|
}
|
|
|
},
|
|
|
@@ -634,7 +625,7 @@ export default {
|
|
|
this.loading = false
|
|
|
}
|
|
|
},
|
|
|
- // 获取民宿列表 精选
|
|
|
+ // 获取民宿列表 每日推荐
|
|
|
async getHotelList_jing() {
|
|
|
const res = await this.$myRequest({
|
|
|
url: '/mhotel/ahpselectedPage.action',
|
|
|
@@ -867,7 +858,6 @@ export default {
|
|
|
.img {
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
- border-radius: 0 0 20rpx 20rpx;
|
|
|
}
|
|
|
|
|
|
.img2 {
|
|
|
@@ -904,8 +894,7 @@ export default {
|
|
|
}
|
|
|
|
|
|
.content {
|
|
|
- z-index: 1;
|
|
|
- margin: -20rpx auto 0;
|
|
|
+ margin: 20rpx auto 0;
|
|
|
width: 690rpx;
|
|
|
border-radius: 12rpx 12rpx 0 0;
|
|
|
background-color: #f2f2f2;
|
|
|
@@ -1229,16 +1218,16 @@ export default {
|
|
|
.body_strategy {
|
|
|
display: flex;
|
|
|
box-sizing: border-box;
|
|
|
- padding: 20rpx;
|
|
|
+ padding: 24rpx;
|
|
|
margin-bottom: 10rpx;
|
|
|
width: 690rpx;
|
|
|
- height: 235rpx;
|
|
|
+ height: 718rpx;
|
|
|
border-radius: 12rpx;
|
|
|
background-color: #fff;
|
|
|
|
|
|
.strategy_cover {
|
|
|
- width: 253rpx;
|
|
|
- height: 190rpx;
|
|
|
+ width: 640rpx;
|
|
|
+ height: 400rpx;
|
|
|
border-radius: 7rpx;
|
|
|
}
|
|
|
|
|
|
@@ -1248,7 +1237,7 @@ export default {
|
|
|
flex-direction: column;
|
|
|
justify-content: space-between;
|
|
|
margin-left: 20rpx;
|
|
|
- width: 500rpx;
|
|
|
+ width: 100%;
|
|
|
height: 190rpx;
|
|
|
font-size: 24rpx;
|
|
|
color: #666666;
|
|
|
@@ -1256,6 +1245,8 @@ export default {
|
|
|
|
|
|
.info_title {
|
|
|
flex: 1.5;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
font-size: 32rpx;
|
|
|
font-weight: bold;
|
|
|
color: #000;
|
|
|
@@ -1286,6 +1277,7 @@ export default {
|
|
|
-webkit-box-orient: vertical;
|
|
|
-webkit-line-clamp: 2;
|
|
|
overflow: hidden;
|
|
|
+ line-height: 35rpx;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -1466,20 +1458,6 @@ export default {
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- .noData {
|
|
|
- display: flex;
|
|
|
- flex-direction: column;
|
|
|
- justify-content: center;
|
|
|
- align-items: center;
|
|
|
- padding-bottom: 65rpx;
|
|
|
-
|
|
|
- img {
|
|
|
- margin-top: 80rpx;
|
|
|
- width: 600rpx;
|
|
|
- height: 600rpx;
|
|
|
- }
|
|
|
- }
|
|
|
}
|
|
|
}
|
|
|
|