分包医生
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
// index.js
|
||||
const app = getApp()
|
||||
Page({
|
||||
data: {
|
||||
title: '患者姓名',
|
||||
height: app.globalData.height,
|
||||
},
|
||||
onLoad() {
|
||||
console.log("onLoad chat_session")
|
||||
},
|
||||
onUnload() {
|
||||
|
||||
},
|
||||
onShow(){
|
||||
let _this = this;
|
||||
let interval = setInterval(() => {
|
||||
if(app.globalData.chat_sdk_ready){
|
||||
const TUIKit = _this.selectComponent('#TUIKit');
|
||||
TUIKit.init();
|
||||
clearInterval(interval);
|
||||
}
|
||||
}, 100);
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"usingComponents": {
|
||||
"TUIKit": "../../../../TUIKit/index"
|
||||
},
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
<!-- 最近回话列表 -->
|
||||
<view>
|
||||
<TUIKit config="{{config}}" id="TUIKit"></TUIKit>
|
||||
</view>
|
||||
@@ -0,0 +1,8 @@
|
||||
.container{
|
||||
background-color: #F4F4F4;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
}
|
||||
.top{
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user