|
|
|
@ -1,6 +1,6 @@ |
|
|
|
|
<template> |
|
|
|
|
<view class="container" :style="appThemeStyle"> |
|
|
|
|
<mescroll-body ref="mescrollRef" :sticky="true" @init="mescrollInit" :down="{ native: true }" |
|
|
|
|
<mescroll-body ref="mescrollRef" :sticky="true" @init="mescrollInit" :down="{ native: true,auto: false}" |
|
|
|
|
@down="downCallback" :up="upOption" @up="upCallback"> |
|
|
|
|
<!-- 页面头部 --> |
|
|
|
|
<view class="header"> |
|
|
|
@ -216,7 +216,7 @@ |
|
|
|
|
</template> |
|
|
|
|
</u-waterfall> |
|
|
|
|
</view> |
|
|
|
|
<view style="margin-top: 250rpx;" v-if="list.data.length==0 && total == 0"> |
|
|
|
|
<view style="margin-top: 250rpx;" v-if=" total == 0"> |
|
|
|
|
<u-empty text="暂无数据显示哦~" mode="list"></u-empty> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
@ -262,7 +262,7 @@ |
|
|
|
|
// 上拉加载配置 |
|
|
|
|
upOption: { |
|
|
|
|
// 首次自动执行 |
|
|
|
|
auto: true, |
|
|
|
|
auto: false, |
|
|
|
|
// 每页数据的数量; 默认10 |
|
|
|
|
page: { |
|
|
|
|
size: pageSize |
|
|
|
@ -340,6 +340,8 @@ |
|
|
|
|
// }) |
|
|
|
|
// }); |
|
|
|
|
// console.log(that.goodsType, that.tabbar) |
|
|
|
|
}else{ |
|
|
|
|
that.upCallback(1) |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
.catch(reject) |
|
|
|
@ -429,15 +431,18 @@ |
|
|
|
|
keyword: app.options.search || '', |
|
|
|
|
goods_source: this.multiIndex > -1 ? this.multiArray[this.multiIndex].value : '' |
|
|
|
|
} |
|
|
|
|
console.log(param) |
|
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
|
GoodsApi.list(param) |
|
|
|
|
.then(result => { |
|
|
|
|
// 合并新数据 |
|
|
|
|
console.log(app.list) |
|
|
|
|
const newList = result.data.list |
|
|
|
|
console.log(newList) |
|
|
|
|
let arr = getMoreListData(newList, app.list, pageNo); |
|
|
|
|
app.list.data = app.arrayUnique(arr, 'goods_id') |
|
|
|
|
app.total = result.data.list.total; |
|
|
|
|
console.log(app.list) |
|
|
|
|
console.log(newList) |
|
|
|
|
resolve(newList) |
|
|
|
|
}) |
|
|
|
|
.catch(reject) |
|
|
|
@ -859,6 +864,7 @@ |
|
|
|
|
display: flex; |
|
|
|
|
justify-content: space-between; |
|
|
|
|
align-items: center; |
|
|
|
|
margin-top: 4rpx; |
|
|
|
|
|
|
|
|
|
.left_1 { |
|
|
|
|
height: 100%; |
|
|
|
|