|
|
@ -8,12 +8,11 @@ Page({ |
|
|
|
}, |
|
|
|
}, |
|
|
|
onLoad(options) { |
|
|
|
onLoad(options) { |
|
|
|
app.waitLogin(true).then(() => { |
|
|
|
app.waitLogin(true).then(() => { |
|
|
|
const { url, loginState } = app.globalData; |
|
|
|
|
|
|
|
this.setData({ |
|
|
|
this.setData({ |
|
|
|
isFollow: Number(options.isf), |
|
|
|
isFollow: Number(options.isf), |
|
|
|
InviteDoctorName: options.iname === "null" ? "" : options.iname, |
|
|
|
InviteDoctorName: options.iname === "null" ? "" : options.iname, |
|
|
|
codeUrl: `${url}?r=takeda/common/get-channel-wx-code&ChannelType=2&loginState=${loginState}`, |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
this.getCodeUrl() |
|
|
|
if (!options.iname) { |
|
|
|
if (!options.iname) { |
|
|
|
this.getApplyDoctor(); |
|
|
|
this.getApplyDoctor(); |
|
|
|
} |
|
|
|
} |
|
|
@ -26,6 +25,19 @@ Page({ |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
getCodeUrl() { |
|
|
|
|
|
|
|
wx.ajax({ |
|
|
|
|
|
|
|
method: "GET", |
|
|
|
|
|
|
|
url: "?r=takeda/common/get-channel-wx-code", |
|
|
|
|
|
|
|
data: { |
|
|
|
|
|
|
|
ChannelType: 2, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}).then((res) => { |
|
|
|
|
|
|
|
this.setData({ |
|
|
|
|
|
|
|
codeUrl: res, |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
export {}; |
|
|
|
export {}; |
|
|
|