Commit bc11debd by 梁建民

css

parent 69e45351
Showing with 7 additions and 5 deletions
......@@ -55,9 +55,11 @@ Component({
sendMessage() {
if (this.data.isTopic) {
let self = this;
console.log(self.data.userMessage)
this.triggerEvent(
"newTextMsg", {
type: '1'
msg: self.data.userMessage
}, {
bubbles: true,
composed: true
......@@ -74,7 +76,7 @@ Component({
if (customer) {
wx.removeStorageSync('customer');
}
String.prototype.trim = function() {
String.prototype.trim = function () {
return this.replace(/(^\s*)|(\s*$)/g, '');
}
if (!this.data.userMessage.trim()) {
......@@ -125,7 +127,7 @@ Component({
inputMessage: "",
});
},
sendCmd: function() {
sendCmd: function () {
let me = this;
let id = WebIM.conn.getUniqueId();
let msg = new WebIM.message(msgType.CMD, id);
......@@ -150,13 +152,13 @@ Component({
to: me.data.username.your,
action: "template",
ext: params,
success: function() {
success: function () {
console.log('发送模板成功')
console.log(me.data.username.your)
// getApp().addChatMember(me.data.username.your)
// disp.fire('em.chat.sendSuccess', id);
},
fail: function() {
fail: function () {
console.log('发送模板失败');
}
});
......
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 sign in to comment