修复可能存在的问题

This commit is contained in:
TOP糯米 2023-04-02 19:07:56 +08:00
parent 9f75725b3d
commit 8d643b8ac2
3 changed files with 10 additions and 6 deletions

View File

@ -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,

View File

@ -74,6 +74,7 @@ export default {
ServicePreviewItem,
},
onLoad() {
this.list = [];
this.$models.cart.list().then((list) => {
list.forEach((item) => {
let goods = [];

View File

@ -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() {