修复可能存在的问题
This commit is contained in:
parent
9f75725b3d
commit
8d643b8ac2
|
@ -124,6 +124,7 @@ export default {
|
|||
this.$request({
|
||||
api: "index.banner",
|
||||
}).then((response) => {
|
||||
this.bannerList = [];
|
||||
response.data.forEach((item) => {
|
||||
this.bannerList.push({
|
||||
image: item.image,
|
||||
|
|
|
@ -74,6 +74,7 @@ export default {
|
|||
ServicePreviewItem,
|
||||
},
|
||||
onLoad() {
|
||||
this.list = [];
|
||||
this.$models.cart.list().then((list) => {
|
||||
list.forEach((item) => {
|
||||
let goods = [];
|
||||
|
|
|
@ -81,12 +81,14 @@ export default {
|
|||
y: y - this.$utils.rpx2px(40),
|
||||
};
|
||||
// 加载分类
|
||||
this.data.push({
|
||||
id: 0,
|
||||
name: "热门推荐",
|
||||
cover: "",
|
||||
child: await this.hotCate(),
|
||||
});
|
||||
this.data = [
|
||||
{
|
||||
id: 0,
|
||||
name: "热门推荐",
|
||||
cover: "",
|
||||
child: await this.hotCate(),
|
||||
},
|
||||
];
|
||||
this.loadCate();
|
||||
},
|
||||
onShow() {
|
||||
|
|
Loading…
Reference in New Issue