|
|
@ -3,11 +3,11 @@ |
|
|
|
<!-- 头部banner --> |
|
|
|
<view class="top-box"> |
|
|
|
<!-- 搜索 --> |
|
|
|
<view class="search-box"> |
|
|
|
<!-- <view class="search-box"> |
|
|
|
<image src="https://static.ticket.sz-trip.com/cgc/images/index/search.png" mode=""></image> |
|
|
|
<span>|</span> |
|
|
|
搜一搜您想要的 |
|
|
|
</view> |
|
|
|
</view> --> |
|
|
|
|
|
|
|
<swiper class="top-banner" :circular="true" :interval="6000" |
|
|
|
:duration="800" :indicator-dots="false" :autoplay="true" v-if="topBanner"> |
|
|
@ -68,7 +68,7 @@ |
|
|
|
<image src="https://static.ticket.sz-trip.com/cgc/images/index/plays.png" mode="widthFix" class="play-img" v-if="hotIndex" lazy-load="true"></image> |
|
|
|
</view> |
|
|
|
<view class="hot-content"> |
|
|
|
<view class="title text-overflowRows">{{item.title || item.name}}</view> |
|
|
|
<view class="title text-overflowRows">{{item.title || item.goods.title}}</view> |
|
|
|
<view class="subtitle" v-if="hotIndex"> |
|
|
|
<image src="https://static.ticket.sz-trip.com/tongli/images/index/user.png" mode="aspectFill"></image> |
|
|
|
{{item.author}} |
|
|
@ -237,7 +237,7 @@ |
|
|
|
item.src = this.showImg(item.image); |
|
|
|
break; |
|
|
|
default: |
|
|
|
item.src = this.showImg(item.image); |
|
|
|
item.src = this.showImg(item.goods.image); |
|
|
|
} |
|
|
|
|
|
|
|
if (index % 2 === columnIndex) { |
|
|
@ -267,14 +267,12 @@ |
|
|
|
}) |
|
|
|
}else { |
|
|
|
this.Post({ |
|
|
|
type_id: this.hotType[this.hotIndex].id, |
|
|
|
tag_id: 51, |
|
|
|
offset: this.hotList.length, |
|
|
|
limit: this.limit |
|
|
|
},'/api/Article/getArticleByType').then(res => { |
|
|
|
if(res) { |
|
|
|
if(res.data.length < this.limit) this.isLoading = true |
|
|
|
this.hotList = this.hotList.concat(res.data) |
|
|
|
} |
|
|
|
limit: this.limit, |
|
|
|
},'/api/tag/getGoodsByTagId').then(res => { |
|
|
|
if(res.data.length < this.limit) this.isLoading = true |
|
|
|
this.hotList = this.hotList.concat(res.data) |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
@ -288,7 +286,9 @@ |
|
|
|
// 视频 |
|
|
|
this.gotoVideo(item) |
|
|
|
}else { |
|
|
|
|
|
|
|
uni.navigateTo({ |
|
|
|
url: '/subPackages/techan/detail?id=' + item.goods_id |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|