Browse Source

修改滚动条

master
liaoxinyu 2 years ago
parent
commit
fce06a882e
  1. 12
      pages/category/index.vue

12
pages/category/index.vue

@ -257,6 +257,10 @@
const curPageLen = list.data.length const curPageLen = list.data.length
const totalSize = list.total const totalSize = list.total
app.mescroll.endBySize(curPageLen, totalSize) app.mescroll.endBySize(curPageLen, totalSize)
uni.pageScrollTo({
scrollTop: 0,
duration: 300 // ms
});
}) })
.catch(() => app.mescroll.endErr()) .catch(() => app.mescroll.endErr())
}, },
@ -447,8 +451,8 @@
.secondary{ .secondary{
z-index: 19; z-index: 19;
border-top: 1rpx solid #444; border-top: 1rpx solid #444;
height: 100vh; // height: 100vh;
// height: 100%; height: 100%;
} }
// //
@ -456,8 +460,8 @@
display: flex; display: flex;
z-index: 1; z-index: 1;
background: #fff; background: #fff;
padding-top: 120rpx; // padding-top: 120rpx;
// padding-top: 94rpx; padding-top: 97rpx;
height: 100%; height: 100%;
} }

Loading…
Cancel
Save