// 事件处理
getinfo(){
var that = this//当前对象
const authInfo = "version=2022-05-01&res=userid%2F341108&et=1733816371&methodign=%2BVNoDSm%2BgKOork6IMDt4ZfaSrag%3D";
wx.request({
// 设备id
header:{
// "api-key":"h4vjQQ+5q+lT288drZ8VZbETt2117eeFtcsZJ6NFs3c="
"api-key":"OHVMdDk0V1JraVZNQTVXME9GMGpsYlNsYjFSdGNXUU0=",
'Authorization':authInfo
},
method:"GET",
success:function(e){
console.log("获取成功",e)
}
})
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
var that = this
that.getinfo()
},
postman调通了再谈代码吧