zhaoxiaohai 3 years ago
parent
commit
34dfbf250f
1 changed files with 7 additions and 3 deletions
  1. 7 3
      pages/tabbar/home/index.js

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

@@ -1,4 +1,4 @@
-// custom-tab-bar/index/index.js
+const _Http = getApp().globalData.http;
 Page({
 
     /**
@@ -30,8 +30,12 @@ Page({
     onLoad(options) {
         //获取胶囊位置信息
         this.setData({
-            capsule: wx.getMenuButtonBoundingClientRect()
-        })
+                capsule: wx.getMenuButtonBoundingClientRect()
+            })
+
+            _Http.login().then(res => {
+                console.log(res)
+            })
     },
     /* 应用程序 */
     applications(e) {