Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
order: []
};
},
created() {
this.init();
},
methods: {
init() {
userIndex().then(res => {
this.order = res.data.data.order;
});
}
},
components: {
[Row.name]: Row,
[Col.name]: Col
}
};
this.$router.replace({
name: 'category',
query: { itemClass: categoryId }
});
});
},
initViews() {
getHome().then(res => {
this.shopInfos = res.data.data;
});
}
},
components: {
[Row.name]: Row,
[Col.name]: Col,
[Card.name]: Card,
[Toast.name]: Toast,
[CouponCell.name]: CouponCell,
[CouponList.name]: CouponList,
[Search.name]: Search,
[Panel.name]: Panel,
[List.name]: List,
[Swipe.name]: Swipe,
[SwipeItem.name]: SwipeItem,
[Tabbar.name]: Tabbar,
[TabbarItem.name]: TabbarItem,
[Tag.name]: Tag,
[Grid.name]: Grid,
[GridItem.name]: GridItem
}
};
Tag,
Col,
Icon,
Cell,
CellGroup,
Swipe,
Toast,
SwipeItem,
GoodsAction,
GoodsActionBigBtn,
GoodsActionMiniBtn
} from "vant";
export default {
components: {
[Tag.name]: Tag,
[Col.name]: Col,
[Icon.name]: Icon,
[Cell.name]: Cell,
[CellGroup.name]: CellGroup,
[Swipe.name]: Swipe,
[SwipeItem.name]: SwipeItem,
[GoodsAction.name]: GoodsAction,
[GoodsActionBigBtn.name]: GoodsActionBigBtn,
[GoodsActionMiniBtn.name]: GoodsActionMiniBtn
},
data() {
return {
goods: this.$route.query.item,
showIndicators: true,
true: true,
value: 1,
goodsList({
brandId: this.brandId
}).then(res => {
this.brandGoods = res.data.data.list;
});
},
itemClick(id) {
this.$router.push(`/items/detail/${id}`);
}
},
components: {
[Card.name]: Card,
[Row.name]: Row,
[Col.name]: Col
}
};