群发消息与页面刷新
This commit is contained in:
@@ -356,7 +356,8 @@ export function getOperateMenuSize(msgInfo: NIMMessageInfo | undefined) {
|
||||
* @returns 消息长按弹窗宽度
|
||||
*/
|
||||
export function computeOperateViewWidth(msg: NIMMessageInfo | undefined): number {
|
||||
return ChatConst.menuItemWidth * Math.min(getOperateMenuSize(msg), ChatConst.menuItemColumnNum)
|
||||
// return ChatConst.menuItemWidth * Math.min(getOperateMenuSize(msg), ChatConst.menuItemColumnNum)
|
||||
return ChatConst.menuItemWidth * 5
|
||||
}
|
||||
|
||||
export function computeOperateViewHeight(msg: NIMMessageInfo | undefined): number {
|
||||
|
||||
@@ -38,6 +38,7 @@ export class ChatConst {
|
||||
static readonly menuItemHeight: number = 50;
|
||||
// 消息长按菜单列数
|
||||
static readonly menuItemColumnNum: number = 5;
|
||||
// static readonly menuItemColumnNum: number = 3;
|
||||
// PIN 消息操作者名称最大长度
|
||||
static readonly pinOperatorNameMaxLen: number = 15;
|
||||
// 消息撤回本地存储,是否为本端撤回消息
|
||||
|
||||
@@ -330,6 +330,10 @@ export struct ChatP2PPage {
|
||||
let rawAttach = JSON.stringify(jsonData)
|
||||
this.chatViewModel.sendCustomMessage(BasicConstant.VisitTeach, rawAttach)
|
||||
}
|
||||
else
|
||||
{
|
||||
HMRouterMgr.push({pageUrl:'OutpatientComp',param:"chat"})
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user