关注企业接口

This commit is contained in:
zdx
2020-12-30 17:34:35 +08:00
parent 428d0bb7d9
commit 043dfce6cc
25 changed files with 143 additions and 198 deletions

View File

@@ -5,62 +5,24 @@ Page({
* 页面的初始数据
*/
data: {
info:''
},
onShow() {
this.userInfo();
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
userInfo() {
wx.$api.user.userInfo().then(res => {
console.log(res);
this.setData({
info:res
})
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
showtoast() {
wx.showToast({
title: '正在完善,看看其他的吧',
icon: 'none'
})
}
})