[更新]更新动态tabBar
This commit is contained in:
@@ -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)
|
||||
// })
|
||||
// }
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user