|
|
@@ -74,7 +74,8 @@
|
|
|
<view class="" v-if="item.list <= 0">
|
|
|
<EnBlank message='暂无商品' :customSrc='true'>
|
|
|
<template v-slot:blankImg>
|
|
|
- <image class="<strong>black-custom-img</strong>" src="@/static/img/common/no-order.png" mode="">
|
|
|
+ <image class="<strong>black-custom-img</strong>"
|
|
|
+ src="@/static/img/common/no-order.png" mode="">
|
|
|
</image>
|
|
|
</template>
|
|
|
</EnBlank>
|
|
|
@@ -334,8 +335,10 @@
|
|
|
//获取商家分类
|
|
|
getGoodsCategory().then((res) => {
|
|
|
if (res.code === 1) {
|
|
|
- this.categoryList = res.data
|
|
|
- this.type = res.data[0].category_id
|
|
|
+ if (res.data.length > 0) {
|
|
|
+ this.categoryList = res.data
|
|
|
+ this.type = res.data[0].category_id
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
},
|