修复可能存在的问题
This commit is contained in:
parent
9f75725b3d
commit
8d643b8ac2
|
@ -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,
|
||||||
|
|
|
@ -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 = [];
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue