作者 wangxuyu

滚动

@@ -89,7 +89,8 @@ Page({ @@ -89,7 +89,8 @@ Page({
89 ast:'', 89 ast:'',
90 scrolltop:0, 90 scrolltop:0,
91 stock:-1, 91 stock:-1,
92 - xiaban:{} 92 + xiaban:{},
  93 + resolve:false
93 }, 94 },
94 //获取购物车数量 95 //获取购物车数量
95 fetchCartNum() { 96 fetchCartNum() {
@@ -857,8 +858,9 @@ Page({ @@ -857,8 +858,9 @@ Page({
857 } 858 }
858 if (e.scrollTop > 180) { 859 if (e.scrollTop > 180) {
859 that.setData({ 860 that.setData({
860 - maodianFlag: true  
861 - }) 861 + maodianFlag: true,
  862 + resolve:true
  863 + })
862 } 864 }
863 // if(that.data.nav!==0){ 865 // if(that.data.nav!==0){
864 // const query = wx.createSelectorQuery() 866 // const query = wx.createSelectorQuery()
1 -<view class='big_page'> 1 +<view class='big_page {{resolve?"active":""}}'>
2 <view class='page'> 2 <view class='page'>
3 <view class='back_top' wx:if='{{floorstatus}}' bindtap='goTop'> 3 <view class='back_top' wx:if='{{floorstatus}}' bindtap='goTop'>
4 <view class='iconfont icon-fanhuidingbu'></view> 4 <view class='iconfont icon-fanhuidingbu'></view>
@@ -578,7 +578,7 @@ @@ -578,7 +578,7 @@
578 </view> 578 </view>
579 <view class='fixed_box {{maodianFlag?"active":""}}'> 579 <view class='fixed_box {{maodianFlag?"active":""}}'>
580 <view class='huise'></view> 580 <view class='huise'></view>
581 - <scroll-view scroll-y='true' bindscrolltoupper='upper' scroll-into-view="NAV{{status}}" scroll-with-animation='true' class='scroll_view_class' bindscroll='checkTop'> 581 + <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">
582 <view class='nav_type_box active'> 582 <view class='nav_type_box active'>
583 <view class='nav_type_left'> 583 <view class='nav_type_left'>
584 <view class='nav_type {{wangge==0?"type_active":""}}' bindtap='changeWangGe0'> 584 <view class='nav_type {{wangge==0?"type_active":""}}' bindtap='changeWangGe0'>
@@ -14,6 +14,10 @@ page { @@ -14,6 +14,10 @@ page {
14 .big_page{ 14 .big_page{
15 min-height: 100% 15 min-height: 100%
16 } 16 }
  17 +.big_box.active{
  18 + height: 100%;
  19 + overflow: hidden
  20 +}
17 .page { 21 .page {
18 width: 100%; 22 width: 100%;
19 height: 100%; 23 height: 100%;