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