|
@@ -33,42 +33,6 @@
|
|
|
<!-- 查找按钮区域 -->
|
|
<!-- 查找按钮区域 -->
|
|
|
<view class="search_btn" @click="handleSearch">查找</view>
|
|
<view class="search_btn" @click="handleSearch">查找</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <!-- 图标列表区域 -->
|
|
|
|
|
- <!-- <view class="icons">
|
|
|
|
|
- <view class="icon_item" @click="handleTest">
|
|
|
|
|
- <view class="item_top color">
|
|
|
|
|
- <img src="../../static/index/icon.png" />
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="item_bottom">推文</view>
|
|
|
|
|
- </view>
|
|
|
|
|
-
|
|
|
|
|
- <view class="icon_item" @click="handleTest">
|
|
|
|
|
- <view class="item_top color2">
|
|
|
|
|
- <img class="img2" src="../../static/index/icon2.png" />
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="item_bottom">周边</view>
|
|
|
|
|
- </view>
|
|
|
|
|
-
|
|
|
|
|
- <view class="icon_item" @click="handleGoSetMeal">
|
|
|
|
|
- <view class="item_top color3">
|
|
|
|
|
- <img class="img3" src="../../static/index/icon3.png" />
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="item_bottom">套餐</view>
|
|
|
|
|
- </view>
|
|
|
|
|
-
|
|
|
|
|
- <view class="icon_item" @click="handleTest">
|
|
|
|
|
- <view class="item_top color4">
|
|
|
|
|
- <img src="../../static/index/icon4.png" />
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="item_bottom">招商</view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="icon_item" @click="handleTest">
|
|
|
|
|
- <view class="item_top color5">
|
|
|
|
|
- <img src="../../static/index/icon5.png" />
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="item_bottom">其他</view>
|
|
|
|
|
- </view>
|
|
|
|
|
- </view> -->
|
|
|
|
|
|
|
|
|
|
<!-- 轮播图区域 -->
|
|
<!-- 轮播图区域 -->
|
|
|
<swiper class="swiper" indicator-dots circular indicator-color="#BBD8FE" indicator-active-color="#1E7DFB" autoplay interval="3000" v-if="townList.length">
|
|
<swiper class="swiper" indicator-dots circular indicator-color="#BBD8FE" indicator-active-color="#1E7DFB" autoplay interval="3000" v-if="townList.length">
|
|
@@ -95,6 +59,36 @@
|
|
|
</swiper>
|
|
</swiper>
|
|
|
|
|
|
|
|
<view class="body">
|
|
<view class="body">
|
|
|
|
|
+ <!-- 优选民宿区域 -->
|
|
|
|
|
+ <view class="body_top">
|
|
|
|
|
+ <view class="circle"></view>
|
|
|
|
|
+ <view class="circle color"></view>
|
|
|
|
|
+ <view class="top_title">优选民宿 .</view>
|
|
|
|
|
+ <view class="top_msg">特色优选民宿,让旅途充满乐趣</view>
|
|
|
|
|
+ <view class="top_more" @click="handleGoHome">
|
|
|
|
|
+ 更多
|
|
|
|
|
+ <img src="https://chtech.ncjti.edu.cn/hotelReservation/image/13.png" />
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="body_list">
|
|
|
|
|
+ <!-- 每一个民宿区域 -->
|
|
|
|
|
+ <view class="list_item" v-for="item in hotelList.slice(0, 4)" :key="item.id" @click="goPageDetail(item)">
|
|
|
|
|
+ <image class="item-img" :src="item.coverImg" mode="scaleToFill"></image>
|
|
|
|
|
+ <view class="descrition">
|
|
|
|
|
+ <text class="title">{{ item.hotel_name }}</text>
|
|
|
|
|
+ <text class="type">{{ item.hTypeName }}</text>
|
|
|
|
|
+ <text class="distance" v-if="showdDistance">距您直线{{ item.distance }}公里</text>
|
|
|
|
|
+ <view class="detail">
|
|
|
|
|
+ <img class="img" src="../../static/index/hotel.png" />
|
|
|
|
|
+ <view class="price">
|
|
|
|
|
+ <text class="txt1">¥{{ item.min_price }}</text>
|
|
|
|
|
+ <text class="txt2">起</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+
|
|
|
<!-- 精选攻略区域 -->
|
|
<!-- 精选攻略区域 -->
|
|
|
<view class="body_top" v-if="bestNewsInfo">
|
|
<view class="body_top" v-if="bestNewsInfo">
|
|
|
<view class="circle"></view>
|
|
<view class="circle"></view>
|
|
@@ -107,7 +101,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view v-if="bestNewsInfo" class="body_strategy" @click="handleGoDetail(bestNewsInfo)">
|
|
<view v-if="bestNewsInfo" class="body_strategy" @click="handleGoDetail(bestNewsInfo)">
|
|
|
- <img v-if="bestNewsInfo.image" class="strategy_cover" mode="aspectfill" :src="bestNewsInfo.image" />
|
|
|
|
|
|
|
+ <img v-if="bestNewsInfo.image" class="strategy_cover" mode="aspectFill" :src="bestNewsInfo.image" />
|
|
|
<video
|
|
<video
|
|
|
v-if="bestNewsInfo.video"
|
|
v-if="bestNewsInfo.video"
|
|
|
class="strategy_cover"
|
|
class="strategy_cover"
|
|
@@ -139,14 +133,47 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
- <view v-for="item in newsList" :key="item.id" class="body_strategy" @click="handleGoNews(item)">
|
|
|
|
|
- <uv-image width="253rpx" height="190rpx" radius="8rpx" mode="aspectFill" :src="item.url" />
|
|
|
|
|
- <view class="strategy_info">
|
|
|
|
|
- <view class="info_title2">{{ item.title ? item.title : '无标题' }}</view>
|
|
|
|
|
- <view class="info_desc">
|
|
|
|
|
- {{ item.desc }}
|
|
|
|
|
|
|
+ <!-- 招商资讯轮播图 -->
|
|
|
|
|
+ <uni-swiper-dot :info="newsList" mode="round" :dotsStyles="dotsStyles" :current="current">
|
|
|
|
|
+ <swiper circular autoplay interval="3000" class="body_news" @change="changeDot">
|
|
|
|
|
+ <swiper-item v-for="item in newsList" :key="item.id" @click="handleGoNews(item)">
|
|
|
|
|
+ <uv-image width="633rpx" height="332rpx" radius="8rpx" mode="aspectFill" :src="item.url" />
|
|
|
|
|
+ <view class="news_title">
|
|
|
|
|
+ {{ item.title ? item.title : '无标题' }}
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="news_desc">
|
|
|
|
|
+ {{ item.desc }}
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <mp-html v-if="item.showHtml" @load="htmlLoad(item)" :ref="item.id + 'html'" :content="item.content" />
|
|
|
|
|
+ </swiper-item>
|
|
|
|
|
+ </swiper>
|
|
|
|
|
+ </uni-swiper-dot>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 特产甄选区域 -->
|
|
|
|
|
+ <view class="body_top">
|
|
|
|
|
+ <view class="circle"></view>
|
|
|
|
|
+ <view class="circle color"></view>
|
|
|
|
|
+ <view class="top_title">特产甄选 .</view>
|
|
|
|
|
+ <view class="top_msg">明优推荐,土的自然,购的放心</view>
|
|
|
|
|
+ <view class="top_more">
|
|
|
|
|
+ 更多
|
|
|
|
|
+ <img src="https://chtech.ncjti.edu.cn/hotelReservation/image/13.png" />
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+
|
|
|
|
|
+ <view class="body_list">
|
|
|
|
|
+ <!-- 每一个特产区域 -->
|
|
|
|
|
+ <view class="item_goods" v-for="item in goodsList" :key="item.id">
|
|
|
|
|
+ <img class="goods_img" mode="acpectFill" :src="item.imgUrl" />
|
|
|
|
|
+ <view class="goods_name">{{ item.name }}</view>
|
|
|
|
|
+
|
|
|
|
|
+ <view class="goods_detail">
|
|
|
|
|
+ <img class="img" src="../../static/index/goods.png" />
|
|
|
|
|
+ <view class="price">
|
|
|
|
|
+ <text class="txt1">¥{{ item.price }}</text>
|
|
|
|
|
+ <text class="txt2">起</text>
|
|
|
|
|
+ </view>
|
|
|
</view>
|
|
</view>
|
|
|
- <mp-html v-if="item.showHtml" @load="htmlLoad(item)" :ref="item.id + 'html'" :content="item.content" />
|
|
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
@@ -276,7 +303,41 @@ export default {
|
|
|
// 招商资讯列表
|
|
// 招商资讯列表
|
|
|
newsList: [],
|
|
newsList: [],
|
|
|
// 精选攻略数据
|
|
// 精选攻略数据
|
|
|
- bestNewsInfo: null
|
|
|
|
|
|
|
+ bestNewsInfo: null,
|
|
|
|
|
+ // 招商资讯轮播图指示点样式
|
|
|
|
|
+ dotsStyles: {
|
|
|
|
|
+ backgroundColor: '#BBD8FE',
|
|
|
|
|
+ selectedBackgroundColor: '#1E7DFB',
|
|
|
|
|
+ border: 'none',
|
|
|
|
|
+ selectedBorder: 'none'
|
|
|
|
|
+ },
|
|
|
|
|
+ current: 0,
|
|
|
|
|
+ goodsList: [
|
|
|
|
|
+ {
|
|
|
|
|
+ id: 1,
|
|
|
|
|
+ imgUrl: 'https://img0.baidu.com/it/u=598641720,3978772869&fm=253&fmt=auto&app=138&f=JPEG?w=600&h=447',
|
|
|
|
|
+ name: '靖安白茶',
|
|
|
|
|
+ price: 180
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ id: 2,
|
|
|
|
|
+ imgUrl: 'https://img0.baidu.com/it/u=598641720,3978772869&fm=253&fmt=auto&app=138&f=JPEG?w=600&h=447',
|
|
|
|
|
+ name: '靖安白茶',
|
|
|
|
|
+ price: 180
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ id: 3,
|
|
|
|
|
+ imgUrl: 'https://img0.baidu.com/it/u=598641720,3978772869&fm=253&fmt=auto&app=138&f=JPEG?w=600&h=447',
|
|
|
|
|
+ name: '靖安白茶',
|
|
|
|
|
+ price: 180
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ id: 4,
|
|
|
|
|
+ imgUrl: 'https://img0.baidu.com/it/u=598641720,3978772869&fm=253&fmt=auto&app=138&f=JPEG?w=600&h=447',
|
|
|
|
|
+ name: '靖安白茶',
|
|
|
|
|
+ price: 180
|
|
|
|
|
+ }
|
|
|
|
|
+ ]
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
@@ -350,7 +411,7 @@ export default {
|
|
|
url: '/mhotel/appnewlist.action',
|
|
url: '/mhotel/appnewlist.action',
|
|
|
data: {
|
|
data: {
|
|
|
page: 1,
|
|
page: 1,
|
|
|
- rows: 2
|
|
|
|
|
|
|
+ rows: 3
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
// console.log(res)
|
|
// console.log(res)
|
|
@@ -536,11 +597,7 @@ export default {
|
|
|
url: `/pages/home/home?town=${this.town}&keywords=${this.keywords}&level=${this.level}`
|
|
url: `/pages/home/home?town=${this.town}&keywords=${this.keywords}&level=${this.level}`
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- handleGoSetMeal() {
|
|
|
|
|
- uni.navigateTo({
|
|
|
|
|
- url: '/pages/setMeal/setMeal'
|
|
|
|
|
- })
|
|
|
|
|
- },
|
|
|
|
|
|
|
+
|
|
|
goPageDetail(item) {
|
|
goPageDetail(item) {
|
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
|
url: `/pages/detail/detail?id=${item.id}&distance=${item.distance}`
|
|
url: `/pages/detail/detail?id=${item.id}&distance=${item.distance}`
|
|
@@ -599,12 +656,8 @@ export default {
|
|
|
url: '/pages/home/home'
|
|
url: '/pages/home/home'
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- handleTest() {
|
|
|
|
|
- uni.showToast({
|
|
|
|
|
- title: '功能开发中',
|
|
|
|
|
- icon: 'none',
|
|
|
|
|
- mask: true
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ changeDot(e) {
|
|
|
|
|
+ this.current = e.detail.current
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -762,69 +815,6 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- .icons {
|
|
|
|
|
- display: flex;
|
|
|
|
|
- justify-content: space-around;
|
|
|
|
|
- align-items: center;
|
|
|
|
|
- margin: 20rpx auto;
|
|
|
|
|
- width: 690rpx;
|
|
|
|
|
- height: 180rpx;
|
|
|
|
|
- border-radius: 12rpx;
|
|
|
|
|
- background-color: #fff;
|
|
|
|
|
-
|
|
|
|
|
- .icon_item {
|
|
|
|
|
- display: flex;
|
|
|
|
|
- flex-direction: column;
|
|
|
|
|
- align-items: center;
|
|
|
|
|
- width: 20%;
|
|
|
|
|
-
|
|
|
|
|
- .item_top {
|
|
|
|
|
- display: flex;
|
|
|
|
|
- align-items: center;
|
|
|
|
|
- justify-content: center;
|
|
|
|
|
- width: 60rpx;
|
|
|
|
|
- height: 60rpx;
|
|
|
|
|
- border-radius: 50%;
|
|
|
|
|
-
|
|
|
|
|
- img {
|
|
|
|
|
- width: 28rpx;
|
|
|
|
|
- height: 27rpx;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- .img2 {
|
|
|
|
|
- width: 40rpx;
|
|
|
|
|
- height: 25.5rpx;
|
|
|
|
|
- }
|
|
|
|
|
- .img3 {
|
|
|
|
|
- width: 31rpx;
|
|
|
|
|
- height: 21rpx;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- .color {
|
|
|
|
|
- background-color: #d8e8e8;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- .color2 {
|
|
|
|
|
- background-color: #c2f2d5;
|
|
|
|
|
- }
|
|
|
|
|
- .color3 {
|
|
|
|
|
- background-color: #f7d4ba;
|
|
|
|
|
- }
|
|
|
|
|
- .color4 {
|
|
|
|
|
- background-color: #fae1e2;
|
|
|
|
|
- }
|
|
|
|
|
- .color5 {
|
|
|
|
|
- background-color: #d0e0f2;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- .item_bottom {
|
|
|
|
|
- margin-top: 6rpx;
|
|
|
|
|
- font-size: 28rpx;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
.swiper {
|
|
.swiper {
|
|
|
margin: 20rpx auto 0;
|
|
margin: 20rpx auto 0;
|
|
|
width: 690rpx;
|
|
width: 690rpx;
|
|
@@ -976,7 +966,7 @@ export default {
|
|
|
.tag {
|
|
.tag {
|
|
|
margin-right: 10rpx;
|
|
margin-right: 10rpx;
|
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
|
- padding: 0 5rpx;
|
|
|
|
|
|
|
+ padding: 0 12rpx;
|
|
|
height: 35rpx;
|
|
height: 35rpx;
|
|
|
color: #1e7dfb;
|
|
color: #1e7dfb;
|
|
|
font-size: 20rpx;
|
|
font-size: 20rpx;
|
|
@@ -1079,6 +1069,88 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ .item_goods {
|
|
|
|
|
+ margin-bottom: 20rpx;
|
|
|
|
|
+ width: 335rpx;
|
|
|
|
|
+ height: 367rpx;
|
|
|
|
|
+ border-radius: 10rpx;
|
|
|
|
|
+ background-color: #fff;
|
|
|
|
|
+ overflow: hidden;
|
|
|
|
|
+
|
|
|
|
|
+ .goods_img {
|
|
|
|
|
+ width: 335rpx;
|
|
|
|
|
+ height: 223rpx;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .goods_name {
|
|
|
|
|
+ margin: 18rpx 0 18rpx 30rpx;
|
|
|
|
|
+ font-size: 28rpx;
|
|
|
|
|
+ font-weight: bold;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .goods_detail {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ flex-direction: row;
|
|
|
|
|
+ justify-content: space-between;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ padding: 0 20rpx 20rpx 20rpx;
|
|
|
|
|
+ color: rgba(0, 0, 0, 1);
|
|
|
|
|
+
|
|
|
|
|
+ .img {
|
|
|
|
|
+ width: 40rpx;
|
|
|
|
|
+ height: 40rpx;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .price {
|
|
|
|
|
+ .txt1 {
|
|
|
|
|
+ font-size: 36rpx;
|
|
|
|
|
+ font-weight: 600;
|
|
|
|
|
+ color: rgba(255, 87, 51, 1);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .txt2 {
|
|
|
|
|
+ font-size: 24rpx;
|
|
|
|
|
+ font-weight: 400;
|
|
|
|
|
+ color: #a6a6a6;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .score {
|
|
|
|
|
+ font-size: 24rpx;
|
|
|
|
|
+ font-weight: 400;
|
|
|
|
|
+ padding-top: 10rpx;
|
|
|
|
|
+ color: rgba(166, 166, 166, 1);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .body_news {
|
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
|
+ padding: 25rpx;
|
|
|
|
|
+ width: 690rpx;
|
|
|
|
|
+ height: 566rpx;
|
|
|
|
|
+ border-radius: 12rpx;
|
|
|
|
|
+ background-color: #fff;
|
|
|
|
|
+
|
|
|
|
|
+ .news_title {
|
|
|
|
|
+ margin: 20rpx 0;
|
|
|
|
|
+ font-size: 32rpx;
|
|
|
|
|
+ font-weight: bold;
|
|
|
|
|
+ overflow: hidden;
|
|
|
|
|
+ text-overflow: ellipsis;
|
|
|
|
|
+ white-space: nowrap;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .news_desc {
|
|
|
|
|
+ font-size: 24rpx;
|
|
|
|
|
+ color: #666666;
|
|
|
|
|
+ display: -webkit-box;
|
|
|
|
|
+ -webkit-box-orient: vertical;
|
|
|
|
|
+ -webkit-line-clamp: 2;
|
|
|
|
|
+ overflow: hidden;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.noData {
|
|
.noData {
|
|
@@ -1209,4 +1281,4 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-</style>
|
|
|
|
|
|
|
+</style>
|