|
@@ -20,6 +20,7 @@ Page({
|
|
|
* 生命周期函数--监听页面加载
|
|
|
*/
|
|
|
onLoad(options) {
|
|
|
+ //this.getTabBar().monitor();开启socket监听
|
|
|
this.refreshData(wx.getStorageSync('userMsg')) //更新权限等信息
|
|
|
this.setData({ //获取胶囊位置信息
|
|
|
capsule: wx.getMenuButtonBoundingClientRect()
|
|
@@ -224,9 +225,6 @@ Page({
|
|
|
* 生命周期函数--监听页面显示
|
|
|
*/
|
|
|
onShow() {
|
|
|
- getApp().globalData.callback = function (res) {
|
|
|
- console.log("callback", res)
|
|
|
- };
|
|
|
this.getTabBar().init();
|
|
|
this.startDataCarousel();
|
|
|
this.getCount(); //更新徽标数据
|