|
@ -65,13 +65,13 @@ |
|
|
<!-- 旅游助手 --> |
|
|
<!-- 旅游助手 --> |
|
|
<image src="https://static.ticket.sz-trip.com/changshu/images/index/title3.png" mode="heightFix" class="title-img"></image> |
|
|
<image src="https://static.ticket.sz-trip.com/changshu/images/index/title3.png" mode="heightFix" class="title-img"></image> |
|
|
<view class="flex-between"> |
|
|
<view class="flex-between"> |
|
|
<image :src="item.img" mode="aspectFill" class="travel-img" v-for="(item,index) in travelList" :key="index"></image> |
|
|
<image :src="item.img" mode="aspectFill" class="travel-img" v-for="(item,index) in travelList" :key="index" @click="exploit"></image> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<!-- 公共服务 --> |
|
|
<!-- 公共服务 --> |
|
|
<image src="https://static.ticket.sz-trip.com/changshu/images/index/title4.png" mode="heightFix" class="title-img"></image> |
|
|
<image src="https://static.ticket.sz-trip.com/changshu/images/index/title4.png" mode="heightFix" class="title-img"></image> |
|
|
<view class="public-box"> |
|
|
<view class="public-box"> |
|
|
<view v-for="(item,index) in publicList" :key="index"> |
|
|
<view v-for="(item,index) in publicList" :key="index" @click="exploit"> |
|
|
<image :src="item.img" mode="aspectFill"></image> |
|
|
<image :src="item.img" mode="aspectFill"></image> |
|
|
<view>{{item.title}}</view> |
|
|
<view>{{item.title}}</view> |
|
|
</view> |
|
|
</view> |
|
@ -87,10 +87,9 @@ |
|
|
|
|
|
|
|
|
<view class="hot-box"> |
|
|
<view class="hot-box"> |
|
|
<view class="hot-column" v-for="(column, index) in 2" :key="index"> |
|
|
<view class="hot-column" v-for="(column, index) in 2" :key="index"> |
|
|
<view v-for="(item,index) in getColumnItems(index)" :key="index" class="hot-item" @click="gotoHotDetail(item)"> |
|
|
<view v-for="(item,indexs) in getColumnItems(index)" :key="indexs" class="hot-item" @click="gotoHotDetail(item)"> |
|
|
<view class="image-container"> |
|
|
<view class="image-container"> |
|
|
<image :src="showImgs(item.headimg || item.head_img)" mode="widthFix" class="hot-img" v-if="index == 1 || index == 5"></image> |
|
|
<image :src="item.src" mode="widthFix" class="hot-img"></image> |
|
|
<image :src="showImgs(item.headimg)" mode="widthFix" class="hot-img" v-else></image> |
|
|
|
|
|
<image src="https://static.ticket.sz-trip.com/changshu/images/index/play.png" mode="" class="play-img" v-if="typeIndex == 5"></image> |
|
|
<image src="https://static.ticket.sz-trip.com/changshu/images/index/play.png" mode="" class="play-img" v-if="typeIndex == 5"></image> |
|
|
</view> |
|
|
</view> |
|
|
<view class="hot-content"> |
|
|
<view class="hot-content"> |
|
@ -162,6 +161,7 @@ |
|
|
title: '一卡游玩', |
|
|
title: '一卡游玩', |
|
|
img: 'https://static.ticket.sz-trip.com/changshu/images/index/ykyw.png', |
|
|
img: 'https://static.ticket.sz-trip.com/changshu/images/index/ykyw.png', |
|
|
path: '', |
|
|
path: '', |
|
|
|
|
|
shortLink: '#小程序://旅游年卡/bgJOy4DGeuOXBMg', |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
title: '活动日历', |
|
|
title: '活动日历', |
|
@ -184,7 +184,7 @@ |
|
|
winnowList: [ |
|
|
winnowList: [ |
|
|
{ |
|
|
{ |
|
|
title: '景点', |
|
|
title: '景点', |
|
|
id: '619', |
|
|
id: '5', |
|
|
spanColor: '#529AE7', |
|
|
spanColor: '#529AE7', |
|
|
list: [], |
|
|
list: [], |
|
|
url: { |
|
|
url: { |
|
@ -194,7 +194,7 @@ |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
title: '特产', |
|
|
title: '特产', |
|
|
id: '620', |
|
|
id: '11', |
|
|
spanColor: '#EE710C', |
|
|
spanColor: '#EE710C', |
|
|
list: [], |
|
|
list: [], |
|
|
url: { |
|
|
url: { |
|
@ -286,6 +286,11 @@ |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
goPath (item) { |
|
|
goPath (item) { |
|
|
|
|
|
if (item.shortLink) { |
|
|
|
|
|
uni.navigateToMiniProgram({ |
|
|
|
|
|
shortLink: item.shortLink |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
if (item.url) { |
|
|
if (item.url) { |
|
|
let isJDSZ = this.goJDSZMiniProgram(item.url) |
|
|
let isJDSZ = this.goJDSZMiniProgram(item.url) |
|
|
if (isJDSZ) return |
|
|
if (isJDSZ) return |
|
@ -297,6 +302,13 @@ |
|
|
if(item.path) { |
|
|
if(item.path) { |
|
|
this.gotoPath(item.path) |
|
|
this.gotoPath(item.path) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if(!item.url && !item.path && !item.shortLink) { |
|
|
|
|
|
uni.showToast({ |
|
|
|
|
|
title: '开发中', |
|
|
|
|
|
icon: 'none' |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// banner跳转 |
|
|
// banner跳转 |
|
@ -379,6 +391,17 @@ |
|
|
getColumnItems(columnIndex) { |
|
|
getColumnItems(columnIndex) { |
|
|
const columnItems = []; |
|
|
const columnItems = []; |
|
|
this.hotList.forEach((item, index) => { |
|
|
this.hotList.forEach((item, index) => { |
|
|
|
|
|
switch (this.typeIndex) { |
|
|
|
|
|
case 1: |
|
|
|
|
|
item.src = this.showImg(item.image); |
|
|
|
|
|
break; |
|
|
|
|
|
case 5: |
|
|
|
|
|
item.src = this.showImg(item.head_img); |
|
|
|
|
|
break; |
|
|
|
|
|
default: |
|
|
|
|
|
item.src = item.headimg; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if (index % 2 === columnIndex) { |
|
|
if (index % 2 === columnIndex) { |
|
|
columnItems.push(item); |
|
|
columnItems.push(item); |
|
|
} |
|
|
} |
|
@ -408,13 +431,13 @@ |
|
|
}, |
|
|
}, |
|
|
// 获取景点和特产 |
|
|
// 获取景点和特产 |
|
|
getWinnowList() { |
|
|
getWinnowList() { |
|
|
this.winnowList.map(item => { |
|
|
this.winnowList.map((item,index) => { |
|
|
this.Post({ |
|
|
this.Post({ |
|
|
apiType: 'jdsz', |
|
|
apiType: 'jdsz', |
|
|
tag_id: item.id, |
|
|
tag_id: item.id, |
|
|
offset: 0, |
|
|
offset: 0, |
|
|
limit: 3, |
|
|
limit: 3, |
|
|
}, '/api/product/get_product_by_tag').then(res => { |
|
|
}, index ? '/api/product/get_product_by_tag_partners' : '/api/scene/get_scene_by_tag_partners').then(res => { |
|
|
if(res) { |
|
|
if(res) { |
|
|
item.list = res.data.list |
|
|
item.list = res.data.list |
|
|
} |
|
|
} |
|
@ -467,6 +490,18 @@ |
|
|
this.pageNo++ |
|
|
this.pageNo++ |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
|
|
|
}else if(this.typeIndex == 2 || this.typeIndex == 4) { |
|
|
|
|
|
this.Post({ |
|
|
|
|
|
apiType: 'jdsz', |
|
|
|
|
|
tag_id: this.hotType[this.typeIndex].id, |
|
|
|
|
|
offset: this.hotList.length, |
|
|
|
|
|
limit: this.limit, |
|
|
|
|
|
}, '/api/product/get_product_by_tag_partners').then(res => { |
|
|
|
|
|
if(res) { |
|
|
|
|
|
if(res.data.list.length < this.limit) this.isLoading = true |
|
|
|
|
|
this.hotList = this.hotList.concat(res.data.list) |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
}else { |
|
|
}else { |
|
|
this.Post({ |
|
|
this.Post({ |
|
|
apiType: 'jdsz', |
|
|
apiType: 'jdsz', |
|
|