uni.showToast弹窗
This commit is contained in:
parent
e24fdd64d3
commit
fa45fef42e
@ -2,7 +2,7 @@
|
|||||||
<view class="goods_list">
|
<view class="goods_list">
|
||||||
<!-- 1.搜索栏 -->
|
<!-- 1.搜索栏 -->
|
||||||
<ygSearch></ygSearch>
|
<ygSearch></ygSearch>
|
||||||
|
|
||||||
<!-- 2. tabs栏 -->
|
<!-- 2. tabs栏 -->
|
||||||
<view class="tabs">
|
<view class="tabs">
|
||||||
<u-tabs :list="tabs" :current="tabsCurrent" inactive-color="#666" active-color="#eb4450" @change="onTapsChange"></u-tabs>
|
<u-tabs :list="tabs" :current="tabsCurrent" inactive-color="#666" active-color="#eb4450" @change="onTapsChange"></u-tabs>
|
||||||
@ -86,6 +86,11 @@ export default {
|
|||||||
// 判断有没有下一页
|
// 判断有没有下一页
|
||||||
if(Params.pagenum >= TotalPage){
|
if(Params.pagenum >= TotalPage){
|
||||||
console.log("没有下一页数据了")
|
console.log("没有下一页数据了")
|
||||||
|
uni.showToast({
|
||||||
|
title: "没有更多数据了",
|
||||||
|
icon:"none",
|
||||||
|
mask: true,
|
||||||
|
})
|
||||||
}else{
|
}else{
|
||||||
console.log("翻页")
|
console.log("翻页")
|
||||||
Params.pagenum++
|
Params.pagenum++
|
||||||
@ -112,32 +117,32 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.composite {
|
.composite {
|
||||||
.composite_item {
|
.composite_item {
|
||||||
display: flex;
|
|
||||||
padding: 10rpx 0;
|
|
||||||
.goods_img {
|
|
||||||
flex: 1;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
padding: 10rpx 0;
|
||||||
justify-content: center;
|
.goods_img {
|
||||||
}
|
flex: 1;
|
||||||
|
display: flex;
|
||||||
.goods_info {
|
align-items: center;
|
||||||
flex: 2;
|
justify-content: center;
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
justify-content: space-between;
|
|
||||||
.goods_name {
|
|
||||||
font-size: 30rpx;
|
|
||||||
color: #333;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.goods_price {
|
.goods_info {
|
||||||
font-size: 30rpx;
|
flex: 2;
|
||||||
color: #eb4450;
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
.goods_name {
|
||||||
|
font-size: 30rpx;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.goods_price {
|
||||||
|
font-size: 30rpx;
|
||||||
|
color: #eb4450;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
</style>
|
</style>
|
Loading…
Reference in New Issue
Block a user