修改首页下拉

This commit is contained in:
魏啾
2024-05-30 14:07:19 +08:00
parent 63d85521eb
commit a4d0bc8177
6 changed files with 30 additions and 40 deletions

View File

@@ -50,7 +50,7 @@
<!-- 今日上线 -->
<todaylist :todayList='hometoplist.todayList' :salesList='hometoplist.salesList'></todaylist>
<!-- 类目 -->
<view class="fourcontent flex-between">
<view class="fourcontent flex-between" v-if="!isFixedTop">
<view class="fourcontent_item flex-start" v-for="(item,index) in hometoplist.menu" :key="index"
@click="viewHistory(item,index)"
:class="!item.isChild && viewHistoryindex == index ? 'fourcontent_itemactev':''">
@@ -60,7 +60,7 @@
</view>
</view>
<view class="fivecontent">
<view class="fivecontent flex-colum">
<!-- <view class="fivecontent" :style="{'height':seighT + 'px'}"> -->
<!-- <scroll-view :style="{'height':seighT + 'px'}" scroll-y @scrolltolower="loadMore"
scroll-with-animation> -->
@@ -258,7 +258,7 @@
quilt: ''
}, //下拉点击的数据
form: {
address: '西安市', //地址
address: '', //地址
type: '', //品类
orderBy: '', //1.理我最近 2.销量优先 3.价格优先
other: '', //附近1KM 1选中 0不选中
@@ -388,7 +388,7 @@
this.seighT = data.windowHeight;
this.$u.getRect('.fourcontent').then(res => {
console.log(res.top)
this.Topdistance = res.top - res.height - 22 //滚动距离
this.Topdistance = res.top - res.height //滚动距离
})
}
})