Browse Source

首页修改

master
chenkainan 5 months ago
parent
commit
183cf85e65
  1. 15
      pages/index/index.vue

15
pages/index/index.vue

@ -69,7 +69,7 @@
</view> </view>
<view class="hot-content"> <view class="hot-content">
<view class="title text-overflowRows">{{item.title || item.goods.title}}</view> <view class="title text-overflowRows">{{item.title || item.goods.title}}</view>
<view class="subtitle" v-if="hotIndex"> <view class="subtitle" v-if="hotIndex && item.genre == 'video'">
<image src="https://static.ticket.sz-trip.com/tongli/images/index/user.png" mode="aspectFill"></image> <image src="https://static.ticket.sz-trip.com/tongli/images/index/user.png" mode="aspectFill"></image>
{{item.author}} {{item.author}}
</view> </view>
@ -283,8 +283,17 @@
}, },
gotoHotDetail(item) { gotoHotDetail(item) {
if(this.hotIndex == 1) { if(this.hotIndex == 1) {
//
this.gotoVideo(item) if(item.genre == 'video') {
//
this.gotoVideo(item)
}else {
//
uni.navigateTo({
url: '/subPackages/letter/detail?id=' + item.id
})
}
}else { }else {
uni.navigateTo({ uni.navigateTo({
url: '/subPackages/techan/detail?id=' + item.goods_id url: '/subPackages/techan/detail?id=' + item.goods_id

Loading…
Cancel
Save