[更新]更新动态tabBar

This commit is contained in:
唐明明
2020-12-28 17:13:09 +08:00
parent 5f2a66b04f
commit c34a1d6021
5 changed files with 68 additions and 38 deletions

View File

@@ -5,24 +5,31 @@
* 碌碌无为枉半生,一朝惊醒万事空。
*/
import { mall, video, ticket, user} from "../lib/tabBarData"
Component({
/**
* 组件的初始数据
*/
data: {
selected : getApp().globalData.storeModule.selected,
color : getApp().globalData.storeModule.color,
selectedColor: getApp().globalData.storeModule.selectedColor,
list : getApp().globalData.storeModule.list
selected : 0,
color : "#4e4f51",
selectedColor: "#0b0041",
list : [video, mall, ticket, user]
},
/**
* 生命周期函数
*/
pageLifetimes: {
show(){
console.log("获取配置信息")
}
lifetimes:{
// attached: ()=>{
// //获取模版信息
// wx.$api.publics.storeConfig({
// company_id: "17"
// }).then(res=>{
// console.log(res)
// })
// }
},
/**