|
@ -18,21 +18,21 @@ |
|
|
</view> |
|
|
</view> |
|
|
<div class="search-list"> |
|
|
<div class="search-list"> |
|
|
<view @click="gotoDetail(item)" v-for="(item, key) in list" :key="item.id" class="search-item"> |
|
|
<view @click="gotoDetail(item)" v-for="(item, key) in list" :key="item.id" class="search-item"> |
|
|
<image class="img" :src="showImg(item.image)" mode=""></image> |
|
|
<image class="img" :src="showImg(item.search_data.image)" mode=""></image> |
|
|
<view class="content"> |
|
|
<view class="content"> |
|
|
<view class="title text-overflowRows"> |
|
|
<view class="title text-overflowRows"> |
|
|
{{item.title}} |
|
|
{{item.title}} |
|
|
</view> |
|
|
</view> |
|
|
<!-- 美食 --> |
|
|
<!-- 美食 --> |
|
|
<view v-if="item.search_data.genre=='food'"> |
|
|
<view v-if="item.search_data.genre=='food'" style="display: flex;"> |
|
|
<view class="distance text-overflow" v-if="item.open_description"> |
|
|
<view class="distance text-overflow" v-if="item.search_data.open_description"> |
|
|
<image :src="showImg('/uploads/20241024/bd5ef34fb88f8aee2c444512a5311c79.png')" class="icon-tip"></image> |
|
|
<image :src="showImg('/uploads/20241024/bd5ef34fb88f8aee2c444512a5311c79.png')" class="icon-tip"></image> |
|
|
<text>营业时间{{ item.open_description }}</text> |
|
|
<text>营业时间:{{ item.search_data.open_description }}</text> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<view class="bottom" v-if="['ticket','hotel','pgoods'].includes(item.search_data.genre)"> |
|
|
<view class="bottom" v-if="['ticket','hotel','pgoods'].includes(item.search_data.genre)"> |
|
|
<view class="distance text-overflow" style="padding-top: 12rpx;" > |
|
|
<view class="distance text-overflow" > |
|
|
<image v-if="item.search_data.address" :src="showImg('/uploads/20241024/b7d33bf405526f09212ff3d9485e6d06.png')" class="icon-tip"></image> |
|
|
<image v-if="item.search_data.address" :src="showImg('/uploads/20241024/b7d33bf405526f09212ff3d9485e6d06.png')" class="icon-tip"></image> |
|
|
<text v-if="item.search_data.address">{{item.search_data.address}}</text> |
|
|
<text v-if="item.search_data.address">{{item.search_data.address}}</text> |
|
|
</view> |
|
|
</view> |
|
@ -42,23 +42,23 @@ |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<view class="bottom" v-else-if="item.search_data.genre=='food'"> |
|
|
<view class="bottom" v-else-if="item.search_data.genre=='food'"> |
|
|
<view class="distance text-overflow" style="padding-top: 12rpx;" > |
|
|
<view class="distance text-overflow" > |
|
|
<image :src="showImg('/uploads/20241024/bd5ef34fb88f8aee2c444512a5311c79.png')" class="icon-tip"></image> |
|
|
<image v-if="item.search_data.distance" :src="showImg('/uploads/20241024/b7d33bf405526f09212ff3d9485e6d06.png')" class="icon-tip"></image> |
|
|
<text v-if="item.search_data.distance">距您约{{ item.search_data.distance/1000 }}km</text> |
|
|
<text v-if="item.search_data.distance">距您约{{ item.search_data.distance/1000 }}km</text> |
|
|
</view> |
|
|
</view> |
|
|
<view class="price food-price"> |
|
|
<view class="price food-price"> |
|
|
{{item.money/100}} |
|
|
{{item.search_data.money/100}} |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<view class="bottom" v-else> |
|
|
<view class="bottom" v-else> |
|
|
<view class="distance text-overflow" style="padding-top: 12rpx;" > |
|
|
<view class="distance text-overflow" > |
|
|
<image :src="showImg('/uploads/20241024/852c8a49a8d78410bebd93b02c9e41a4.png')" class="icon-tip"></image> |
|
|
<image :src="showImg('/uploads/20241024/852c8a49a8d78410bebd93b02c9e41a4.png')" class="icon-tip"></image> |
|
|
<text >同里文旅</text> |
|
|
<text >同里文旅</text> |
|
|
</view> |
|
|
</view> |
|
|
<view class="view-num flex-between flex-shrink-0"> |
|
|
<view class="view-num flex-between flex-shrink-0"> |
|
|
<image :src="showImg('/uploads/20241024/4226315bfd2eac83e90746295851966a.png')" class="icon-tip"></image> |
|
|
<image :src="showImg('/uploads/20241024/4226315bfd2eac83e90746295851966a.png')" class="icon-tip"></image> |
|
|
<text class="distance">{{iem.search_data.view||0}}</text> |
|
|
<text class="distance">{{item.search_data.view||0}}</text> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
@ -81,28 +81,36 @@ |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
typeList: [{ |
|
|
typeList: [{ |
|
|
id: 'ALL', |
|
|
id: '', |
|
|
name: '全部' |
|
|
name: '全部' |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
id: 'WAIT_PAYMENT', |
|
|
id: 'ticket', |
|
|
name: '景点' |
|
|
name: '景点' |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
id: 'PAYMENT_SUCCESSFULLY', |
|
|
id: 'food', |
|
|
name: '美食' |
|
|
name: '美食' |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
id: 'PAYMENT_SUCCESSFULLY', |
|
|
id: 'hotel', |
|
|
name: '酒店' |
|
|
name: '酒店' |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
id: 'POST', |
|
|
id: 'pgoods', |
|
|
name: '资讯' |
|
|
name: '特产文创' |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
id: 'WAIT_REFUND,REFUND_SUCCESS,REFUND_REFUSAL,REFUND_ERROR,REFUND_PART', |
|
|
id: 'line', |
|
|
|
|
|
name: '特色体验' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
id: 'article', |
|
|
name: '攻略' |
|
|
name: '攻略' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
id: 'activity', |
|
|
|
|
|
name: '活动' |
|
|
} |
|
|
} |
|
|
], |
|
|
], |
|
|
typeIndex: 0, |
|
|
typeIndex: 0, |
|
@ -155,7 +163,10 @@ |
|
|
this.Post({ |
|
|
this.Post({ |
|
|
name: this.keywords, |
|
|
name: this.keywords, |
|
|
offset: this.list.length, |
|
|
offset: this.list.length, |
|
|
|
|
|
type: this.typeList[this.typeIndex].id, |
|
|
limit: 30, |
|
|
limit: 30, |
|
|
|
|
|
lon: uni.getStorageSync('location').lon || '120', |
|
|
|
|
|
lat: uni.getStorageSync('location').lat || '36', |
|
|
}, '/api/search/search').then(res => { |
|
|
}, '/api/search/search').then(res => { |
|
|
res.data.forEach(v=>{ |
|
|
res.data.forEach(v=>{ |
|
|
if (v.type!=='goods') { |
|
|
if (v.type!=='goods') { |
|
@ -267,6 +278,17 @@ |
|
|
flex: 1; |
|
|
flex: 1; |
|
|
width: 1rpx; |
|
|
width: 1rpx; |
|
|
padding-right: 10rpx; |
|
|
padding-right: 10rpx; |
|
|
|
|
|
|
|
|
|
|
|
image{ |
|
|
|
|
|
flex-shrink: 0; |
|
|
|
|
|
} |
|
|
|
|
|
text{ |
|
|
|
|
|
flex: 1; |
|
|
|
|
|
width: 1rpx; |
|
|
|
|
|
overflow: hidden; |
|
|
|
|
|
text-overflow: ellipsis; |
|
|
|
|
|
white-space: nowrap; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.price { |
|
|
.price { |
|
@ -296,6 +318,7 @@ |
|
|
align-items: center; |
|
|
align-items: center; |
|
|
justify-content: center; |
|
|
justify-content: center; |
|
|
flex-direction: column; |
|
|
flex-direction: column; |
|
|
|
|
|
margin: 26rpx 0; |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
.list-common-empty-tip{ |
|
|
.list-common-empty-tip{ |
|
|