|
|
|
@ -177,7 +177,9 @@ |
|
|
|
|
</template> |
|
|
|
|
</u-waterfall> |
|
|
|
|
</view> |
|
|
|
|
<u-empty text="暂无数据显示哦~" v-if="list.data.length==0 && total == 0" mode="list"></u-empty> |
|
|
|
|
<view style="margin-top: 250rpx;"> |
|
|
|
|
<u-empty text="暂无数据显示哦~" v-if="list.data.length==0 && total == 0" mode="list"></u-empty> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</mescroll-body> |
|
|
|
|
</view> |
|
|
|
@ -226,7 +228,10 @@ |
|
|
|
|
size: pageSize |
|
|
|
|
}, |
|
|
|
|
// 数量要大于4条才显示无更多数据 |
|
|
|
|
noMoreSize: 4, |
|
|
|
|
// noMoreSize: 4, |
|
|
|
|
empty: { |
|
|
|
|
use : false , |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
tabbar: [] |
|
|
|
|
} |
|
|
|
@ -236,7 +241,7 @@ |
|
|
|
|
* 生命周期函数--监听页面加载 |
|
|
|
|
*/ |
|
|
|
|
onLoad(options) { |
|
|
|
|
console.log(options) |
|
|
|
|
console.log("options",options) |
|
|
|
|
// 记录options |
|
|
|
|
this.options = options |
|
|
|
|
this.searchText = options.search |
|
|
|
@ -278,6 +283,7 @@ |
|
|
|
|
this.keyName1 = item.name |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (type == 2) { |
|
|
|
|
if (item.category_id == this.isActive) { |
|
|
|
|
this.isActive = ''; |
|
|
|
@ -304,6 +310,7 @@ |
|
|
|
|
const curPageLen = list.data.length |
|
|
|
|
const totalSize = list.data.total |
|
|
|
|
app.mescroll.endBySize(curPageLen, totalSize) |
|
|
|
|
console.log("upCallback",app.upOption) |
|
|
|
|
}) |
|
|
|
|
.catch(() => app.mescroll.endErr()) |
|
|
|
|
}, |
|
|
|
@ -396,6 +403,12 @@ |
|
|
|
|
* 商品搜索 |
|
|
|
|
*/ |
|
|
|
|
handleSearch() { |
|
|
|
|
this.isBanrdActive = ''; |
|
|
|
|
this.keyName1 = ''; |
|
|
|
|
this.isActive = ''; |
|
|
|
|
this.keyName2 = ''; |
|
|
|
|
this.banrdType = []; |
|
|
|
|
this.goodsType = []; |
|
|
|
|
const searchPageUrl = 'pages/search/index?category_id=' + this.options.categoryId |
|
|
|
|
// 判断来源页面 |
|
|
|
|
let pages = getCurrentPages() |
|
|
|
|