const app = getApp(); Page({ /** * 页面的初始数据 */ data: { optioninfo: '', }, /** * 生命周期函数--监听页面加载 */ onLoad: function (options) { var that = this; // 认证信息 let optioninfo_url = 'other/about/details'; let optioninfo_data = { // uid: options.uid, }; app.getRequest(optioninfo_url, optioninfo_data, function (res) { console.log(res.data); if (res.code == 201) { that.setData({ optioninfo: res.data, }) } }) }, })