Commit df7f9397 by fengzhaoyu

fix:修改会议详情修改动态

parent 10d7a25c
......@@ -103,6 +103,30 @@ create.Page({
}
}
this.connect_start();
// 注意: 回调方法的注册在整个小程序启动阶段只要做一次,调多次会有多次回调
dd.onSocketOpen((res) => {
console.log('连接已打开!');
dd.sendSocketMessage({
data: 'heartbeat', // 需要发送的内容
success: (res) => {
console.log('数据发送!' + 'heartbeat');
},
});
});
dd.onSocketError(function (res) {
console.log('WebSocket 连接打开失败,请检查!' + res);
});
// 注意: 回调方法的注册在整个小程序启动阶段只要做一次,调多次会有多次回调
dd.onSocketMessage((res) => {
console.log(res)
this.onSocketMessageCallback(res.data)
});
//webSocket.connectSocket();
//webSocket.onSocketMessageCallback = this.onSocketMessageCallback.bind(this);
},
......@@ -149,30 +173,7 @@ create.Page({
await this.addOnceMeeting(content)
}
this.update();
this.connect_start();
// 注意: 回调方法的注册在整个小程序启动阶段只要做一次,调多次会有多次回调
dd.onSocketOpen((res) => {
console.log('连接已打开!');
dd.sendSocketMessage({
data: 'heartbeat', // 需要发送的内容
success: (res) => {
console.log('数据发送!' + 'heartbeat');
},
});
});
dd.onSocketError(function (res) {
console.log('WebSocket 连接打开失败,请检查!' + res);
});
// 注意: 回调方法的注册在整个小程序启动阶段只要做一次,调多次会有多次回调
dd.onSocketMessage((res) => {
console.log(res)
this.onSocketMessageCallback(res.data)
});
},
connect_start() {
dd.connectSocket({
......@@ -283,12 +284,12 @@ create.Page({
});
},
onHide() {
dd.closeSocket();
// clearInterval(this.timer);
// this.timer = null;
},
onUload() {
dd.closeSocket();
},
refresh() {
this.isNeverShowSchedulePage = true;
......
......@@ -215,6 +215,8 @@ create.Page({
return
}
this.$store.data.originalData.title = this.data.title
this.$store.data.isIndexAffairListNeedUpdate = true;
this.update()
})
},
......@@ -656,7 +658,8 @@ create.Page({
return
}
if (this.$store.modifyErpeatMeeting) {
this.$store.modifyErpeatMeeting()
this.$store.modifyErpeatMeeting();
}
if (this.data.repeat.repeatable === 1 && !!res.data.data) {
observer.notice(res.data.data)
......@@ -932,7 +935,8 @@ create.Page({
});
// 设置已读
setRead(id).then(res => {
console.log(res)
this.$store.data.isIndexAffairListNeedUpdate = true;
this.update();
});
})
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment