武田小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
751 B

const app = getApp<IAppOption>();
Page({
data: {
isFollow: 0,
InviteDoctorName: "",
codeUrl: "",
},
onLoad(options) {
console.log("DEBUGPRINT[6]: index.ts:9: options=", options)
app.waitLogin(true).then(() => {
const { url, loginState } = app.globalData;
this.setData({
isFollow: Number(options.isf),
InviteDoctorName: options.iname,
codeUrl: `${url}?r=takeda/common/get-channel-wx-code&ChannelType=2&loginState=${loginState}`,
});
if (!options.iname) {
this.getApplyDoctor();
}
});
},
getApplyDoctor() {
app.getApplyDoctor().then((res) => {
this.setData({
InviteDoctorName: res.InviteDoctorName,
});
});
},
});
export {};