优化我的收藏页

master
Eratosici 5 years ago
parent 05fb04d560
commit 06fa3c9978

@ -17,3 +17,13 @@ page {
height: 20rpx;
background: #f4f4f4;
}
/* 空 */
.empty {
display: block;
width: 100%;
font-size: 26rpx;
color: #999;
margin-top: 20vh;
text-align: center;
}

@ -8,6 +8,8 @@
<block v-for="(item, index) in prodList" :key="index">
<prod :item="item"></prod>
</block>
<view v-if="!prodList.length" class="empty"></view>
</view>
</view>
</template>
@ -223,6 +225,7 @@ export default {
prodList: list,
pages: res.pages
});
console.log('我的收藏prodList:', this.prodList)
uni.hideLoading();
}
};
@ -300,4 +303,4 @@ export default {
</script>
<style>
@import "./prod-classify.css";
</style>
</style>

Loading…
Cancel
Save