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