fix: 优惠券详情暂无商品可用判断修改

pull/8/head
kele 2023-06-15 10:14:45 +08:00
parent 9b89863c96
commit 5c3f0ab2f3
1 changed files with 5 additions and 3 deletions

View File

@ -129,7 +129,7 @@
@tap="loadmore" @tap="loadmore"
/> />
<s-empty <s-empty
v-if="state.pagination.total === 0" v-if="state.list.use_scope == 'category' && state.pagination.total === 0"
paddingTop="0" paddingTop="0"
icon="/static/soldout-empty.png" icon="/static/soldout-empty.png"
text="暂无商品" text="暂无商品"
@ -232,9 +232,11 @@
data.items_value.forEach((i) => { data.items_value.forEach((i) => {
state.tabMaps.push({ name: i.name, value: i.id }); state.tabMaps.push({ name: i.name, value: i.id });
}); });
state.pagination = pagination state.pagination = pagination;
if (state.list.use_scope == 'category') {
getGoodsList(state.tabMaps[0].value); getGoodsList(state.tabMaps[0].value);
} }
}
// //
function loadmore() { function loadmore() {
if (state.loadStatus !== 'noMore') { if (state.loadStatus !== 'noMore') {