|
@@ -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) {
|