解决c端过期商品展示

This commit is contained in:
red-deng-deng 2021-11-28 20:26:07 +08:00
parent 31046b0210
commit 8a889461c5
1 changed files with 4 additions and 3 deletions

View File

@ -266,9 +266,8 @@
req.axiosPostproducts('/key/products', data).then(res => {
if (res.code == 200) {
self.swiperDataList = res.data;
if (!res.data) {
self.goodsNum = false;
} else {
if (res.data&&res.data.length>0) {
self.goodsNum = true;
self.onSelected(res.data[0])
self.$nextTick(function () {
var swiper = new Swiper('.swiper-container', {
@ -287,6 +286,8 @@
setTimeout(() => {
self.loading = false;
}, 100);
} else {
self.goodsNum = false;
}
} else {
self.maskshow = true;