Commit 59e8dfd6 authored by zhengke's avatar zhengke

修改

parent 4dcdc82a
......@@ -93,7 +93,6 @@ export default {
};
},
created() {
console.log(this.goods, 'goods');
this.mainColor = this.$uiConfig.mainColor;
if (this.goods.showCat) {
this.currentList = this.goods.catList[0].goodsList;
......
......@@ -104,7 +104,6 @@ export default {
};
},
created() {
console.log('来了老弟');
this.mainColor = this.$uiConfig.mainColor;
},
methods: {
......
......@@ -96,7 +96,6 @@ export default {
};
},
created() {
console.log(this.goodList,'来了');
this.mainColor = this.$uiConfig.mainColor;
},
methods: {
......
......@@ -92,7 +92,6 @@ export default {
};
},
created() {
console.log('5555555');
this.mainColor = this.$uiConfig.mainColor;
},
methods: {
......
......@@ -38,7 +38,6 @@ export default {
};
},
created() {
console.log(this.navs,'navsss');
let tempArray = [];
this.height = this.navs.rows * this.height;
this.navs.navs.forEach((x, i) => {
......
......@@ -133,99 +133,34 @@ export default {
},
methods: {
init() {
if (false) {
// if (uni.getStorageSync("indexdata")) {
// this.indexPageData = uni.getStorageSync("indexdata");
// this.indexPageData.home_pages.navs[0].template.data.push({
// id: "quick-nav",
// permission_key: "",
// data: {
// navSwitch: 1,
// useMallConfig: false,
// navStyle: 1,
// closedPicUrl:
// "https://cdnimg.iotweixin.com/uploads/mall1285/20200309/2377f4a89a86598a6b442503356f7624.png",
// openedPicUrl:
// "https://cdnimg.iotweixin.com/uploads/mall1285/20200309/2377f4a89a86598a6b442503356f7624.png",
// home: {
// opened: true,
// picUrl:
// "https://cdnimg.iotweixin.com/uploads/mall1285/20200305/032f41de1ce0ac0cc655a02e6f8aa226.png",
// },
// customerService: {
// opened: true,
// picUrl:
// "https://cdnimg.iotweixin.com/uploads/mall1285/20200305/cd0092c67dbe71cce73e9ed8266748d0.png",
// },
// tel: {
// opened: true,
// picUrl:
// "https://cdnimg.iotweixin.com/uploads/mall1285/20200305/2377f4a89a86598a6b442503356f7624.png",
// number: "",
// },
// web: {
// opened: true,
// picUrl:
// "https://cdnimg.iotweixin.com/uploads/mall1285/20200305/b6e82d2d3d7e0aea24bb0e3bd3125842.png",
// url: "http://www.baidu.com",
// },
// mApp: {
// opened: true,
// picUrl:
// "https://cdnimg.iotweixin.com/uploads/mall1285/20200305/3681e31f5fae422b9f16fd5b257c9026.png",
// appId: "",
// page: "",
// },
// mapNav: {
// opened: true,
// picUrl:
// "https://cdnimg.iotweixin.com/uploads/mall1285/20200305/2058797984c620a54ca9254d4d7e4d85.png",
// address: "中国四川省成都市锦江区大慈寺路48号",
// location: "30.656180,104.083290",
// },
// customize: {
// opened: true,
// picUrl:
// "https://cdnimg.iotweixin.com/uploads/mall1285/20200415/c9d23be434e910ccb8dc500fe5fe611d.png",
// open_type: "navigate",
// link_url: "/pages/address/address",
// key: "",
// },
// },
// });
this.formatBg();
} else {
this.request(
this.request2(
{
url: '/api/Mall/GetHome',
data: {
MiniAppId:'wxacd9f8cc3480d29e'
},
},
(res) => {
//this.isloading = false;
console.log(res.data,'home');
console.log(res,'resIndex');
this.indexPageData = res.data.home_pages.navs[0].template.data;
this.myPageData=res.data;
wx.setStorageSync("indexdata", this.myPageData);
if (res.data.title != "") {
if (res.data.home_pages.title != "") {
uni.setNavigationBarTitle({
title: res.data.home_pages.title,
});
uni.setNavigationBarColor({
//字体颜色
frontColor:res.data.navbar.top_text_color,
//背景颜色
backgroundColor:res.data.navbar.top_background_color
});
}
// if (this.indexPageData.home_pages.navs.length > 1) {
// this.activeName = this.indexPageData.home_pages.navs[0].name;
// }
this.formatBg();
},
(error)=>{
console.log('2222');
console.log(error);
}
);
}
},
changeHandler(i) {
this.active = i;
......@@ -261,6 +196,7 @@ export default {
flex-direction: column;
/* align-items: center;
justify-content: center; */
padding-bottom:100rpx;
}
/* .logo {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment