Commit 5fae665e by 高淑倩

tab

parent d6154b12
......@@ -156,7 +156,19 @@ wxService.page({
})
// tabBar
const currentTabBar = data.paragraphs.filter(item=> item.type == 5)
console.log('---', currentTabBar)
let currentTabBarArr =[]
currentTabBar.forEach(tab=> {
currentTabBarArr = tab.tabBar.images
console.log('---', currentTabBarArr)
currentTabBarArr.forEach(item=> {
if(item.link){
console.log('-link--',item.link.type, item.link.url)
} else if(item.row){
console.log('-row--')
}
})
})
// 段落
const products = data.paragraphs
const filterResult = products.map((res,index)=>{
......
......@@ -74,9 +74,9 @@ wxService.page({
})
if (wx.getStorageSync('_baseUserInfo')){
// 积分数量
this.getMemberPointInfo()
// this.getMemberPointInfo()
// 优惠券数量
this.getMemberCouponInfo()
// this.getMemberCouponInfo()
}
},
// 查询积分信息
......@@ -134,6 +134,22 @@ wxService.page({
wx.setNavigationBarTitle({
title: data.page.title
})
// tabBar
const currentTabBar = data.paragraphs.filter(item=> item.type == 5)
let currentTabBarArr =[]
currentTabBar.forEach(tab=> {
currentTabBarArr = tab.tabBar.images
console.log('---', currentTabBarArr)
currentTabBarArr.forEach(item=> {
if(item.link){
console.log('-link--',item.link.type, item.link.url)
} else if(item.row){
console.log('-row--')
}
})
})
// 段落
const products = data.paragraphs
const filterResult = products.map((res,index)=>{
......
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