作者 wangxuyu

滚动

... ... @@ -89,7 +89,8 @@ Page({
ast:'',
scrolltop:0,
stock:-1,
xiaban:{}
xiaban:{},
resolve:false
},
//获取购物车数量
fetchCartNum() {
... ... @@ -857,7 +858,8 @@ Page({
}
if (e.scrollTop > 180) {
that.setData({
maodianFlag: true
maodianFlag: true,
resolve:true
})
}
// if(that.data.nav!==0){
... ...
<view class='big_page'>
<view class='big_page {{resolve?"active":""}}'>
<view class='page'>
<view class='back_top' wx:if='{{floorstatus}}' bindtap='goTop'>
<view class='iconfont icon-fanhuidingbu'></view>
... ... @@ -578,7 +578,7 @@
</view>
<view class='fixed_box {{maodianFlag?"active":""}}'>
<view class='huise'></view>
<scroll-view scroll-y='true' bindscrolltoupper='upper' scroll-into-view="NAV{{status}}" scroll-with-animation='true' class='scroll_view_class' bindscroll='checkTop'>
<scroll-view scroll-y='true' bindscrolltoupper='upper' scroll-into-view="NAV{{status}}" scroll-with-animation='true' class='scroll_view_class' bindscroll='checkTop' style="-webkit-overflow-scrolling:touch">
<view class='nav_type_box active'>
<view class='nav_type_left'>
<view class='nav_type {{wangge==0?"type_active":""}}' bindtap='changeWangGe0'>
... ...
... ... @@ -14,6 +14,10 @@ page {
.big_page{
min-height: 100%
}
.big_box.active{
height: 100%;
overflow: hidden
}
.page {
width: 100%;
height: 100%;
... ...