|
|
@@ -453,7 +453,8 @@
|
|
|
// 显示供货商提示弹框
|
|
|
showSupplierNotice() {
|
|
|
// 设置要显示的供货商列表,最多显示5个
|
|
|
- this.displayGhsList = this.supplierList.filter(item => item.name).slice(0, 5)
|
|
|
+ const supplierList = Array.isArray(this.supplierList) ? this.supplierList : []
|
|
|
+ this.displayGhsList = supplierList.filter(item => item && item.name).slice(0, 5)
|
|
|
this.$refs.supplierNoticePopup.open('center')
|
|
|
},
|
|
|
// 关闭供货商提示弹框
|
|
|
@@ -596,7 +597,7 @@
|
|
|
},
|
|
|
getGHSList () {
|
|
|
return ghsList().then(res => {
|
|
|
- this.supplierList = res.data.list
|
|
|
+ this.supplierList = res && res.data && Array.isArray(res.data.list) ? res.data.list : []
|
|
|
this.ad = res.data.ad ? res.data.ad : []
|
|
|
this.showAd = res.data.showAd ? res.data.showAd : 0
|
|
|
})
|
|
|
@@ -1159,7 +1160,7 @@
|
|
|
top: 86upx;
|
|
|
left: 50%;
|
|
|
transform: translateX(-50%);
|
|
|
- z-index: 10000;
|
|
|
+ z-index: 1;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
align-items: center;
|