Эх сурвалжийг харах

Merge branch 'fix/im_web_function_lost_bug' into 'develop'

修复问题-im消息js代码丢失了function关键字

See merge request o2oa/o2oa!1006
楼国栋 5 жил өмнө
parent
commit
a38b16ba25

+ 3 - 5
o2web/source/x_component_IMV2/Main.js

@@ -119,7 +119,6 @@ MWF.xApplication.IMV2.Main = new Class({
 	sendMsg: function () {
 	sendMsg: function () {
 		var text = this.chatBottomAreaTextareaNode.value;
 		var text = this.chatBottomAreaTextareaNode.value;
 		if (text) {
 		if (text) {
-			console.log("发送文本消息");
 			this.chatBottomAreaTextareaNode.value = "";
 			this.chatBottomAreaTextareaNode.value = "";
 			this._newAndSendTextMsg(text, "text");
 			this._newAndSendTextMsg(text, "text");
 		} else {
 		} else {
@@ -153,7 +152,6 @@ MWF.xApplication.IMV2.Main = new Class({
 	},
 	},
 	//发送表情消息
 	//发送表情消息
 	sendEmojiMsg: function (emoji) {
 	sendEmojiMsg: function (emoji) {
-		console.log("发送表情消息");
 		this._newAndSendTextMsg(emoji.key, "emoji");
 		this._newAndSendTextMsg(emoji.key, "emoji");
 	},
 	},
 	//点击创建单聊按钮
 	//点击创建单聊按钮
@@ -421,7 +419,7 @@ MWF.xApplication.IMV2.Main = new Class({
 		}
 		}
 	},
 	},
 	//图片 根据大小 url
 	//图片 根据大小 url
-	_getFileUrlWithWH(id, width, height) {
+	_getFileUrlWithWH: function(id, width, height) {
 		var action = MWF.Actions.get("x_message_assemble_communicate").action;
 		var action = MWF.Actions.get("x_message_assemble_communicate").action;
 		var url = action.address + action.actions.imgFileDownloadWithWH.uri;
 		var url = action.address + action.actions.imgFileDownloadWithWH.uri;
 		url = url.replace("{id}", encodeURIComponent(id));
 		url = url.replace("{id}", encodeURIComponent(id));
@@ -430,14 +428,14 @@ MWF.xApplication.IMV2.Main = new Class({
 		return url;
 		return url;
 	},
 	},
 	//file 下载的url
 	//file 下载的url
-	_getFileDownloadUrl(id) {
+	_getFileDownloadUrl: function(id) {
 		var action = MWF.Actions.get("x_message_assemble_communicate").action;
 		var action = MWF.Actions.get("x_message_assemble_communicate").action;
 		var url = action.address + action.actions.imgFileDownload.uri;
 		var url = action.address + action.actions.imgFileDownload.uri;
 		url = url.replace("{id}", encodeURIComponent(id));
 		url = url.replace("{id}", encodeURIComponent(id));
 		return url;
 		return url;
 	},
 	},
 	//百度地图打开地址
 	//百度地图打开地址
-	_getBaiduMapUrl(lat, longt, address, content) {
+	_getBaiduMapUrl: function(lat, longt, address, content) {
 		var url = "https://api.map.baidu.com/marker?location="+lat+","+longt+"&title="+address+"&content="+content+"&output=html&src=net.o2oa.map";
 		var url = "https://api.map.baidu.com/marker?location="+lat+","+longt+"&title="+address+"&content="+content+"&output=html&src=net.o2oa.map";
 		return url;
 		return url;
 	},
 	},