武田小程序
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.

44 lines
830 B

const app = getApp<IAppOption>();
Page({
data: {
isFollow: 0,
InviteDoctorName: "",
codeUrl: "",
},
onLoad(options) {
app.waitLogin(true).then(() => {
this.setData({
isFollow: Number(options.isf),
7 months ago
InviteDoctorName: options.iname === "null" ? "" : options.iname,
});
7 months ago
this.getCodeUrl()
if (!options.iname) {
this.getApplyDoctor();
}
});
},
getApplyDoctor() {
app.getApplyDoctor().then((res) => {
this.setData({
InviteDoctorName: res.InviteDoctorName,
});
});
},
7 months ago
getCodeUrl() {
wx.ajax({
method: "GET",
url: "?r=takeda/common/get-channel-wx-code",
data: {
ChannelType: 2,
},
}).then((res) => {
this.setData({
codeUrl: res,
});
});
},
});
export {};