const app = getApp(); Page({ data: { id: "", caseId: "", list: [] }, onLoad(options) { this.setData({ id: options.id, caseId: options.cid }); app.waitLogin().then(() => { this.getDetail(); }); }, getDetail() { wx.ajax({ method: "GET", url: "?r=takeda/chat/get-room-doctor", data: { roomId: this.data.id, }, }).then((res) => { this.setData({ list: res, }); }); }, handleDoctor() { wx.navigateTo({ url: `/module1/pages/setChatDoctor/index?id=${this.data.id}&cid=${this.data.caseId}`, }); }, }); export {};