zhaoxiaohai vor 3 Jahren
Ursprung
Commit
b3b3e4330b
1 geänderte Dateien mit 1 neuen und 3 gelöschten Zeilen
  1. 1 3
      pages/tabbar/home/index.js

+ 1 - 3
pages/tabbar/home/index.js

@@ -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(); //更新徽标数据