|
|
@ -54,7 +54,6 @@
|
|
|
|
:item="item"
|
|
|
|
:item="item"
|
|
|
|
v-for="item in listData"
|
|
|
|
v-for="item in listData"
|
|
|
|
:key="item.id"
|
|
|
|
:key="item.id"
|
|
|
|
:isRecommend="isRecommend"
|
|
|
|
|
|
|
|
></UiGoodsItem>
|
|
|
|
></UiGoodsItem>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<el-pagination
|
|
|
|
<el-pagination
|
|
|
@ -103,7 +102,6 @@ export default {
|
|
|
|
components: { Sort, UiGoodsItem },
|
|
|
|
components: { Sort, UiGoodsItem },
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
isRecommend: false,
|
|
|
|
|
|
|
|
navActive: 0,
|
|
|
|
navActive: 0,
|
|
|
|
levelActive: 0,
|
|
|
|
levelActive: 0,
|
|
|
|
listData: [],
|
|
|
|
listData: [],
|
|
|
@ -132,7 +130,6 @@ export default {
|
|
|
|
this.levelType = this.$route.query.levelType || "";
|
|
|
|
this.levelType = this.$route.query.levelType || "";
|
|
|
|
this.levelId = this.$route.query.id || "";
|
|
|
|
this.levelId = this.$route.query.id || "";
|
|
|
|
this.levelType == 2 ? (this.params.categoryId = this.levelId) : "";
|
|
|
|
this.levelType == 2 ? (this.params.categoryId = this.levelId) : "";
|
|
|
|
this.isRecommend = this.levelId == "recommend" ? true : false;
|
|
|
|
|
|
|
|
this.getRecommendedGoodsList();
|
|
|
|
this.getRecommendedGoodsList();
|
|
|
|
if (this.levelType == 1) {
|
|
|
|
if (this.levelType == 1) {
|
|
|
|
this.getCategoryTwoAndGoods();
|
|
|
|
this.getCategoryTwoAndGoods();
|
|
|
|