- 当前 Bug 的表现(可附上截图)
- 预期表现
- 复现路径
- 提供一个最简复现 Demo
onLoad: function (options) {
var that = this;
wx.login({
success: (res) => {
//获取小程序openid
wx.request({
url: options.Host + ‘/?scode=’ + res.code,
method: “GET”,
header: {
‘content-type’: ‘application/json’
},
success: (result) => {
getApp().openid = result.data.openid;
that.requestOrder(options, that);
},
fail: (result) => {
}
});
},
fail: (res) => {
}
});
},