修复可能存在的问题

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({ this.$request({
api: "index.banner", api: "index.banner",
}).then((response) => { }).then((response) => {
this.bannerList = [];
response.data.forEach((item) => { response.data.forEach((item) => {
this.bannerList.push({ this.bannerList.push({
image: item.image, image: item.image,

View File

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

View File

@ -81,12 +81,14 @@ export default {
y: y - this.$utils.rpx2px(40), y: y - this.$utils.rpx2px(40),
}; };
// //
this.data.push({ this.data = [
id: 0, {
name: "热门推荐", id: 0,
cover: "", name: "热门推荐",
child: await this.hotCate(), cover: "",
}); child: await this.hotCate(),
},
];
this.loadCate(); this.loadCate();
}, },
onShow() { onShow() {