const app = getApp(); Page({ data: { qrCode: "", }, onLoad(options) { const { id = "" } = options; const SystemInfo = app.globalSystemInfo; if (SystemInfo) { const { bottom } = SystemInfo.capsulePosition; this.setData({ bottom: bottom, }); } app.waitLogin().then((_res) => { this.getCode(); }); }, getCode() { wx.ajax({ method: "GET", url: "?r=zd/common/get-channel-wx-code", data: { ChannelType: "11", Id: "", }, }).then((res) => { this.setData({ qrCode: res, }); }); }, handleBack() { wx.navigateBack(); }, });