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.
31 lines
719 B
31 lines
719 B
const app = getApp<IAppOption>(); |
|
|
|
Page({ |
|
data: { |
|
isFollow: 0, |
|
InviteDoctorName: "", |
|
codeUrl: "", |
|
}, |
|
onLoad(options) { |
|
app.waitLogin(true).then(() => { |
|
const { url, loginState } = app.globalData; |
|
this.setData({ |
|
isFollow: Number(options.isf), |
|
InviteDoctorName: options.iname === "null" ? "" : 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 {};
|
|
|