解决c端过期商品展示
This commit is contained in:
parent
31046b0210
commit
8a889461c5
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue