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
629 B
31 lines
629 B
const app = getApp<IAppOption>(); |
|
|
|
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?rid=${this.data.id}&cid=${this.data.caseId}`, |
|
}); |
|
}, |
|
}); |
|
|
|
export {};
|
|
|