|
@@ -63,13 +63,43 @@
|
|
|
},
|
|
|
onLoad() {
|
|
|
const _this = this
|
|
|
- this.theme = getApp().globalData.theme
|
|
|
this.$nextTick(function(){
|
|
|
// 监听整改完成后刷新事件
|
|
|
uni.$on('refreshBL', function(data){
|
|
|
_this.$refs.salesList.getList(1)
|
|
|
})
|
|
|
})
|
|
|
+
|
|
|
+ const theme = getApp().globalData.theme
|
|
|
+ this.theme = theme
|
|
|
+ uni.setTabBarItem({
|
|
|
+ "index": 0,
|
|
|
+ "iconPath": "static/"+theme+"/tabbar/home.png",
|
|
|
+ "selectedIconPath": "static/"+theme+"/tabbar/home-active.png",
|
|
|
+ })
|
|
|
+ uni.setTabBarItem({
|
|
|
+ "index": 1,
|
|
|
+ "iconPath": "static/"+theme+"/tabbar/stock.png",
|
|
|
+ "selectedIconPath": "static/"+theme+"/tabbar/stock-active.png",
|
|
|
+ })
|
|
|
+ uni.setTabBarItem({
|
|
|
+ "index": 2,
|
|
|
+ "iconPath": "static/"+theme+"/tabbar/shelf.png",
|
|
|
+ "selectedIconPath": "static/"+theme+"/tabbar/shelf-active.png",
|
|
|
+ })
|
|
|
+ uni.setTabBarItem({
|
|
|
+ "index": 3,
|
|
|
+ "iconPath": "static/"+theme+"/tabbar/user.png",
|
|
|
+ "selectedIconPath": "static/"+theme+"/tabbar/user-active.png",
|
|
|
+ })
|
|
|
+ uni.setTabBarStyle({
|
|
|
+ color: this.$config("topBarTitleColors"),
|
|
|
+ selectedColor: this.$config("primaryColor"),
|
|
|
+ borderStyle: 'white',
|
|
|
+ complete: function(res){
|
|
|
+ console.log(res)
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
onUnload() {
|
|
|
uni.$off('refreshBL')
|