Browse Source

fix: 🧩 品牌滑动问题优化

pull/21/head
liyongle 3 years ago
parent
commit
2b6f69ba5a
  1. 2
      public/static/worker/page.worker.js
  2. 3
      src/views/Brand/shopList.vue

2
public/static/worker/page.worker.js

@ -1,5 +1,5 @@
let pageIndex = 1 //数组中需要分页(即下标为pageIdx的数据)的当前页 大数组中的二维
const pageSize = 20 //一页显示的条数
const pageSize = 30 //一页显示的条数
let pageList = [] //用于UI渲染的列表
let showMore = false
let pageIdx = 0 //当前是数组中的哪一项需要分页 大数组中的一维

3
src/views/Brand/shopList.vue

@ -39,7 +39,7 @@
:modules="modulesShop"
@after-init="getSwiper"
@reach-end="myScrollEnd"
>
>
<swiper-slide v-for="(items, index) in pageList" :key="index" :data-floor-name="items.name"> -->
<ul class="shop-items">
@ -513,6 +513,7 @@ function myScrollEnd() {
}
.shop-items {
width: 1388px;
padding-bottom: 40px;
.shop-div {
margin-bottom: 40px;

Loading…
Cancel
Save