Commit af9860da authored by 张娇(东信)'s avatar 张娇(东信)

分类空状态

parent 16ff8ee6
......@@ -133,9 +133,7 @@
/>
</view>
</view>
<view class="user flex-center" v-if="testData.length === 0">
<wd-status-tip image="content" tip="暂无数据" />
</view>
<wd-status-tip image="content" tip="暂无数据" v-if="testData.length === 0" />
</view>
<!-- 购物车悬浮按钮 -->
<!--<view class="cart-floating" @tap="toCart">
......@@ -222,13 +220,21 @@ const getGoodSaleProd = () => {
};
// 筑农严选首页-分类查询商品列表
const platformProdList = () => {
xma.showLoading({
title: '加载中',
});
getPlatformProdList({ categoryId: router.query.categoryId }).then((res) => {
xma.hideLoading();
detailList.value = res.data;
choice(0, '3272');
});
};
const choice = (index, item) => {
xma.showLoading({
title: '加载中',
});
getPlatformProdList({ categoryId: router.query.categoryId }).then((res) => {
xma.hideLoading();
detailList.value = res.data;
});
testData.value = detailList.value[index].prodList;
......
......@@ -83,9 +83,7 @@
/>
</view>
</view>
<view class="user flex-center" v-if="buyList.length === 0">
<wd-status-tip image="content" tip="暂无数据" />
</view>
<wd-status-tip image="content" tip="暂无数据" v-if="buyList.length === 0" />
</view>
<view class="waterfall">
<view class="wt-left wt-list">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment