|
@@ -46,7 +46,7 @@
|
|
|
<!-- 消息 -->
|
|
|
<message-card></message-card>
|
|
|
<!-- 最新标讯 -->
|
|
|
- <home-list ref="list" @bottomSetTip="bottomSetTip"></home-list>
|
|
|
+ <home-list ref="list" @bottomSetTip="bottomSetTip" :show-set-tip="showSetTip"></home-list>
|
|
|
</div>
|
|
|
<!-- 侧边广告位 -->
|
|
|
<ad-side :config="AD.side" :scroll-status="sideStatus" :bottom-position="hasBottomSetTip ? '22%' :'18%'"></ad-side>
|
|
@@ -191,7 +191,8 @@ export default {
|
|
|
showNextFullPop: false,
|
|
|
showBottomPop: false
|
|
|
},
|
|
|
- hasBottomSetTip: false
|
|
|
+ hasBottomSetTip: false,
|
|
|
+ showSetTip: false
|
|
|
}),
|
|
|
computed: {
|
|
|
...mapGetters('user', ['isLogin']),
|
|
@@ -432,6 +433,12 @@ export default {
|
|
|
onScroll(e) {
|
|
|
const scrollTop = e.target.scrollTop
|
|
|
this.sideStatus = scrollTop < 60
|
|
|
+ // P599需求,滚动到最新咨询展示
|
|
|
+ if(this.$refs.list) {
|
|
|
+ const listRect = this.$refs.list.$el.getBoundingClientRect() || {}
|
|
|
+ const listTop = listRect.top
|
|
|
+ this.showSetTip = listTop <= scrollTop
|
|
|
+ }
|
|
|
},
|
|
|
clickHotTag(item) {
|
|
|
this.toSearchAutoSearch(item.label)
|