fix: 优惠券详情暂无商品可用判断修改
parent
9b89863c96
commit
5c3f0ab2f3
|
@ -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') {
|
||||||
|
|
Loading…
Reference in New Issue