wangyi
3 小时以前 dbe90630e9a4f20cccb14d9fed4260ec4b02c492
utils/WebSocketServices.js
@@ -36,6 +36,7 @@
    createConnect(userId, userName, count = 0, limit = 3) {
        // 登录建立连接时,需要重新获取http地址,可能会变更
        this.wsUrl = CommonUtils.httpFormatWs();
        //this.wsUrl = uni.getStorageSync("serverUrl") + "WebSocketHandler.ashx"
        // 缓存用户信息(用于重连)
        this.currentUserId = userId;
        this.currentUserName = userName;
@@ -98,7 +99,7 @@
                // 处理业务消息
                if (message.Type === "MessageUnRead") { // 未读消息
                    let payload = {
                        pagePath: "/pages/ZLGL/OA_WorkLink/OA_WorkLinkBillList",
                        pagePath: "/pages/ZLGL/OA_WorkLink/OA_WorkLinkBillQuery",
                        itemId: 0
                    }
                    const content = JSON.parse(message.Content);
@@ -107,7 +108,7 @@
                } else if (message.Type === "Message") {
                    const content = JSON.parse(message.Content)
                    let payload = {
                        pagePath: "/pages/ZLGL/OA_WorkLink/OA_WorkLinkBillList",
                        pagePath: "/pages/ZLGL/OA_WorkLink/OA_WorkLinkBillQuery",
                        itemId: 0
                    }
                    this.showTaskTip(content[0]["内容"], payload, content[0]["主题"]);