|
|
@@ -217,17 +217,9 @@
|
|
|
this.categoryList = res.data.find(item => item.position == 'diamond_area')?.shopIndexCateVo || []
|
|
|
this.swiperList = res.data.find(item => item.position == 'left_banner')?.shopIndexCateVo || []
|
|
|
this.bookList = res.data.find(item => item.position == 'right_banner')?.shopIndexCateVo || []
|
|
|
-
|
|
|
- //获取单排专题推荐
|
|
|
- let single_row_topic = res.data.find(item => item.position == 'single_row_topic')?.shopIndexCateVo || []
|
|
|
- single_row_topic.forEach(item => item.positionType = 'single_row_topic')
|
|
|
-
|
|
|
- //获取双排专题推荐
|
|
|
- let double_row_topic = res.data.find(item => item.position == 'double_row_topic')?.shopIndexCateVo || []
|
|
|
- double_row_topic.forEach(item => item.positionType = 'double_row_topic')
|
|
|
-
|
|
|
- this.topicList = [...single_row_topic, ...double_row_topic]
|
|
|
- console.log(this.topicList)
|
|
|
+
|
|
|
+ //获取专题推荐
|
|
|
+ this.topicList = res.data.find(item => item.position == 'topic')?.shopIndexCateVo || []
|
|
|
}
|
|
|
})
|
|
|
},
|