const app = getApp(); Page({ data: { isf: 0, codeUrl: "", }, onLoad(options) { app.waitLogin(true).then(() => { this.getCodeUrl(); this.setData({ isf: Number(options.isf), }); }); }, handleBack() { wx.redirectTo({ url: "/module1/pages/setInfo/index", }); }, getCodeUrl() { wx.ajax({ method: "GET", url: "?r=takeda/common/get-channel-wx-code", data: { ChannelType: 1, }, }).then((res) => { this.setData({ codeUrl: res, }); }); }, }); export {};