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.

38 lines
680 B

1 week ago
const app = getApp<IAppOption>();
Page({
data: {
qrCode: "",
},
onLoad(options) {
const { id = "" } = options;
const SystemInfo = app.globalSystemInfo;
if (SystemInfo) {
const { bottom } = SystemInfo.capsulePosition;
this.setData({
bottom: bottom,
});
}
app.waitLogin().then((_res) => {
this.getCode();
});
},
getCode() {
wx.ajax({
method: "GET",
url: "?r=igg4/common/get-channel-wx-code",
data: {
ChannelType: "11",
Id: "",
},
}).then((res) => {
this.setData({
qrCode: res,
});
});
},
handleBack() {
wx.navigateBack();
},
});